public class FrameTransformTree
extends java.lang.Object
FrameTransform
s.
FrameTransformTree
does not currently support time travel. Lookups
always use the newest TransformStamped
.
Constructor and Description |
---|
FrameTransformTree() |
Modifier and Type | Method and Description |
---|---|
FrameTransform |
get(java.lang.String source) |
FrameTransform |
get(java.lang.String source,
org.ros.message.Time time) |
FrameTransform |
lookUp(FrameName source)
Returns the most recent
FrameTransform for target source . |
FrameTransform |
lookUp(FrameName source,
org.ros.message.Time time)
|
FrameTransform |
transform(FrameName source,
FrameName target) |
FrameTransform |
transform(java.lang.String source,
java.lang.String target) |
void |
update(geometry_msgs.TransformStamped transformStamped)
Updates the tree with the provided
TransformStamped
message. |
public void update(geometry_msgs.TransformStamped transformStamped)
TransformStamped
message.
Note that the tree is updated lazily. Modifications to the provided
TransformStamped
message may cause unpredictable
results.
transformStamped
- the TransformStamped
message to update withpublic FrameTransform lookUp(FrameName source)
FrameTransform
for target source
.source
- the frame to look upFrameTransform
for source
or
null
if no transform for source
is availablepublic FrameTransform get(java.lang.String source)
lookUp(FrameName)
public FrameTransform lookUp(FrameName source, org.ros.message.Time time)
source
- the frame to look uptime
- the transform for frame
closest to this Time
will
be returnedFrameTransform
for source
or
null
if no transform for source
is availablepublic FrameTransform get(java.lang.String source, org.ros.message.Time time)
lookUp(FrameName, Time)
public FrameTransform transform(FrameName source, FrameName target)
FrameTransform
from source the frame to the target
frame, or null
if no FrameTransform
could be foundpublic FrameTransform transform(java.lang.String source, java.lang.String target)
transform(FrameName, FrameName)