ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
1

using hector_trajectory_server to show trajectory in Rviz

asked 2017-08-31 07:47:37 -0500

peigong gravatar image

updated 2017-08-31 07:48:52 -0500

I want to show trajectory of the quadcopter simulated in gazebo using Rviz.

I have learned that ‘hector_trajectory_server’ could be used to solve this problem, refer to this old Q&A.

Since i am totally new in this field, anyone could give me some guidance on how to use this node (or Tutorial on using this node)?

Any help will be appreciated. Thanks a lot.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-03-07 21:29:44 -0500

gubertoli gravatar image

I tried on my launch file:

<node pkg="hector_trajectory_server" type="hector_trajectory_server" name="hector_trajectory_server" output="screen">
    <param name="target_frame_name" type="string" value="/map" />
    <param name="source_frame_name" type="string" value="/base_link" />
    <param name="trajectory_update_rate" type="double" value="4" />
    <param name="trajectory_publish_rate" type="double" value="0.25" />

</node>

But after running it, it does not show the "trajectory" topic to uses on RViz. Please, do you know if another package shall be included on launch file to enable trajectory (nav_msgs/Path) ?

edit flag offensive delete link more

Comments

The frame names shouldn't have the slashes / in them, but that doesn't appear to mess up the trajectory. By default it should publish on the trajectory topic, you have to add the Path in rviz to see it.

lucasw gravatar image lucasw  ( 2021-08-03 12:15:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-08-31 07:47:37 -0500

Seen: 781 times

Last updated: Aug 31 '17