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 set frame_id and child_frame_id from sdf? #340

Open
doisyg opened this issue Sep 9, 2020 · 1 comment
Open

How to set frame_id and child_frame_id from sdf? #340

doisyg opened this issue Sep 9, 2020 · 1 comment
Labels
enhancement New feature or request help wanted We accept pull requests!

Comments

@doisyg
Copy link
Contributor

doisyg commented Sep 9, 2020

In the context of the diffdrive plugin, is there a way to set frame_id and child_frame_id from sdf ? Currently it seems to be auto-filled with the model and link name:

  frame->set_key("frame_id");
  frame->add_value(this->model.Name(_ecm) + "/odom");

and

    childFrame->set_key("child_frame_id");
    childFrame->add_value(this->model.Name(_ecm) + "/" + *linkName);

Same question for the sensors frame_id.
Did I miss something ? If not I will gladly PR a fix

@chapulina
Copy link
Contributor

is there a way to set frame_id and child_frame_id from sdf ?

I don't think there's a way yet

If not I will gladly PR a fix

That would be appreciated. Just be sure to keep the current behaviour in case the user doesn't explicitly set the frame names 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted We accept pull requests!
Projects
None yet
Development

No branches or pull requests

2 participants