Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with launching gazebo #346

Open
destkk opened this issue May 7, 2021 · 1 comment
Open

Issues with launching gazebo #346

destkk opened this issue May 7, 2021 · 1 comment

Comments

@destkk
Copy link

destkk commented May 7, 2021

Operating system: Ubuntu 20.04

Hi there. I have built a 2 level map using traffic editor (see screenshot below) using a floor plan and robot's map as a layer. After which I have compiled the workspace and the launch file but I am receiving the following errors below,

For what I have observed is that the fleet adapter and rmf_dispatcher node is launched without any issue. I supposed is only the gazebo has issues.

Could anyone advice me the possible methods to troubleshoot?

[rviz2-7] [ERROR] [1620351415.504890914] [rviz2]: PluginlibFactory: The plugin for class 'rviz2_plugin/SchedulePanel' failed to load. Error: According to the loaded plugin descriptions the class rviz2_plugin/SchedulePanel with base class type rviz_common::Panel does not exist. Declared types are  rmf_visualization_rviz2_plugins/DoorPanel rmf_visualization_rviz2_plugins/LiftPanel rmf_visualization_rviz2_plugins/SchedulePanel
[rviz2-7] [ERROR] [1620351415.505456373] [rviz2]: PluginlibFactory: The plugin for class 'rviz2_plugin/LiftPanel' failed to load. Error: According to the loaded plugin descriptions the class rviz2_plugin/LiftPanel with base class type rviz_common::Panel does not exist. Declared types are  rmf_visualization_rviz2_plugins/DoorPanel rmf_visualization_rviz2_plugins/LiftPanel rmf_visualization_rviz2_plugins/SchedulePanel
[rviz2-7] [ERROR] [1620351415.505947775] [rviz2]: PluginlibFactory: The plugin for class 'RMF Panel' failed to load. Error: According to the loaded plugin descriptions the class RMF Panel with base class type rviz_common::Panel does not exist. Declared types are  rmf_visualization_rviz2_plugins/DoorPanel rmf_visualization_rviz2_plugins/LiftPanel rmf_visualization_rviz2_plugins/SchedulePanel
[building_map_server-3] [INFO] [1620351415.534960739] [building_map_server]: loading map path: /home/rosuser/rmf_ws/install/rmf_demos_maps/share/rmf_demos_maps/testing/testing.building.yaml
[building_map_server-3] [ERROR] [1620351415.685471182] [building_map_server]: unable to open image: /home/rosuser/rmf_ws/install/rmf_demos_maps/share/rmf_demos_maps/testing/../../../../../../../Desktop/testing.png
[building_map_server-3] [ERROR] [1620351415.687460797] [building_map_server]: unable to open image: /home/rosuser/rmf_ws/install/rmf_demos_maps/share/rmf_demos_maps/testing/../../../../../../../Desktop/testing.png
[building_map_server-3] [INFO] [1620351415.691705476] [building_map_server]: publishing map...
[building_map_server-3] [INFO] [1620351415.692436974] [building_map_server]: ready to serve map: "testing"  Ctrl+C to exit...
[schedule_visualizer-4] [INFO] [1620351415.692674176] [rmf_visualization_schedule_marker_publisher]: Received map "testing" containing 2 level(s)
[schedule_visualizer-4] [INFO] [1620351415.692724392] [rmf_visualization_schedule_marker_publisher]: Level cache not updated
[gzserver-13] [Msg] Waiting for master.
[gzserver-13] [Msg] Connected to gazebo master @ http://127.0.0.1:11345
[gzserver-13] [Msg] Publicized address: 192.168.1.18
[gzserver-13] Error [Param.cc:454] Empty string used when setting a required parameter. Key[name]
[gzserver-13] Error [Param.cc:454] Empty string used when setting a required parameter. Key[name]
[gzserver-13] Error Code 5 Msg: Unable to read attribute[name]
[gzserver-13] Error Code 8 Msg: Error reading element <model>
[gzserver-13] Error Code 8 Msg: Error reading element <world>
[gzserver-13] Error Code 8 Msg: Error reading element <sdf>
[gzserver-13] [Err] [Server.cc:451] Unable to read sdf file[/home/rosuser/rmf_ws/install/rmf_demos_maps/share/rmf_demos_maps/maps/testing/testing.world]

Screenshot from 2021-05-07 09-43-49
Screenshot from 2021-05-07 09-43-51

@Yadunund
Copy link
Member

Yadunund commented May 7, 2021

Hi there,

There are a few things going on:

  1. RVIZ errors: The rviz2_plugin package was renamed to rmf_visualization_rviz2_plugins and hence you will need to update these references in your .rviz file. Also delete the reference to RMF Panel in the same config as the package has been dropped. You may refer to clinic.rviz

  2. Regarding the Key[name] errors, this may arise if you didn't assign a name for the door and lift in rmf_traffic_editor. So please ensure that you have populated these fields. Do a clean build of your maps package and try launching the world after.

  3. Looks like you have not set the scale for any of the levels using the Measurement tool. To generate realistic environments, make sure you define a measurement between any two points on your map. For more info, see https://osrf.github.io/ros2multirobotbook/traffic-editor.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants