Package edu.tufts.hrilab.tf
Class MockTFComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.tf.MockTFComponent
- All Implemented Interfaces:
CoordinateFramesInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocalStaticTransform(String parent, String child, javax.vecmath.Matrix4d transform) Add a static transform to the TF tree.Get a list of all coordinate frames currently in the system.javax.vecmath.Matrix4dgetTransform(String dstFrame) Get the current transform from the base of the robot to whichever frame you specify.javax.vecmath.Matrix4dgetTransform(String srcFrame, String dstFrame) Get the current transform to convert from one local coordinate frame to a different one.Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, parseArgs, shutdown, shutdownComponent
-
Constructor Details
-
MockTFComponent
public MockTFComponent()
-
-
Method Details
-
getTransform
Description copied from interface:CoordinateFramesInterfaceGet the current transform from the base of the robot to whichever frame you specify. This is just a convenience method for the more general getTransform(src,dest).- Specified by:
getTransformin interfaceCoordinateFramesInterface- Returns:
-
getTransform
Description copied from interface:CoordinateFramesInterfaceGet the current transform to convert from one local coordinate frame to a different one.- Specified by:
getTransformin interfaceCoordinateFramesInterface- Parameters:
srcFrame- source framedstFrame- destination frame- Returns:
-
getCoordinateFrames
Description copied from interface:CoordinateFramesInterfaceGet a list of all coordinate frames currently in the system.- Specified by:
getCoordinateFramesin interfaceCoordinateFramesInterface- Returns:
-
addLocalStaticTransform
Description copied from interface:CoordinateFramesInterfaceAdd a static transform to the TF tree. This only adds the transform to the local TF instance, and does not add it to the ROS TF tree.- Specified by:
addLocalStaticTransformin interfaceCoordinateFramesInterface
-