Open hongu0603 opened 2 years ago
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 () {
orbslam->SaveTrajectoryKITTI("/home/your_name/SaveTrajectoryKITTI.txt");
delete rgbsubscriber; delete depthsubscriber; delete sync_; } `
how do i get the camera trajectory and save after running orb_slam2_ros , like ORB_SLAM2 we cam get the txt file