question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to Visualize map & navgraphs in RViz

See original GitHub issue

Bug report

Required information:

  • Operating system and version: Ubuntu 20.04
  • OpenRMF installation type: From source, binaries
  • OpenRMF version or commit hash: foxy
  • ROS installation type: binaries
  • Package or library, if applicable: N/A

Description of the bug

When we are trying to run the RMF office demo. We are not able to visualize the map and navgraph in the RViZ window that opens up. Where as when we try to run the RMF office demo along with the gazebo. We are able to visualize the map and navgraph in RViZ window. Sometimes the map and navgraph is visible when we reboot our system, and then run the RMF. After that when we try to run the RMF file, It doesn’t shows the map and navgraph.

Steps to reproduce the bug

  1. Launch RMF using ros2 launch rmf_demos office_demo.launch.xml
  2. After that, when the RViZ Window open’s up we can’t visualize the map.
  3. Launch RMF using ros2 launch rmf_demos_gz office_demo.launch.xml
  4. We can visualize the map and navgraph in RViZ

Expected behavior

When we launch the RMF demo file. It open ups a RViZ window in order to show the map as well as the Navgraph for particular robots.

Screenshot from 2021-11-25 11-46-58

Actual behavior

What actually is happening is that, When ever we try to run the RMF demo file. It open ups the RViZ window but is not showing the map and the Navgraph for the robots. Whereas just keeps on displaying a black screen in the RViZ window. Without anything to display.

Screenshot from 2021-11-25 11-58-50

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NaglaShubhamcommented, Dec 6, 2021

Thank-you for replying @Yadunund ,

We actually are using the files, in a similar manner that you have mentioned above.

I also am having the same doubt. That it should be working, with use_sim_time set to false.

Yes, i can share the contents of office_demos.launch.xml. But, i don’t think we made any changes to the file itself office.ODT You can find the contents of the office.launch.xml in the above attached file.

0reactions
maurya3commented, Dec 23, 2022

Hi Guys, I resolved this error by downgrading int numpy version below 1.16. There is some error in numpy. "AttributeError: module 'numpy' has no attribute 'asscalar'" because of Deprecated since version 1.16: Deprecated, use numpy.ndarray.item() instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to view 3D map on rviz [closed] - ROS Answers
I am trying to build ROS and octomap on ubuntu 14.04. These are the steps I follow: I run roscore; I launch roslaunch...
Read more >
rviz doesn't open new map - Google Groups
I created the map successfully. I started Autonomous Navigation and ran a robot. It seems it works. Then I wanted to create a...
Read more >
Unable to view the generated map - ROS Navigation In 5 Days
I have generated a map. Now I want to use it for for localization. But when I use the map_server node and the...
Read more >
open-rmf/rmf_visualization: Visualization tools for OpenRMF
This repository contains several packages that aid with visualizing various entities within RMF via RViz. rmf_visualization; rmf_visualization_building_systems ...
Read more >
Transform problem with rviz map display when using the ...
No transform from [/slamware_map] to [slamware_map]. Because of this, I am unable to view the location of the device within the map generated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found