A FrameVector is a pair of 3D vector with a ReferenceFrame.
More...
#include <FrameVectorPair.hpp>
|
| FrameVectorPair () |
| Default constructor. Initializes its ReferenceFrame to nullptr. More...
|
|
| FrameVectorPair (const FrameVector &linear, const FrameVector &angular) |
|
| FrameVectorPair (ReferenceFramePtr referenceFrame) |
|
| FrameVectorPair (const SpatialMotion &v) |
| Constructor. More...
|
|
| FrameVectorPair (ReferenceFramePtr referenceFrame, const Vector3d &linear, const Vector3d &angular) |
| Constructor. More...
|
|
| FrameVectorPair (ReferenceFramePtr referenceFrame, const SpatialVector &v) |
| Constructor. More...
|
|
virtual | ~FrameVectorPair () |
| Destructor. More...
|
|
void | changeFrame (ReferenceFramePtr referenceFrame) |
| Change the frame of the two 3d vectors. Equivalent to the following math expression. More...
|
|
FrameVectorPair | changeFrameAndCopy (ReferenceFramePtr referenceFrame) const |
| copy into new frame vector and change the frame of that More...
|
|
void | setToZero () |
| Set x, y, and z components of linear and angular to 0. More...
|
|
void | setReferenceFrame (ReferenceFramePtr referenceFrame) |
| Set the reference frame. More...
|
|
void | setIncludingFrame (ReferenceFramePtr referenceFrame, const Vector3d &linear, const Vector3d &angular) |
| Set the components and the ReferenceFrame these components are expressed in. More...
|
|
void | setIncludingFrame (ReferenceFramePtr referenceFrame, const SpatialVector &v) |
| Set the components and the ReferenceFrame these components are expressed in. More...
|
|
void | setIncludingFrame (ReferenceFramePtr referenceFrame, const MotionVector &v) |
| Set the components and the ReferenceFrame these components are expressed in. More...
|
|
void | setIncludingFrame (const SpatialMotion &v) |
| Set the components and the ReferenceFrame these components are expressed in. More...
|
|
void | setLinearPart (const Vector3d &v) |
| Set the linear vector. More...
|
|
void | setAngularPart (const Vector3d &v) |
| Set the angular vector. More...
|
|
FrameVector | linear () const |
| Get copy of linear component. More...
|
|
FrameVector | angular () const |
| Get copy of angular component. More...
|
|
template<typename T > |
void | operator*= (const T scale) |
|
void | operator+= (const FrameVectorPair &v) |
|
void | operator-= (const FrameVectorPair &v) |
|
FrameVector * | linearPtr () |
| Get pointer to linear vector. More...
|
|
FrameVector * | angularPtr () |
| Get pointer to angular vector. More...
|
|
A FrameVector is a pair of 3D vector with a ReferenceFrame.
◆ FrameVectorPair() [1/6]
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
| ) |
|
|
inline |
◆ FrameVectorPair() [2/6]
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
const FrameVector & |
linear, |
|
|
const FrameVector & |
angular |
|
) |
| |
|
inline |
◆ FrameVectorPair() [3/6]
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inlineexplicit |
◆ FrameVectorPair() [4/6]
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
const SpatialMotion & |
v | ) |
|
|
inlineexplicit |
◆ FrameVectorPair() [5/6]
Constructor.
- Parameters
-
referenceFrame | A pointer to a ReferenceFrame |
linear | linear component |
angular | angular component |
◆ FrameVectorPair() [6/6]
◆ ~FrameVectorPair()
virtual RobotDynamics::Math::FrameVectorPair::~FrameVectorPair |
( |
| ) |
|
|
inlinevirtual |
◆ angular()
FrameVector RobotDynamics::Math::FrameVectorPair::angular |
( |
| ) |
const |
|
inline |
Get copy of angular component.
- Returns
- Copy of angular component
◆ angularPtr()
FrameVector* RobotDynamics::Math::FrameVectorPair::angularPtr |
( |
| ) |
|
|
inline |
Get pointer to angular vector.
- Returns
- pointer
◆ changeFrame()
void RobotDynamics::Math::FrameVectorPair::changeFrame |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inline |
Change the frame of the two 3d vectors. Equivalent to the following math expression.
- Parameters
-
◆ changeFrameAndCopy()
copy into new frame vector and change the frame of that
- Parameters
-
- Returns
- Copy of frame vector pair expressed in new frame
◆ linear()
FrameVector RobotDynamics::Math::FrameVectorPair::linear |
( |
| ) |
const |
|
inline |
Get copy of linear component.
- Returns
- Copy of linear part
◆ linearPtr()
FrameVector* RobotDynamics::Math::FrameVectorPair::linearPtr |
( |
| ) |
|
|
inline |
Get pointer to linear vector.
- Returns
- pointer
◆ operator*=()
template<typename T >
void RobotDynamics::Math::FrameVectorPair::operator*= |
( |
const T |
scale | ) |
|
|
inline |
◆ operator+=()
void RobotDynamics::Math::FrameVectorPair::operator+= |
( |
const FrameVectorPair & |
v | ) |
|
|
inline |
◆ operator-=()
void RobotDynamics::Math::FrameVectorPair::operator-= |
( |
const FrameVectorPair & |
v | ) |
|
|
inline |
◆ setAngularPart()
void RobotDynamics::Math::FrameVectorPair::setAngularPart |
( |
const Vector3d & |
v | ) |
|
|
inline |
Set the angular vector.
- Parameters
-
◆ setIncludingFrame() [1/4]
void RobotDynamics::Math::FrameVectorPair::setIncludingFrame |
( |
const SpatialMotion & |
v | ) |
|
|
inline |
Set the components and the ReferenceFrame these components are expressed in.
- Parameters
-
◆ setIncludingFrame() [2/4]
Set the components and the ReferenceFrame these components are expressed in.
- Parameters
-
v | Motion vector |
referenceFrame | pointer to a reference frame |
◆ setIncludingFrame() [3/4]
Set the components and the ReferenceFrame these components are expressed in.
- Parameters
-
v | spatial vector |
referenceFrame | Pointer to a ReferenceFrame this point is expressed in |
◆ setIncludingFrame() [4/4]
Set the components and the ReferenceFrame these components are expressed in.
- Parameters
-
linear | Linear component |
angular | Angular component |
referenceFrame | Pointer to a ReferenceFrame this point is expressed in |
◆ setLinearPart()
void RobotDynamics::Math::FrameVectorPair::setLinearPart |
( |
const Vector3d & |
v | ) |
|
|
inline |
Set the linear vector.
- Parameters
-
◆ setReferenceFrame()
void RobotDynamics::Math::FrameVectorPair::setReferenceFrame |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inline |
Set the reference frame.
- Parameters
-
◆ setToZero()
void RobotDynamics::Math::FrameVectorPair::setToZero |
( |
| ) |
|
|
inline |
Set x, y, and z components of linear and angular to 0.
◆ ang
◆ lin
The documentation for this class was generated from the following file: