Rviz: how to get scene information?

asked 2017-07-06 21:46:18 -0600

emanuele.sansebastiano gravatar image

Hello everyone!

I am trying to make my own path planner using the Gazebo simulator for Baxter and adding some obstacles using Moveit! package. I would like to know where the Rviz scene definition is stored. The following list contains the required nodes to launch the system properly:

  • /base_to_world

  • /baxter_emulator

  • /baxter_sim_io

  • /baxter_sim_kinematics_left

  • /baxter_sim_kinematics_right

  • /gazebo

  • /gazebo_client

  • /mongo_wrapper_ros_emanuele_pc_22327_8322125608104858584

  • /move_group

  • /robot/controller_spawner

  • /robot/controller_spawner_stopped

  • /robot_state_publisher

  • /rosout

  • /rsdk_position_w_id_joint_trajectory_action_server

  • /rviz_emanuele_pc_22327_9131953803240592936

If I check the information about the last topic (the only Rviz topic) I receive this:

Publications:

  • /rviz_moveit_motion_planning_display/robot_interaction_interactive_marker_topic/update_full [visualization_msgs/InteractiveMarkerInit]

  • /planning_scene_world [moveit_msgs/PlanningSceneWorld]

  • /rviz_moveit_motion_planning_display/robot_interaction_interactive_marker_topic/feedback [visualization_msgs/InteractiveMarkerFeedback]

  • /pickup/cancel [actionlib_msgs/GoalID]

  • /move_group/goal [moveit_msgs/MoveGroupActionGoal]

  • /place/cancel [actionlib_msgs/GoalID]

  • /planning_scene [moveit_msgs/PlanningScene]

  • /rviz_emanuele_pc_22327_9131953803240592936/motionplanning_planning_scene_monitor/parameter_updates [dynamic_reconfigure/Config]

  • /place/goal [moveit_msgs/PlaceActionGoal]

  • /trajectory_execution_event [std_msgs/String]

  • /rviz_moveit_motion_planning_display/robot_interaction_interactive_marker_topic/update [visualization_msgs/InteractiveMarkerUpdate]

  • /move_group/cancel [actionlib_msgs/GoalID]

  • /rosout [rosgraph_msgs/Log]

  • /pickup/goal [moveit_msgs/PickupActionGoal]

  • /attached_collision_object [moveit_msgs/AttachedCollisionObject]

  • /rviz_emanuele_pc_22327_9131953803240592936/motionplanning_planning_scene_monitor/parameter_descriptions [dynamic_reconfigure/ConfigDescription]

Subscriptions:

  • /rviz_moveit_motion_planning_display/robot_interaction_interactive_marker_topic/feedback [visualization_msgs/InteractiveMarkerFeedback]

  • /place/feedback [moveit_msgs/PlaceActionFeedback]

  • /pickup/status [actionlib_msgs/GoalStatusArray]

  • /place/result [moveit_msgs/PlaceActionResult]

  • /tf [tf2_msgs/TFMessage]

  • /move_group/result [moveit_msgs/MoveGroupActionResult]

  • /move_group/status [actionlib_msgs/GoalStatusArray]

  • /pickup/result [moveit_msgs/PickupActionResult]

  • /move_group/display_planned_path [moveit_msgs/DisplayTrajectory]

  • /move_group/monitored_planning_scene [moveit_msgs/PlanningScene]

  • /recognized_object_array [unknown type]

  • /tf_static [tf2_msgs/TFMessage]

  • /pickup/feedback [moveit_msgs/PickupActionFeedback]

  • /rviz_moveit_motion_planning_display/robot_interaction_interactive_marker_topic/update [visualization_msgs/InteractiveMarkerUpdate]

  • /move_group/feedback [moveit_msgs/MoveGroupActionFeedback]

  • /place/status [actionlib_msgs/GoalStatusArray]

  • /clock [rosgraph_msgs/Clock]

Services:

  • /rviz_emanuele_pc_22327_9131953803240592936/get_loggers

  • /rviz_emanuele_pc_22327_9131953803240592936/reload_shaders

  • /rviz_emanuele_pc_22327_9131953803240592936/motionplanning_planning_scene_monitor/set_parameters

  • /rviz_emanuele_pc_22327_9131953803240592936/set_logger_level

The bold topics are the only ones capable of containing the information I need due to the message type, but they are definitely incomplete of even empty. I thought The robot description would be taken directly from the URDF file (no involving topics), but it does not explain how the scene obstacles are defined. Rviz must receive the obstacle definition somehow.

I want to stress the fact I define the obstacles by means of Moveit! and its planner recognize them as obstacles to avoid. So, I am sure I have properly defined them.

Here you can see how my scene looks:

Youtube link: Rviz full scene

Thank you very much for your help!

edit retag flag offensive close merge delete

Comments

This appears to be a duplicate of #q265663. Can you please decide which one you'd like to keep and close the other one?

gvdhoorn gravatar image gvdhoorn  ( 2017-07-07 01:54:37 -0600 )edit