16 if (
this == desiredFrame.get())
44 if (referenceFrame ==
nullptr)
49 if (referenceFrame !=
this)
59 std::string msg =
"Frames " + frame->getName() +
" and " + this->
getName() +
" have mismatched roots!";
std::string getName() const
Get the frame name.
static ReferenceFramePtr worldFrame
A custom exception for frame operations.
RobotDynamics::Math::SpatialTransform transformToRoot
void checkReferenceFramesMatch(ReferenceFramePtr referenceFrame) const
Check if the argument ReferenceFrame equals this.
RobotDynamics::Math::SpatialTransform transformFromParent
RobotDynamics::Math::SpatialTransform inverseTransformToRoot
std::shared_ptr< ReferenceFrame > ReferenceFramePtr
virtual RobotDynamics::Math::SpatialTransform getTransformToRoot()
Get this frames ReferenceFrame::transformToRoot.
void verifyFramesHaveSameRoot(ReferenceFramePtr frame)
Check if two frames have the same roots.
ReferenceFrame * getRootFrame()
ReferenceFrame object used to tell what frame objects are expressed in. Every ReferenceFrame has a po...
ReferenceFrame * rootFrame
void getTransformToDesiredFrame(RobotDynamics::Math::SpatialTransform &transformToPack, ReferenceFramePtr desiredFrame)
Get the spatial transform from this frame to desiredFrame and store it in transformToPack.
static ReferenceFramePtr createAWorldFrame(const std::string &frameName="world")
Helper method to create a world frame.
ReferenceFramePtr parentFrame
Namespace for all structures of the RobotDynamics library.
void update()
Recalculates this frames ReferenceFrame::transformToRoot and ReferenceFrame::inverseTransformToRoot w...