class TransformerROS(Transformer):
Known subclasses: niryo_libraries.tf.listener.TransformListener
Constructor: TransformerROS(interpolate, cache_time)
TransformerROS extends the base class tf.Transformer
,
adding methods for handling ROS messages.
Method | as |
Uses lookupTransform to look up the transform for ROS message header hdr to frame target_frame, and returns the transform as a numpy.matrix 4x4. |
Method | from |
Converts a transformation from tf.Transformer into a representation as a 4x4 matrix. |
Method | transform |
Transforms a geometry_msgs PointStamped message to frame target_frame, returns a new PointStamped message. |
Method | transform |
Transforms a geometry_msgs PoseStamped message to frame target_frame, returns a new PoseStamped message. |
Method | transform |
Transforms a geometry_msgs PoseStamped message to frame target_frame, returns a new PoseStamped message. |
Method | transform |
Transforms a geometry_msgs QuaternionStamped message to frame target_frame, returns a new QuaternionStamped message. |
Method | transform |
Transforms a geometry_msgs Vector3Stamped message to frame target_frame, returns a new Vector3Stamped message. |
Inherited from Transformer
:
Method | __init__ |
Undocumented |
Method | all |
Undocumented |
Method | all |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | chain |
Undocumented |
Method | clear |
Undocumented |
Method | frame |
Not a recommended API, only here for backwards compatibility |
Method | get |
Not a recommended API, only here for backwards compatibility |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | lookup |
Undocumented |
Method | lookup |
Undocumented |
Method | lookup |
Undocumented |
Method | lookup |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | wait |
Undocumented |
Method | wait |
Undocumented |
Instance Variable | _buffer |
Undocumented |
Instance Variable | _using |
Undocumented |
Uses lookupTransform
to look up the transform for ROS message header hdr to frame
target_frame, and returns the transform as a numpy.matrix
4x4.
Parameters | |
target | the tf target frame, a string |
hdr | a message header |
Returns | |
a numpy.matrix 4x4 representation of the transform | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Converts a transformation from tf.Transformer
into a representation as a 4x4 matrix.
Parameters | |
translation | translation expressed as a tuple (x,y,z) |
rotation | rotation quaternion expressed as a tuple (x,y,z,w) |
Returns | |
a numpy.matrix 4x4 representation of the transform | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Transforms a geometry_msgs PointStamped message to frame target_frame, returns a new PointStamped message.
Parameters | |
target | the tf target frame, a string |
ps | the geometry_msgs.msg.PointStamped message |
Returns | |
new geometry_msgs.msg.PointStamped message, in frame target_frame | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Transforms a geometry_msgs PoseStamped message to frame target_frame, returns a new PoseStamped message.
Parameters | |
target | the tf target frame, a string |
point | Undocumented |
ps | the sensor_msgs.msg.PointCloud message |
Returns | |
new sensor_msgs.msg.PointCloud message, in frame target_frame | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Transforms a geometry_msgs PoseStamped message to frame target_frame, returns a new PoseStamped message.
Parameters | |
target | the tf target frame, a string |
ps | the geometry_msgs.msg.PoseStamped message |
Returns | |
new geometry_msgs.msg.PoseStamped message, in frame target_frame | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Transforms a geometry_msgs QuaternionStamped message to frame target_frame, returns a new QuaternionStamped message.
Parameters | |
target | the tf target frame, a string |
ps | the geometry_msgs.msg.QuaternionStamped message |
Returns | |
new geometry_msgs.msg.QuaternionStamped message, in frame target_frame | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |
Transforms a geometry_msgs Vector3Stamped message to frame target_frame, returns a new Vector3Stamped message.
Parameters | |
target | the tf target frame, a string |
v3s | the geometry_msgs.msg.Vector3Stamped message |
Returns | |
new geometry_msgs.msg.Vector3Stamped message, in frame target_frame | |
Raises | |
Unknown exception | any of the exceptions that ~tf.Transformer.lookupTransform can raise |