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

How to save the trajectory of rovio? #231

Open
InkSpade opened this issue Apr 22, 2020 · 1 comment
Open

How to save the trajectory of rovio? #231

InkSpade opened this issue Apr 22, 2020 · 1 comment

Comments

@InkSpade
Copy link

I have successfully run the system, but i cannot find the pose.txt of rovio. Can anyone help me?

@InkSpade
Copy link
Author

InkSpade commented Apr 22, 2020

The only way i find is:
In Rovio_Node.hpp, define an ofstream class, and then save the eight data (timestamp, xyz of p, xyzw of q) on the posture of sending IMU to the .txt file under the path you set. code show as below:
o_pose << ros::Time(mpFilter_->safe_.t_) << " " << imuOutput_.WrWB()(0) << " " << imuOutput_.WrWB()(1) << " " << imuOutput_.WrWB()(2) << " "
<< imuOutput_.qBW().x() << " " << imuOutput_.qBW().y()<< " " << imuOutput_.qBW().z() << " " << -imuOutput_.qBW().w() << std::endl;

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

1 participant