A FrameVector is a pair of 3D vector with a ReferenceFrame.
More...
#include <FrameVectorPair.hpp>
|
FrameVector | angular () const |
| Get copy of angular component. More...
|
|
FrameVector * | angularPtr () |
| Get pointer to angular vector. 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...
|
|
| 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...
|
|
FrameVector | linear () const |
| Get copy of linear component. More...
|
|
FrameVector * | linearPtr () |
| Get pointer to linear vector. More...
|
|
template<typename T > |
void | operator*= (const T scale) |
|
void | operator+= (const FrameVectorPair &v) |
|
void | operator-= (const FrameVectorPair &v) |
|
void | setAngularPart (const Vector3d &v) |
| Set the angular vector. 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 | setReferenceFrame (ReferenceFramePtr referenceFrame) |
| Set the reference frame. More...
|
|
void | setToZero () |
| Set x, y, and z components of linear and angular to 0. More...
|
|
virtual | ~FrameVectorPair () |
| Destructor. More...
|
|
A FrameVector is a pair of 3D vector with a ReferenceFrame.
Definition at line 33 of file FrameVectorPair.hpp.
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
| ) |
|
|
inline |
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
const FrameVector & |
linear, |
|
|
const FrameVector & |
angular |
|
) |
| |
|
inline |
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inlineexplicit |
RobotDynamics::Math::FrameVectorPair::FrameVectorPair |
( |
const SpatialMotion & |
v | ) |
|
|
inlineexplicit |
virtual RobotDynamics::Math::FrameVectorPair::~FrameVectorPair |
( |
| ) |
|
|
inlinevirtual |
FrameVector RobotDynamics::Math::FrameVectorPair::angular |
( |
| ) |
const |
|
inline |
Get copy of angular component.
- Returns
- Copy of angular component
Definition at line 231 of file FrameVectorPair.hpp.
FrameVector* RobotDynamics::Math::FrameVectorPair::angularPtr |
( |
| ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::changeFrame |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inline |
Change the frame of the two 3d vectors. Equivalent to the following math expression
.
- Parameters
-
Definition at line 112 of file FrameVectorPair.hpp.
copy into new frame vector and change the frame of that
- Parameters
-
- Returns
- Copy of frame vector pair expressed in new frame
Definition at line 124 of file FrameVectorPair.hpp.
FrameVector RobotDynamics::Math::FrameVectorPair::linear |
( |
| ) |
const |
|
inline |
FrameVector* RobotDynamics::Math::FrameVectorPair::linearPtr |
( |
| ) |
|
|
inline |
template<typename T >
void RobotDynamics::Math::FrameVectorPair::operator*= |
( |
const T |
scale | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::operator+= |
( |
const FrameVectorPair & |
v | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::operator-= |
( |
const FrameVectorPair & |
v | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::setAngularPart |
( |
const Vector3d & |
v | ) |
|
|
inline |
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 |
Definition at line 156 of file FrameVectorPair.hpp.
Set the components and the ReferenceFrame these components are expressed in.
- Parameters
-
v | Motion vector |
referenceFrame | pointer to a reference frame |
Definition at line 182 of file FrameVectorPair.hpp.
void RobotDynamics::Math::FrameVectorPair::setIncludingFrame |
( |
const SpatialMotion & |
v | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::setLinearPart |
( |
const Vector3d & |
v | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::setReferenceFrame |
( |
ReferenceFramePtr |
referenceFrame | ) |
|
|
inline |
void RobotDynamics::Math::FrameVectorPair::setToZero |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: