FramedDirection Class Reference

FramedDirection is a 3 dimensional direction vector with a reference frame. The reference frame can be used to change the coordinate system to which the vector relates. The difference to a FramedPosition is, that on frame changing only the orientation of the vector is changed. The length of the vector remains unchanged. This class is usefull e.g. for forces and tcp velocities. More...

#include <RobotAPI/libraries/core/FramedPose.h>

+ Inheritance diagram for FramedDirection:

Public Member Functions

void changeFrame (const VirtualRobot::Robot &robot, const std::string &newFrame)
 
void changeFrame (const VirtualRobot::RobotPtr &robot, const std::string &newFrame)
 
void changeToGlobal (const SharedRobotInterfacePrx &referenceRobot)
 
void changeToGlobal (const VirtualRobot::Robot &referenceRobot)
 
void changeToGlobal (const VirtualRobot::RobotPtr &referenceRobot)
 
VariantDataClassPtr clone (const Ice::Current &c=Ice::emptyCurrent) const override
 
void deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
 
 FramedDirection ()
 
 FramedDirection (const Eigen::Vector3f &vec, const std::string &frame, const std::string &agent)
 
 FramedDirection (const FramedDirection &source)
 
 FramedDirection (Ice::Float x, ::Ice::Float y, ::Ice::Float z, const std::string &frame, const std::string &agent)
 
std::string getFrame () const
 
