5 #ifndef __RDL_FRAME_VECTOR_PAIR_HPP__
6 #define __RDL_FRAME_VECTOR_PAIR_HPP__
111 assert(referenceFrame);
155 assert(referenceFrame);
168 assert(referenceFrame);
181 assert(referenceFrame);
233 template <
typename T>
275 template <
typename T>
282 template <
typename T>
virtual void changeFrame(ReferenceFramePtr desiredFrame)
Change the ReferenceFrame this FrameObject is expressed in.
Definition: FrameObject.cpp:9
void setReferenceFrame(ReferenceFramePtr frame)
Set frame objects internal reference frame.
Definition: FrameObject.hpp:58
void checkReferenceFramesMatch(const FrameObject *frameObject) const
Check if two FrameObjects hold the same ReferenceFrame.
Definition: FrameObject.hpp:67
ReferenceFramePtr getReferenceFrame() const
Get a pointer to the reference frame this FrameObject is expressed in.
Definition: FrameObject.hpp:49
A FrameVector is a pair of 3D vector with a ReferenceFrame.
Definition: FrameVectorPair.hpp:31
void setIncludingFrame(ReferenceFramePtr referenceFrame, const Vector3d &linear, const Vector3d &angular)
Set the components and the ReferenceFrame these components are expressed in.
Definition: FrameVectorPair.hpp:153
FrameVector lin
Definition: FrameVectorPair.hpp:271
FrameVector ang
Definition: FrameVectorPair.hpp:272
void setIncludingFrame(const SpatialMotion &v)
Set the components and the ReferenceFrame these components are expressed in.
Definition: FrameVectorPair.hpp:191
void operator-=(const FrameVectorPair &v)
Definition: FrameVectorPair.hpp:246
FrameVectorPair changeFrameAndCopy(ReferenceFramePtr referenceFrame) const
copy into new frame vector and change the frame of that
Definition: FrameVectorPair.hpp:121
void setLinearPart(const Vector3d &v)
Set the linear vector.
Definition: FrameVectorPair.hpp:201
void changeFrame(ReferenceFramePtr referenceFrame)
Change the frame of the two 3d vectors. Equivalent to the following math expression.
Definition: FrameVectorPair.hpp:109
void setIncludingFrame(ReferenceFramePtr referenceFrame, const MotionVector &v)
Set the components and the ReferenceFrame these components are expressed in.
Definition: FrameVectorPair.hpp:179
FrameVector linear() const
Get copy of linear component.
Definition: FrameVectorPair.hpp:219
virtual ~FrameVectorPair()
Destructor.
Definition: FrameVectorPair.hpp:90
void setIncludingFrame(ReferenceFramePtr referenceFrame, const SpatialVector &v)
Set the components and the ReferenceFrame these components are expressed in.
Definition: FrameVectorPair.hpp:166
FrameVectorPair(ReferenceFramePtr referenceFrame, const SpatialVector &v)
Constructor.
Definition: FrameVectorPair.hpp:83
void operator+=(const FrameVectorPair &v)
Definition: FrameVectorPair.hpp:240
FrameVectorPair()
Default constructor. Initializes its ReferenceFrame to nullptr.
Definition: FrameVectorPair.hpp:36
void setReferenceFrame(ReferenceFramePtr referenceFrame)
Set the reference frame.
Definition: FrameVectorPair.hpp:141
FrameVectorPair(const FrameVector &linear, const FrameVector &angular)
Definition: FrameVectorPair.hpp:45
FrameVectorPair(ReferenceFramePtr referenceFrame)
Definition: FrameVectorPair.hpp:54
FrameVectorPair(ReferenceFramePtr referenceFrame, const Vector3d &linear, const Vector3d &angular)
Constructor.
Definition: FrameVectorPair.hpp:74
FrameVector * linearPtr()
Get pointer to linear vector.
Definition: FrameVectorPair.hpp:256
FrameVectorPair(const SpatialMotion &v)
Constructor.
Definition: FrameVectorPair.hpp:62
void operator*=(const T scale)
Definition: FrameVectorPair.hpp:234
void setAngularPart(const Vector3d &v)
Set the angular vector.
Definition: FrameVectorPair.hpp:210
void setToZero()
Set x, y, and z components of linear and angular to 0.
Definition: FrameVectorPair.hpp:131
FrameVector * angularPtr()
Get pointer to angular vector.
Definition: FrameVectorPair.hpp:265
FrameVector angular() const
Get copy of angular component.
Definition: FrameVectorPair.hpp:228
A FrameVector is a 3D vector with a ReferenceFrame, and all operations between FrameVectors and other...
Definition: FrameVector.hpp:31
void setIncludingFrame(const double x, const double y, const double z, ReferenceFramePtr referenceFrame)
Set the x, y, and z components and the ReferenceFrame these components are expressed in.
Definition: FrameVector.hpp:113
Definition: MotionVector.hpp:21
A SpatialMotion vector is a MotionVector with a RobotDynamics::ReferenceFrame it is expressed in....
Definition: SpatialMotion.hpp:33
Definition: rdl_eigenmath.hpp:187
EIGEN_STRONG_INLINE Vector3d getLinearPart() const
Definition: rdl_eigenmath.hpp:235
EIGEN_STRONG_INLINE Vector3d getAngularPart() const
Definition: rdl_eigenmath.hpp:230
Definition: rdl_eigenmath.hpp:54
void set(const Eigen::Vector3d &v)
Definition: rdl_eigenmath.hpp:82
std::shared_ptr< ReferenceFrame > ReferenceFramePtr
Definition: ReferenceFrame.hpp:68
FramePoint operator-(FramePoint p, const FrameVector &v)
Definition: FramePoint.hpp:410
FramePoint operator+(FramePoint p, const FrameVector &v)
Definition: FramePoint.hpp:404
ForceVector operator*(const SpatialTransform &X, ForceVector f)
Operator for transforming a ForceVector. Calls the ForceVector::transform method.
Definition: ForceVector.hpp:248
Namespace for all structures of the RobotDynamics library.
Definition: examples.hpp:19