class Buffer(tf2.BufferCore, tf2_ros.BufferInterface):
Constructor: Buffer(cache_time, debug)
Standard implementation of the tf2_ros.BufferInterface
abstract data type.
Inherits from tf2_ros.buffer_interface.BufferInterface
and tf2.BufferCore
.
Stores known frames and optionally offers a ROS service, "tf2_frames", which responds to client requests
with a response containing a tf2_msgs.FrameGraph
representing the relationship of
known frames.
Method | __init__ |
No summary |
Method | can |
Check if a transform from the source frame to the target frame is possible. |
Method | can |
Check if a transform from the source frame to the target frame is possible (advanced API). |
Method | lookup |
Get the transform from the source frame to the target frame. |
Method | lookup |
Get the transform from the source frame to the target frame using the advanced API. |
Instance Variable | CAN |
Undocumented |
Method | __get |
Undocumented |
Check if a transform from the source frame to the target frame is possible.
Parameters | |
target | Name of the frame to transform into. |
source | Name of the input frame. |
time | The time at which to get the transform. (0 will get the latest) |
timeout | (Optional) Time to wait for the target frame to become available. |
return | Undocumented |
return | (Optional) If true, return a tuple representing debug information. |
Returns | |
bool | True if the transform is possible, false otherwise. |
Check if a transform from the source frame to the target frame is possible (advanced API).
Must be implemented by a subclass of BufferInterface.
Parameters | |
target | Name of the frame to transform into. |
target | The time to transform to. (0 will get the latest) |
source | Name of the input frame. |
source | The time at which source_frame will be evaluated. (0 will get the latest) |
fixed | Name of the frame to consider constant in time. |
timeout | (Optional) Time to wait for the target frame to become available. |
return | Undocumented |
return | (Optional) If true, return a tuple representing debug information. |
Returns | |
bool | True if the transform is possible, false otherwise. |
Get the transform from the source frame to the target frame.
Parameters | |
target | Name of the frame to transform into. |
source | Name of the input frame. |
time | The time at which to get the transform. (0 will get the latest) |
timeout | (Optional) Time to wait for the target frame to become available. |
Returns | |
geometry_msgs.msg.TransformStamped | The transform between the frames. |
Get the transform from the source frame to the target frame using the advanced API.
Parameters | |
target | Name of the frame to transform into. |
target | The time to transform to. (0 will get the latest) |
source | Name of the input frame. |
source | The time at which source_frame will be evaluated. (0 will get the latest) |
fixed | Name of the frame to consider constant in time. |
timeout | (Optional) Time to wait for the target frame to become available. |
Returns | |
geometry_msgs.msg.TransformStamped | The transform between the frames. |