FramedDirection Class Reference

FramedDirection is a 3 dimensional direction vector with a reference frame. 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::RobotConstPtr &robot, const std::string &newFrame)
 
void changeToGlobal (const SharedRobotInterfacePrx &referenceRobot)
 
void changeToGlobal (const VirtualRobot::Robot &referenceRobot)
 
void changeToGlobal (const VirtualRobot::RobotConstPtr &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::RobotConstPtr &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const SharedRobotInterfacePrx &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const VirtualRobot::Robot &referenceRobot) const
 
Eigen::Vector3f toGlobalEigen (const VirtualRobot::RobotConstPtr &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const SharedRobotInterfacePrx &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const VirtualRobot::Robot &referenceRobot) const
 
Eigen::Vector3f toRootEigen (const VirtualRobot::RobotConstPtr &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const SharedRobotInterfacePrx &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const VirtualRobot::Robot &referenceRobot) const
 
FramedDirectionPtr toRootFrame (const VirtualRobot::RobotConstPtr &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::RobotConstPtr &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 call graph for this function:
+ Here is the caller graph for this function:

◆ FramedDirection() [2/4]

FramedDirection ( const FramedDirection & source)

Definition at line 55 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ FramedDirection() [3/4]

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

Definition at line 64 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ 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.

+ Here is the call graph for this function:

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() [2/2]

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

Definition at line 91 of file FramedPose.cpp.

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

◆ changeFrame() [1/2]

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

Definition at line 140 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ changeFrame() [2/2]

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

Definition at line 132 of file FramedPose.cpp.

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

◆ changeToGlobal() [1/3]

void changeToGlobal ( const SharedRobotInterfacePrx & referenceRobot)

Definition at line 187 of file FramedPose.cpp.

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

◆ changeToGlobal() [2/3]

void changeToGlobal ( const VirtualRobot::Robot & referenceRobot)

Definition at line 201 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ changeToGlobal() [3/3]

void changeToGlobal ( const VirtualRobot::RobotConstPtr & referenceRobot)

Definition at line 194 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 375 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 356 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 381 of file FramedPose.cpp.

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 369 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ operator=()

FramedDirection & operator= ( const FramedDirection & )
default
+ Here is the call graph for this function:

◆ output()

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

Definition at line 307 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 347 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobal() [1/3]

FramedDirectionPtr toGlobal ( const SharedRobotInterfacePrx & referenceRobot) const

Definition at line 219 of file FramedPose.cpp.

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

◆ toGlobal() [2/3]

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

Definition at line 233 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobal() [3/3]

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

Definition at line 226 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 241 of file FramedPose.cpp.

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

◆ toGlobalEigen() [2/3]

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

Definition at line 255 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toGlobalEigen() [3/3]

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

Definition at line 248 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 285 of file FramedPose.cpp.

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

◆ toRootEigen() [2/3]

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

Definition at line 299 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootEigen() [3/3]

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

Definition at line 292 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootFrame() [1/3]

FramedDirectionPtr toRootFrame ( const SharedRobotInterfacePrx & referenceRobot) const

Definition at line 263 of file FramedPose.cpp.

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

◆ toRootFrame() [2/3]

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

Definition at line 277 of file FramedPose.cpp.

+ Here is the call graph for this function:

◆ toRootFrame() [3/3]

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

Definition at line 270 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 387 of file FramedPose.cpp.

Friends And Related Symbol 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: