Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save camera trajectory #130

Open
hongu0603 opened this issue Feb 26, 2022 · 1 comment
Open

Save camera trajectory #130

hongu0603 opened this issue Feb 26, 2022 · 1 comment

Comments

@hongu0603
Copy link

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

@WenyuLWY
Copy link

WenyuLWY commented Oct 8, 2022

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_;
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants