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

Static transform name #2

Open
sayali-purdue opened this issue Dec 14, 2020 · 1 comment
Open

Static transform name #2

sayali-purdue opened this issue Dec 14, 2020 · 1 comment

Comments

@sayali-purdue
Copy link

A static transform publisher publishes a transform from parent frame_id to child child_frame_id. Therefore, I think the transform name convention of "parent_to_child" gives the clear meaning of what is being published. A third user may just assume that the meaningful variable name A_to_B represents the transform from frame A to frame B.

However, during static review, I observed that static transforms in the following launch files use a reversed transform name convention of "child_to_parent":

  1. map_to_odom at line 4 in dead_reckoning.launch publishes a transform from odom to map.
  2. laser_to_base at line 6 in bringup_minimal.launch publishes a transform from base_link to base_laser_link.

The above names do not reflect the actual transforms being published. The names odom_to_map and base_to_laser would be more appropriate.

Would really appreciate if you could please describe your perspective behind using this "child_to_parent" naming convention, and your views on its effects on code reuse in future.

Thank you!

@paulruvolo
Copy link
Owner

Hi There,

You are absolutely correct. Thanks for pointing this out!

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

2 participants