RemoteRobotNode< VirtualRobotNodeType > Class Template Reference

Mimics the behaviour of robot nodes while redirecting everything to Ice proxies. More...

#include <RobotAPI/libraries/core/remoterobot/RemoteRobot.h>

Public Member Functions

std::vector< VirtualRobot::RobotNodePtr > getAllParents (VirtualRobot::RobotNodeSetPtr rns) override
 
virtual std::vector< std::string > getChildrenNames () const
 
Eigen::Matrix4f getGlobalPose () const override
 
virtual float getJointLimitHi () const
 
virtual float getJointLimitLo () const
 
float getJointValue () const override
 
Eigen::Matrix4f getLocalTransformation () override
 
virtual VirtualRobot::SceneObjectPtr getParent ()
 
Eigen::Matrix4f getPoseInRootFrame () const override
 
Eigen::Vector3f getPositionInRootFrame () const override
 
SharedRobotNodeInterfacePrx getSharedRobotNode ()
 
virtual bool hasChildNode (const std::string &child, bool recursive=false) const
 
 RemoteRobotNode (SharedRobotNodeInterfacePrx node, VirtualRobot::RobotPtr vr)
 
 ~RemoteRobotNode () override
 

Protected Member Functions

virtual void addChildNode (VirtualRobot::RobotNodePtr child)
 
std::vector< VirtualRobot::SceneObjectPtr > getChildren () const override
 
virtual std::string getParentName () const
 
virtual bool hasChildNode (const VirtualRobot::RobotNodePtr child, bool recursive=false) const
 
virtual bool initialize (VirtualRobot::RobotNodePtr parent, bool initializeChildren=false)
 
virtual void reset ()
 
void setGlobalPose (const Eigen::Matrix4f &pose) override
 
void setJointLimits (float lo, float hi) override
 
virtual void setJointValue (float q, bool updateTransformations=true, bool clampToLimits=true)
 
virtual void setLocalTransformation (const Eigen::Matrix4f &trafo)
 
void updateTransformationMatrices () override
 
void updateTransformationMatrices (const Eigen::Matrix4f &globalPose) override
 

Protected Attributes

SharedRobotNodeInterfacePrx _node
 

Friends

struct RemoteRobotNodeInitializer< VirtualRobotNodeType >
 

Detailed Description

template<class VirtualRobotNodeType>
class armarx::RemoteRobotNode< VirtualRobotNodeType >

Mimics the behaviour of robot nodes while redirecting everything to Ice proxies.

Template Parameters
VirtualRobotNodeTypeMust be a descendant of VirtualRobot::RobotNode

This class is for internal use only as classes cannot be referenced!

Definition at line 41 of file RemoteRobot.h.

Constructor & Destructor Documentation

◆ RemoteRobotNode()

RemoteRobotNode ( SharedRobotNodeInterfacePrx  node,
VirtualRobot::RobotPtr  vr 
)
inline

Definition at line 76 of file RemoteRobot.h.

+ Here is the call graph for this function:

◆ ~RemoteRobotNode()

~RemoteRobotNode
override

Definition at line 85 of file RemoteRobotNode.cpp.

Member Function Documentation

◆ addChildNode()

void addChildNode ( VirtualRobot::RobotNodePtr  child)
protectedvirtual

Definition at line 225 of file RemoteRobotNode.cpp.

◆ getAllParents()

vector< RobotNodePtr > getAllParents ( VirtualRobot::RobotNodeSetPtr  rns)
override

Definition at line 165 of file RemoteRobotNode.cpp.

◆ getChildren()

std::vector< SceneObjectPtr > getChildren
overrideprotected

Definition at line 202 of file RemoteRobotNode.cpp.

◆ getChildrenNames()

std::vector< std::string > getChildrenNames
virtual

Definition at line 192 of file RemoteRobotNode.cpp.

◆ getGlobalPose()

Eigen::Matrix4f getGlobalPose
override

Definition at line 130 of file RemoteRobotNode.cpp.

+ Here is the caller graph for this function:

◆ getJointLimitHi()

float getJointLimitHi
virtual

Definition at line 108 of file RemoteRobotNode.cpp.

◆ getJointLimitLo()

float getJointLimitLo
virtual

Definition at line 113 of file RemoteRobotNode.cpp.

◆ getJointValue()

float getJointValue
override

Definition at line 102 of file RemoteRobotNode.cpp.

◆ getLocalTransformation()

Eigen::Matrix4f getLocalTransformation
override

Definition at line 124 of file RemoteRobotNode.cpp.

◆ getParent()

SceneObjectPtr getParent
virtual

Definition at line 179 of file RemoteRobotNode.cpp.

◆ getParentName()

std::string getParentName
protectedvirtual

Definition at line 197 of file RemoteRobotNode.cpp.

◆ getPoseInRootFrame()

Eigen::Matrix4f getPoseInRootFrame
override

Definition at line 135 of file RemoteRobotNode.cpp.

◆ getPositionInRootFrame()

Eigen::Vector3f getPositionInRootFrame
override

Definition at line 141 of file RemoteRobotNode.cpp.

◆ getSharedRobotNode()

SharedRobotNodeInterfacePrx getSharedRobotNode ( )
inline

Definition at line 105 of file RemoteRobot.h.

◆ hasChildNode() [1/2]

bool hasChildNode ( const std::string &  child,
bool  recursive = false 
) const
virtual

Definition at line 154 of file RemoteRobotNode.cpp.

◆ hasChildNode() [2/2]

virtual bool hasChildNode ( const VirtualRobot::RobotNodePtr  child,
bool  recursive = false 
) const
protectedvirtual

◆ initialize()

bool initialize ( VirtualRobot::RobotNodePtr  parent,
bool  initializeChildren = false 
)
protectedvirtual

Definition at line 229 of file RemoteRobotNode.cpp.

◆ reset()

void reset
protectedvirtual

Definition at line 234 of file RemoteRobotNode.cpp.

◆ setGlobalPose()

void setGlobalPose ( const Eigen::Matrix4f &  pose)
overrideprotected

Definition at line 238 of file RemoteRobotNode.cpp.

◆ setJointLimits()

void setJointLimits ( float  lo,
float  hi 
)
overrideprotected

Definition at line 160 of file RemoteRobotNode.cpp.

+ Here is the caller graph for this function:

◆ setJointValue()

void setJointValue ( float  q,
bool  updateTransformations = true,
bool  clampToLimits = true 
)
protectedvirtual

Definition at line 242 of file RemoteRobotNode.cpp.

◆ setLocalTransformation()

void setLocalTransformation ( const Eigen::Matrix4f &  trafo)
protectedvirtual

Definition at line 188 of file RemoteRobotNode.cpp.

◆ updateTransformationMatrices() [1/2]

void updateTransformationMatrices
overrideprotected

Definition at line 215 of file RemoteRobotNode.cpp.

◆ updateTransformationMatrices() [2/2]

void updateTransformationMatrices ( const Eigen::Matrix4f &  globalPose)
overrideprotected

Definition at line 219 of file RemoteRobotNode.cpp.

Friends And Related Function Documentation

◆ RemoteRobotNodeInitializer< VirtualRobotNodeType >

friend struct RemoteRobotNodeInitializer< VirtualRobotNodeType >
friend

Definition at line 73 of file RemoteRobot.h.

Member Data Documentation

◆ _node

SharedRobotNodeInterfacePrx _node
protected

Definition at line 132 of file RemoteRobot.h.


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