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

Define parameters for the frame names of the static transforms #1909

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

mzahana
Copy link
Contributor

@mzahana mzahana commented Oct 12, 2023

This PR solves the issue of duplicate (non unique) static transforms when mavros is used in multi-vehicle SITL setup.
Before this PR, it was not possible to have a proper TF tree where each vehicle has its unique base_link(base_link_frd and odom (odome_ned) frames as it was hard-coded in mavros_uas node. Also the odom plugin would keep throwing an error because of disconnected trees.

With this PR, the user can define the statice transform frames (base_link, odom, map) as node parameters of the mavros_node which is the passed to the mavros_uas node. In addition, the odom plugin is modified to infer the _frd frames directly from the odom/map base_link (or simply the parent and the child frames)m which are defined in the config.yaml file.

With this PR, I am able to have a proper and connected trees in multi-vehicle simulation.

Copy link
Member

@vooon vooon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@vooon vooon merged commit 1b6c072 into mavlink:ros2 Oct 16, 2023
0 of 3 checks passed
@vooon vooon added this to the Version 2.7 milestone Oct 16, 2023
@FPSychotic
Copy link

Please, any chance to port this to ROS Noetic?

@NarmadaBalasooriya
Copy link

@mzahana Is there any chance to port this to ROS Noetic? I am using noetic and I have the same issue with using unique frames in multi-uav simulation.

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

Successfully merging this pull request may close these issues.

4 participants