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

Trackers - how to get access to some physical values #27

Closed
bconvens opened this issue Dec 8, 2020 · 2 comments
Closed

Trackers - how to get access to some physical values #27

bconvens opened this issue Dec 8, 2020 · 2 comments

Comments

@bconvens
Copy link

bconvens commented Dec 8, 2020

Hello,

The Se3Controller's init function takes as input also the UAV's mass, gravity constant, and motor parameters A and B.
How can I get access to these variables inside a custom tracker I want to create?

Thanks!
Best,

@klaxalk
Copy link
Member

klaxalk commented Dec 10, 2020

Hey, good question. You can't. So far I did not need them in a tracker. However, I acknowledge that they might be used, so I am going to update the tracker interface, so both the trackers and the controllers will get the same info. I will keep you posted.

@klaxalk
Copy link
Member

klaxalk commented Dec 26, 2020

Hey Bryan, Merry Christmas!! I updated the controller and tracker interface. Now, you can get the following from the common_handlers, that are passed to trackers and controllers:

  • common_handlers->motor_params
  • common_handlers->g ultimately passed from the core.launch to all core nodes
  • common_handlers->getMass() gets you the current estimated UAV mass

The motor_params now follows a new format defined in mrs_lib, pls check mrs_uav_system#33.

Sincerely, Tomas

@DanHert DanHert closed this as completed Jan 20, 2021
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

3 participants