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

How to get the Robot's pose in the Rviz?

asked 2017-01-02 21:39:17 -0500

cxxzju gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-03 12:30:12 -0500

cxxzju gravatar image

updated 2017-01-03 12:33:07 -0500

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

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

edit flag offensive delete link more

Comments

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

UR5e gravatar image UR5e  ( 2019-10-17 15:32:44 -0500 )edit

you get selected joint's position and orientation information, how can i get all joint angles when i move interactive marker

omeranar1 gravatar image omeranar1  ( 2021-02-24 00:16:29 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-01-02 21:39:17 -0500

Seen: 1,431 times

Last updated: Jan 03 '17