-
Notifications
You must be signed in to change notification settings - Fork 279
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
Documentation on convert/transform registration in Python #515
Comments
ping ;) |
@tfoote ping ;) |
For me it is unclear why all the I would expect that if I have class A and I want to transform to class B, but there is no direct conversion from A to B, it will use the In my mind, msg X has to be ONE type of msg. As a random pair of Maybe I am missing something, please explain. |
The first example I sent isn't the best as those datatypes are already messages. So the convert to and from message is an identity transform which is why they return themselves. For the KDL datatypes you can see a more complex version https://github.com/ros/geometry2/blob/noetic-devel/tf2_kdl/src/tf2_kdl/tf2_kdl.py The logic is to chain the conversions if they exist via a star topology. Any datatype X trying to go to Y look to apply |
What happens in the following situations?
|
The noop returns are required because in python we can't detect what the datatype is so we don't know if the datatype matches the input datatype. So |
With this change in place, I can do a complete local build on RHEL. Signed-off-by: Chris Lalancette <[email protected]>
Is there any documentation on the convert/transform registration in Python?
The text was updated successfully, but these errors were encountered: