You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The abstract method lookup_transform, as implemented by tf2_ros.buffer.Buffer and tf2_ros.buffer_client.BufferClient, is using different types for time.
Bug report
Required Info:
Operating System:
Ubuntu 20.04
Installation type:
binaries
Version or commit hash:
foxy
Client library (if applicable):
rclpy
Steps to reproduce issue
Instantiate a tf2_ros.buffer.Buffer and call lookup_transform with time from the header.stamp (type: builtin_interfaces.msg.Time). This will pass.
Instantiate a tf2_ros.buffer_client.BufferClient and call the same function with the same time type. This will fail with AttributeError: 'Time' object has no attribute 'to_msg'.
Expected behavior
Since both classes inherit from tf2_ros.BufferInterface the function signatures should be the same and the actual implementation should be interchangeable.
Actual behavior
BufferClient uses a different type for the time than the Buffer as BufferClient tries to convert the time message of type builtin_interfaces.msg.Time again via to_msg().
The text was updated successfully, but these errors were encountered:
The abstract method
lookup_transform
, as implemented bytf2_ros.buffer.Buffer
andtf2_ros.buffer_client.BufferClient
, is using different types fortime
.Bug report
Required Info:
Steps to reproduce issue
tf2_ros.buffer.Buffer
and calllookup_transform
withtime
from theheader.stamp
(type:builtin_interfaces.msg.Time
). This will pass.tf2_ros.buffer_client.BufferClient
and call the same function with the same time type. This will fail withAttributeError: 'Time' object has no attribute 'to_msg'
.Expected behavior
Since both classes inherit from
tf2_ros.BufferInterface
the function signatures should be the same and the actual implementation should be interchangeable.Actual behavior
BufferClient
uses a different type for the time than theBuffer
asBufferClient
tries to convert the time message of typebuiltin_interfaces.msg.Time
again viato_msg()
.The text was updated successfully, but these errors were encountered: