open-rmf / rmf_traffic_editor

GUI, CLI, and ROS 2 messages for robot traffic flows in buildings
Apache License 2.0
140 stars 67 forks source link

Issues with launching gazebo #346

Open destkk opened 3 years ago

destkk commented 3 years ago

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 commented 3 years ago

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