ros / geometry2

A set of ROS packages for keeping track of coordinate transforms.
189 stars 275 forks source link

tf2_tools echo.py use wrong terminology for source and target frame. #510

Closed Hugal31 closed 3 years ago

Hugal31 commented 3 years ago

echo.py takes the arguments "source_frame" and "target_frame" in this order. Further in the loop, it calls tf2_ros.Buffer.lookup_transform by passing source_frame, then target_frame, whereas the argument order for lookup_transform is target_frame then source_frame.

This is coherent with the tf echo script, but is not with the rest of tf and tf2 terminology, or at least the API terminology. This can (and has) lead to confusion.

I suggest to rename the two arguments so the API remains compatible. Also, providing some documentation for the command line would be nice.

tfoote commented 3 years ago

Duplicate of https://github.com/ros/geometry/issues/226 https://github.com/ros/geometry/issues/111 and https://github.com/ros/geometry/issues/108