org.ros.rosjava_geometry
Class FrameTransformTree
java.lang.Object
org.ros.rosjava_geometry.FrameTransformTree
public class FrameTransformTree
- extends java.lang.Object
A tree of FrameTransform
s.
FrameTransformTree
does not currently support time travel. Lookups
always use the newest TransformStamped
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameTransformTree
public FrameTransformTree()
updateTransform
public void updateTransform(geometry_msgs.TransformStamped transform)
- Adds a transform.
- Parameters:
transform
- the transform to add
canTransform
public boolean canTransform(GraphName sourceFrame,
GraphName targetFrame)
- Parameters:
sourceFrame
- the source frametargetFrame
- the target frame
- Returns:
true
if there exists a FrameTransform
from
sourceFrame
to targetFrame
, false
otherwise
newFrameTransform
public FrameTransform newFrameTransform(GraphName sourceFrame,
GraphName targetFrame)
- Returns:
- the
FrameTransform
from source the frame to the target
frame
setPrefix
public void setPrefix(GraphName prefix)
setPrefix
public void setPrefix(java.lang.String prefix)