Open RobinHeitz opened 2 months ago
Currently having this error (again), was amused to find my own issue I had previously :laughing:
So, there is a simple, if non-obvious, fix for this. And that is to add in import tf2_geometry_msgs
at the top of the Python file. That will go ahead and load in the registration for the PoseStamped
message, along with other things.
That said, I don't love how this shakes out, because it is really non-obvious that this is what is required. I'd have to think about a better way to restructure this whole thing to make it work better, or at least be more obvious what needs to be done.
Bug report
Required Info:
Steps to reproduce issue
1) Launch static transform publisher
ros2 run tf2_ros static_transform_publisher --x 1.0 --y 2.0 --frame-id world --child-frame-id child_frame
2) Launch the following node:
Expected behavior
I would expect that the pose_stamped is transformed from child_frame to world.
Actual behavior
TypeException: Type <class 'geometry_msgs.msg._pose_stamped.PoseStamped'> is not loaded or suported.
Additional information
Complete Stacktrace