Closed Mingrui-Yu closed 2 years ago
No they're correct. This is an unfortunate ambiguity in common language around transforms. The transform from frame A to frame B is the transform which will take data from B to A. This is why the API uses target and source to be explicit about referencing the data source and target.
But why are the Python API and C++ API inconsistent? They are completely reversed. @tfoote
In the "Writing a tf2 listener (Python)", the first argument of "lookup_transform" is interpreted as "from this frame", and the second argument is interpreted as "to this frame".
However, in the "Writing a tf2 listener (C++)", it is reversed.
According to the Code API, the latter is true.
Is this a mistake in the tutorials?