ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Where to get status in moveit

asked 2021-05-25 08:34:44 -0500

xavier12358 gravatar image

Hello,

I using rviz and Moveit. I want to get the information in the Status topic from PlanningScene data.

......
    Changed goal state
    Changed goal state
    Changed goal state
    Changed goal state
    Changed start state

I try to find the topic where that information is published. I think I try every topic but nothing seems to publish that data.

How can I collect that data? and even more event like can't plan, can't execute task information?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-05-26 00:34:15 -0500

fvd gravatar image

That's the start and goal state of the PlanningScene in the Rviz MotionPlanning plugin. I am not sure that it is published anywhere, although you could add that functionality yourself. It is just a GUI, not the actual planning engine.

You could try pressing the Plan button in the Rviz plugin and read the MotionPlanRequest that is sent to the move_group capability. That should contain the start and goal state you are seeing in Rviz. But I am not sure that that's really the way you should be using it - the more common way to plan with MoveIt in code is to use a MoveGroupInterface, from which you can get the current start and goal state (although it's not the one displayed in Rviz), as well as the results of the plan and move functions when they are called.

If you are just teaching poses, a common way to get pose and joint positions from the current state of the system is to use e.g. rosrun tf tf_echo and rostopic echo /joint_states.

edit flag offensive delete link more

Comments

Thank you for the answer. Do you have any example which explain how to send goto and retrieve status from the planning interface?

xavier12358 gravatar image xavier12358  ( 2021-05-27 01:56:10 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-05-25 08:34:44 -0500

Seen: 247 times

Last updated: May 26 '21