class BufferInterface:
Abstract interface for wrapping the Python bindings for the tf2 library in a ROS-based convenience API. Implementations include tf2_ros.buffer.Buffer and tf2_ros.buffer_client.BufferClient.
Method | __init__ |
Undocumented |
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. |
Method | transform |
Transform an input into the target frame. |
Method | transform |
Transform an input into the target frame (advanced API). |
Instance Variable | registration |
Undocumented |
Check if a transform from the source frame to the target frame is possible.
Must be implemented by a subclass of BufferInterface.
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 | |
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. |
Returns | |
bool | True if the transform is possible, false otherwise. |
Get the transform from the source frame to the target frame.
Must be implemented by a subclass of BufferInterface.
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.
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. |
Returns | |
geometry_msgs.msg.TransformStamped | The transform between the frames. |
Transform an input into the target frame.
The input must be a known transformable type (by way of the tf2 data type conversion interface).
If new_type is not None, the type specified must have a valid conversion from the input type, else the function will raise an exception.
Parameters | |
object | The timestamped object the transform. |
target | Name of the frame to transform the input into. |
timeout | (Optional) Time to wait for the target frame to become available. |
new | (Optional) Type to convert the object to. |
Returns | |
The transformed, timestamped output, possibly converted to a new type. |
Transform an input into the target frame (advanced API).
The input must be a known transformable type (by way of the tf2 data type conversion interface).
If new_type is not None, the type specified must have a valid conversion from the input type, else the function will raise an exception.
This function follows the advanced API, which allows tranforming between different time points, as well as specifying a frame to be considered fixed in time.
Parameters | |
object | The timestamped object the transform. |
target | Name of the frame to transform the input into. |
target | Time to transform the input into. |
fixed | Name of the frame to consider constant in time. |
timeout | (Optional) Time to wait for the target frame to become available. |
new | (Optional) Type to convert the object to. |
Returns | |
The transformed, timestamped output, possibly converted to a new type. |