0
$\begingroup$

Rosanswers logo

I am using moveit these days, but a problem confused me. The moveit-rviz plugin is very useful for visualization the robot's planning scene, there is a demo in the pr2_moveit_config launch file, you can use your mouse to drag the interactive marker on the robot model in Rviz. But I want to get the pose information when I drag or move the endeffector. When I use the getTargetPose, I just return the Target Pose you defined in the code, but how to get the simulation model's pose in realtime?


Originally posted by cxxzju on ROS Answers with karma: 16 on 2017-01-02

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

O I find a solution. When you use rviz as a plugin for moveit, actually you are using the interactive marker srv to send pose information between interactive marker server and RViz. The topic use here is update and feedback. So you just need to find the topics when you are running.

image description http://wiki.ros.org/rviz/Tutorials/Interactive%20Markers:%20Getting%20Started?action=AttachFile&do=get&target=interactive_marker_architecture.png

So use "rostopic list" command, I find there is a topic named /rviz_moveit_motion_planning_display/robot_interaction_interactive_maker_topic/feedback This is just the information I need.

111.png


Originally posted by cxxzju with karma: 16 on 2017-01-03

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by UR5e on 2019-10-17:
I am trying to get also the current pose position in x,y,z,rx,ry,rz and I have listed the node that you mention. However, neither rostopic echo nor info returns the desired pose. How do you get the pose? Thank you

Comment by omeranar1 on 2021-02-24:
you get selected joint's position and orientation information, how can i get all joint angles when i move interactive marker

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.