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 get the dataset trajectory the method generated #146

Closed
cumtchenchang opened this issue Jan 11, 2018 · 12 comments
Closed

How to get the dataset trajectory the method generated #146

cumtchenchang opened this issue Jan 11, 2018 · 12 comments

Comments

@cumtchenchang
Copy link

I want to evelate the method with our lab method. How to change the code to get dataset trajectory the method generated.

@bloesch
Copy link
Contributor

bloesch commented Jan 11, 2018

Please have a look at the rostopic output.

@cumtchenchang
Copy link
Author

@bloesch Thank you for your help. I change the code folled what you said, but It dose not compile.

@Kushine
Copy link

Kushine commented Jan 24, 2018

How to get dataset trajectory the method generated?Have you got it? @cumtchenchang

@Kushine
Copy link

Kushine commented Jan 26, 2018

In RovioNode.hpp, you can get dataset trajectory from " imuOutput_ ".

@cumtchenchang
Copy link
Author

@Kushine can you give me your email? my is 1253419722@qq.com

@cumtchenchang
Copy link
Author

@Kushine I can not change the code correctly to get the trajectory.

@Kushine
Copy link

Kushine commented Jan 30, 2018

In RovioNode.hpp, save imuOutput_ to a vector, or print as the way:
in RovioNode.hpp,
after line 670 imuOutputCT_.transformState(state,imuOutput_);
add the code
std::cout <<std::fixed<<mpFilter_->safe_.t_<< "," << imuOutput_.WrWB()(0) << "," << imuOutput_.WrWB()(1)<< "," << imuOutput_.WrWB()(2)<< std::endl;
std::cout <<std::fixed<<imuOutput_.qBW().x()<< "," <<imuOutput_.qBW().y()<< "," <<imuOutput_.qBW().z()<< "," <<-imuOutput_.qBW().w()<< std::endl;

@cumtchenchang
Copy link
Author

@Kushine can you give more detail? I cannot save the trajectory to txt or other files. thank you

@jixiedaima
Copy link

@Kushine solved it, thanks!

@ghost
Copy link

ghost commented Aug 7, 2018

@Kushine would you tell me if imuOutput_ contains the vio answer or just the numbers that come from IMU (the device)?

@bloesch bloesch closed this as completed Feb 17, 2019
@InkSpade
Copy link

In RovioNode.hpp, save imuOutput_ to a vector, or print as the way:
in RovioNode.hpp,
after line 670 imuOutputCT_.transformState(state,imuOutput_);
add the code
std::cout <<std::fixed<<mpFilter_->safe_.t_<< "," << imuOutput_.WrWB()(0) << "," << imuOutput_.WrWB()(1)<< "," << imuOutput_.WrWB()(2)<< std::endl;
std::cout <<std::fixed<<imuOutput_.qBW().x()<< "," <<imuOutput_.qBW().y()<< "," <<imuOutput_.qBW().z()<< "," <<-imuOutput_.qBW().w()<< std::endl;

thank you very much!!!!!!

@InkSpade
Copy link

In RovioNode.hpp, save imuOutput_ to a vector, or print as the way:
in RovioNode.hpp,
after line 670 imuOutputCT_.transformState(state,imuOutput_);
add the code
std::cout <<std::fixed<<mpFilter_->safe_.t_<< "," << imuOutput_.WrWB()(0) << "," << imuOutput_.WrWB()(1)<< "," << imuOutput_.WrWB()(2)<< std::endl;
std::cout <<std::fixed<<imuOutput_.qBW().x()<< "," <<imuOutput_.qBW().y()<< "," <<imuOutput_.qBW().z()<< "," <<-imuOutput_.qBW().w()<< std::endl;

But i still want to know how to set the route of the result (pose.txt), can you help me? Plz, thank you!

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

5 participants