24 newFrame->checkReferenceFramesMatch(twistOfCurrentFrameWithRespectToNewFrame.
getBaseFrame());
30 twistOfCurrentFrameWithRespectToNewFrame %= twistOfBodyWrtBaseExpressedInCurrent;
32 this->
wx() += twistOfCurrentFrameWithRespectToNewFrame.
wx();
33 this->
wy() += twistOfCurrentFrameWithRespectToNewFrame.
wy();
34 this->
wz() += twistOfCurrentFrameWithRespectToNewFrame.
wz();
35 this->
vx() += twistOfCurrentFrameWithRespectToNewFrame.
vx();
36 this->
vy() += twistOfCurrentFrameWithRespectToNewFrame.
vy();
37 this->
vz() += twistOfCurrentFrameWithRespectToNewFrame.
vz();
ReferenceFramePtr getReferenceFrame() const
Get a pointer to the reference frame this FrameObject is expressed in.
A custom exception for frame operations.
EIGEN_STRONG_INLINE double & vz()
Get a reference to the linear-z component.
ReferenceFramePtr referenceFrame
EIGEN_STRONG_INLINE double & wx()
Get a reference to the angular-x component.
EIGEN_STRONG_INLINE double & wy()
Get a reference to the angular-y component.
ReferenceFramePtr bodyFrame
void checkReferenceFramesMatch(const FrameObject *frameObject) const
Check if two ReferenceFrameHolders hold the same ReferenceFrame.
EIGEN_STRONG_INLINE double & vx()
Get a reference to the linear-x component.
std::shared_ptr< ReferenceFrame > ReferenceFramePtr
virtual void changeFrame(ReferenceFramePtr desiredFrame)
Change the ReferenceFrame this FrameObject is expressed in.
A SpatialMotion vector is a MotionVector with a RobotDynamics::ReferenceFrame it is expressed in...
void operator+=(const SpatialAcceleration &vector)
Add a SpatialAcceleration, . Frame checks are performed to ensure frame rules are adhered to...
ReferenceFramePtr getBaseFrame() const
Get a SpatialMotions SpatialMotion::baseFrame.
EIGEN_STRONG_INLINE double & wz()
Get a reference to the angular-z component.
void operator-=(const SpatialAcceleration &vector)
Subtract a SpatialAcceleration, . Frame checks are performed to ensure frame rules are adhered to...
EIGEN_STRONG_INLINE double & vy()
Get a reference to the linear-y component.
ReferenceFramePtr getBodyFrame() const
Get a SpatialMotions SpatialMotion::bodyFrame.
ReferenceFramePtr baseFrame
SpatialAcceleration. For clarity, the ReferenceFrames are stated as follows. A spatial acceleration i...
void changeFrameWithRelativeMotion(ReferenceFramePtr newFrame, SpatialMotion twistOfCurrentFrameWithRespectToNewFrame, const SpatialMotion &twistOfBodyWrtBaseExpressedInCurrent)
Use this method to change the ReferenceFrame::expressedInFrame of a SpatialAcceleration if there is r...
Namespace for all structures of the RobotDynamics library.