paulruvolo / comprobo17

The base repo for the Olin College course "A Computational Introduction to Robotics" Spring 2017.
1 stars 64 forks source link

Static transform name #2

Open sayali-purdue opened 3 years ago

sayali-purdue commented 3 years ago

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 commented 3 years ago

Hi There,

You are absolutely correct. Thanks for pointing this out!