VariantTypeId getType (const Ice::Current &c=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
FramedDirectionoperator= (const FramedDirection &)=default
 
std::string output (const Ice::Current &c=Ice::emptyCurrent) const override
 
void serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
 
FramedDirectionPtr toGlobal (const SharedRobotInterfacePrx &referenceRobot) const
 
FramedDirectionPtr toGlobal (const VirtualRobot::Robot &referenceRobot) const
 
FramedDirectionPtr toGlobal (const VirtualRobot::RobotPtr &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const SharedRobotInterfacePrx &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const VirtualRobot::Robot &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const VirtualRobot::RobotPtr &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const SharedRobotInterfacePrx &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const VirtualRobot::Robot &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const VirtualRobot::RobotPtr &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const SharedRobotInterfacePrx &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const VirtualRobot::Robot &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const VirtualRobot::RobotPtr &referenceRobot) const
 
bool validate (const Ice::Current &c=Ice::emptyCurrent) override
 
- Public Member Functions inherited from Vector3
VariantDataClassPtr clone (const Ice::Current &c=Ice::emptyCurrent) const override
 
void deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
 
VariantTypeId getType (const Ice::Current &=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
void operator= (const Eigen::Vector3f &vec)
 
std::string output (const Ice::Current &c=Ice::emptyCurrent) const override
 
void serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
 
virtual Eigen::Vector3f toEigen () const
 
bool validate (const Ice::Current &=Ice::emptyCurrent) override
 
 Vector3 ()
 
 Vector3 (::Ice::Float x, ::Ice::Float y, ::Ice::Float z)
 
 Vector3 (const Eigen::Matrix4f &)
 
 Vector3 (const Eigen::Vector3f &)
 

Static Public Member Functions

static FramedDirectionPtr ChangeFrame (const VirtualRobot::Robot &robot, const FramedDirection &framedVec, const std::string &newFrame)
 
static FramedDirectionPtr ChangeFrame (const VirtualRobot::RobotPtr &robot, const FramedDirection &framedVec, const std::string &newFrame)
 

Friends

std::ostream & operator<< (std::ostream &stream, const FramedDirection &rhs)
 

Detailed Description

FramedDirection is a 3 dimensional direction vector with a reference frame. The reference frame can be used to change the coordinate system to which the vector relates. The difference to a FramedPosition is, that on frame changing only the orientation of the vector is changed. The length of the vector remains unchanged. This class is usefull e.g. for forces and tcp velocities.

See also
Vector3, FramedPosition

Definition at line 86 of file FramedPose.h.

Constructor & Destructor Documentation

◆ FramedDirection() [1/4]

FramedDirection ( )
default
+ Here is the caller graph for this function:

◆ FramedDirection() [2/4]

FramedDirection ( const FramedDirection source)

Definition at line 55 of file FramedPose.cpp.

◆ FramedDirection() [3/4]

FramedDirection ( const Eigen::Vector3f &  vec,
const std::string &  frame,
const std::string &  agent 
)

Definition at line 64 of file FramedPose.cpp.

◆ FramedDirection() [4/4]

FramedDirection ( Ice::Float  x,
::Ice::Float  y,
::Ice::Float  z,
const std::string &  frame,
const std::string &  agent 
)

Definition at line 73 of file FramedPose.cpp.

Member Function Documentation

◆ ChangeFrame() [1/2]

FramedDirectionPtr ChangeFrame ( const VirtualRobot::Robot &  robot,
const FramedDirection framedVec,
const std::string &  newFrame 
)
static

Definition at line 100 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ changeFrame() [1/2]

void changeFrame ( const VirtualRobot::Robot &  robot,
const std::string &  newFrame 
)

Definition at line 139 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ ChangeFrame() [2/2]

FramedDirectionPtr ChangeFrame ( const VirtualRobot::RobotPtr robot,
const FramedDirection framedVec,
const std::string &  newFrame 
)
static

Definition at line 91 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ changeFrame() [2/2]

void changeFrame ( const VirtualRobot::RobotPtr robot,
const std::string &  newFrame 
)

Definition at line 132 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ changeToGlobal() [1/3]

void changeToGlobal ( const SharedRobotInterfacePrx referenceRobot)

Definition at line 186 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ changeToGlobal() [2/3]

void changeToGlobal ( const VirtualRobot::Robot &  referenceRobot)

Definition at line 200 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ changeToGlobal() [3/3]

void changeToGlobal ( const VirtualRobot::RobotPtr referenceRobot)

Definition at line 193 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ clone()

VariantDataClassPtr clone ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 374 of file FramedPose.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deserialize()

void deserialize ( const armarx::ObjectSerializerBasePtr &  serializer,
const ::Ice::Current &  = Ice::emptyCurrent 
)
override

Definition at line 355 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ getFrame()

std::string getFrame ( ) const

Definition at line 85 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ getType()

VariantTypeId getType ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 380 of file FramedPose.cpp.

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 368 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ operator=()

FramedDirection& operator= ( const FramedDirection )
default

◆ output()

std::string output ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 306 of file FramedPose.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( const armarx::ObjectSerializerBasePtr &  serializer,
const ::Ice::Current &  = Ice::emptyCurrent 
) const
override

Definition at line 346 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobal() [1/3]

FramedDirectionPtr toGlobal ( const SharedRobotInterfacePrx referenceRobot) const

Definition at line 218 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ toGlobal() [2/3]

FramedDirectionPtr toGlobal ( const VirtualRobot::Robot &  referenceRobot) const

Definition at line 232 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobal() [3/3]

FramedDirectionPtr toGlobal ( const VirtualRobot::RobotPtr referenceRobot) const

Definition at line 225 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobalEigen() [1/3]

Eigen::Vector3f toGlobalEigen ( const SharedRobotInterfacePrx referenceRobot) const

Definition at line 240 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ toGlobalEigen() [2/3]

Eigen::Vector3f toGlobalEigen ( const VirtualRobot::Robot &  referenceRobot) const

Definition at line 254 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobalEigen() [3/3]

Eigen::Vector3f toGlobalEigen ( const VirtualRobot::RobotPtr referenceRobot) const

Definition at line 247 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootEigen() [1/3]

Eigen::Vector3f toRootEigen ( const SharedRobotInterfacePrx referenceRobot) const

Definition at line 284 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ toRootEigen() [2/3]

Eigen::Vector3f toRootEigen ( const VirtualRobot::Robot &  referenceRobot) const

Definition at line 298 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootEigen() [3/3]

Eigen::Vector3f toRootEigen ( const VirtualRobot::RobotPtr referenceRobot) const

Definition at line 291 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootFrame() [1/3]

FramedDirectionPtr toRootFrame ( const SharedRobotInterfacePrx referenceRobot) const

Definition at line 262 of file FramedPose.cpp.

+ Here is the caller graph for this function:

◆ toRootFrame() [2/3]

FramedDirectionPtr toRootFrame ( const VirtualRobot::Robot &  referenceRobot) const

Definition at line 276 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootFrame() [3/3]

FramedDirectionPtr toRootFrame ( const VirtualRobot::RobotPtr referenceRobot) const

Definition at line 269 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ validate()

bool validate ( const Ice::Current &  c = Ice::emptyCurrent)
override

Definition at line 386 of file FramedPose.cpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const FramedDirection rhs 
)
friend

Definition at line 392 of file FramedPose.cpp.


The documentation for this class was generated from the following files: