Ask Your Question
0

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
0

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

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

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: 234 times

Last updated: Aug 31 '17