appliedAI-Initiative / orb_slam_2_ros

A ROS implementation of ORB_SLAM2
Other
605 stars 282 forks source link

Visualize and save the trajectory #133

Open canglangzhige opened 2 years ago

canglangzhige commented 2 years ago

I can not visualize the trajectory in rviz by add topic. If there is not the topic? Can I get the saved trajectory?

geturin commented 2 years ago

you can use the hector_trajectory_server

in your launch file, like:

<node pkg="hector_trajectory_server" type="hector_trajectory_server" name="trajectory_server_orb_slam2" output="screen" ns="orb_slam2_ros" > <param name="/target_frame_name" value="/map" /> <param name="/source_frame_name" value="/base_link" /> <param name="/trajectory_update_rate" value="20.0" /> <param name="/trajectory_publish_rate" value="20.0" /> </node>

canglangzhige commented 2 years ago

OK. Thank you!