Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by fvd for 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?

Previous: Comment by xavier12358 for 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.
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`.

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>