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

show robot trajectory in rviz real-time

asked 2015-05-14 14:09:09 -0600

crazymumu gravatar image

HI, I want to show UAV's trajectory in RVIZ in real time.
I am not sure I can use LINE_STRPS in visualization_msgs::Marker or PATH in nav_msgs/Path. The navigation algorithm was done by myself. I just want to show the trajectory, i am not sure which message to show path in rviz.
Thanks for your help.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
4

answered 2015-05-15 01:43:13 -0600

gvdhoorn gravatar image

updated 2015-05-15 01:45:19 -0600

Just to add to the options mentioned by others: you could perhaps also look at moveit_visual_tools by Dave Coleman. From README.md:

Animate Trajectories

Higher level robot and trajectory functions

  • publishTrajectoryPath
  • publishTrajectoryPoint
  • publishRobotState
  • publishAnimatedGrasps
  • publishIKSolutions

publishTrajectoryPath(..) would seem to fit with what you describe.

Edit: whether this would work obviously depends on what particular type of robot trajectory you are working with.

edit flag offensive delete link more

Comments

thanks for your help

crazymumu gravatar image crazymumu  ( 2015-05-15 10:42:21 -0600 )edit
4

answered 2015-05-14 21:26:03 -0600

You can use the hector_trajectory_server package to conveniently generate a nav_msgs/Path message as described by Tom.

edit flag offensive delete link more

Comments

thanks for your help

crazymumu gravatar image crazymumu  ( 2015-05-15 10:42:30 -0600 )edit

It worked for me!

anonymous userAnonymous ( 2019-05-22 00:01:38 -0600 )edit
1

answered 2015-05-14 19:34:11 -0600

Tom Moore gravatar image

You can use the nav_msgs/Odometry message, but the pose is drawn as a series of arrows, and they can look a little clunky if you are only concerned with position and not orientation. In those cases, I tend to use the nav_msgs/Path type.

edit flag offensive delete link more

Comments

thanks for your help

crazymumu gravatar image crazymumu  ( 2015-05-15 10:42:10 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2015-05-14 14:09:09 -0600

Seen: 13,505 times

Last updated: May 15 '15