orb_slam_2_ros icon indicating copy to clipboard operation
orb_slam_2_ros copied to clipboard

Save camera trajectory

Open hongu0603 opened this issue 3 years ago • 1 comments

how do i get the camera trajectory and save after running orb_slam2_ros , like ORB_SLAM2 we cam get the txt file

hongu0603 avatar Feb 26 '22 13:02 hongu0603

hello, I solve it. Just add orb_slam_->SaveTrajectoryKITTI("your_path.txt"); in destructors.

For example, you could add it to RGBDNode.cc, then it looks like:

` RGBDNode::~RGBDNode () {

orb_slam_->SaveTrajectoryKITTI("/home/your_name/SaveTrajectoryKITTI.txt");

delete rgb_subscriber_; delete depth_subscriber_; delete sync_; } `

WenyuLWY avatar Oct 08 '22 19:10 WenyuLWY