Go to the documentation of this file.
29 #include <RobotAPI/interface/core/RobotState.h>
31 #include <VirtualRobot/VirtualRobot.h>
45 virtual public SharedObjectInterface
48 void ref(
const Ice::Current&
c = Ice::emptyCurrent)
override;
49 void unref(
const Ice::Current&
c = Ice::emptyCurrent)
override;
50 void destroy(
const Ice::Current&
c = Ice::emptyCurrent)
override;
53 unsigned int _referenceCount;
54 std::mutex _counterMutex;
65 virtual public SharedRobotNodeInterface,
72 float getJointValue(
const Ice::Current& current = Ice::emptyCurrent)
const override;
73 std::string
getName(
const Ice::Current& current = Ice::emptyCurrent)
const override;
76 FramedPoseBasePtr
getGlobalPose(
const Ice::Current& current = Ice::emptyCurrent)
const override;
77 FramedPoseBasePtr
getPoseInRootFrame(
const Ice::Current& current = Ice::emptyCurrent)
const override;
79 JointType
getType(
const Ice::Current& current = Ice::emptyCurrent)
const override;
81 Vector3BasePtr
getJointRotationAxis(
const Ice::Current& current = Ice::emptyCurrent)
const override;
83 bool hasChild(
const std::string& name,
bool recursive,
const Ice::Current& current = Ice::emptyCurrent)
const override;
84 std::string
getParent(
const Ice::Current& current = Ice::emptyCurrent)
const override;
85 NameList
getChildren(
const Ice::Current& current = Ice::emptyCurrent)
const override;
86 NameList
getAllParents(
const std::string& name,
const Ice::Current& current = Ice::emptyCurrent)
const override;
89 float getJointLimitHigh(
const Ice::Current& current = Ice::emptyCurrent)
const override;
90 float getJointLimitLow(
const Ice::Current& current = Ice::emptyCurrent)
const override;
92 Vector3BasePtr
getCoM(
const Ice::Current& current = Ice::emptyCurrent)
const override;
93 Ice::FloatSeq
getInertia(
const Ice::Current& current = Ice::emptyCurrent)
const override;
94 float getMass(
const Ice::Current& current = Ice::emptyCurrent)
const override;
99 VirtualRobot::RobotNodePtr
_node;
111 public virtual SharedRobotInterface,
118 SharedRobotNodeInterfacePrx
getRobotNode(
const std::string& name,
const Ice::Current& current = Ice::emptyCurrent)
override;
119 SharedRobotNodeInterfacePrx
getRootNode(
const Ice::Current& current = Ice::emptyCurrent)
override;
120 bool hasRobotNode(
const std::string& name,
const Ice::Current& current = Ice::emptyCurrent)
override;
122 NameList
getRobotNodes(
const Ice::Current& current = Ice::emptyCurrent)
override;
123 RobotNodeSetInfoPtr
getRobotNodeSet(
const std::string& name,
const Ice::Current& current = Ice::emptyCurrent)
override;
124 NameList
getRobotNodeSets(
const Ice::Current& current = Ice::emptyCurrent)
override;
125 bool hasRobotNodeSet(
const std::string& name,
const Ice::Current& current = Ice::emptyCurrent)
override;
127 std::string
getName(
const Ice::Current& current = Ice::emptyCurrent)
override;
128 std::string
getType(
const Ice::Current& current = Ice::emptyCurrent)
override;
130 PoseBasePtr
getGlobalPose(
const Ice::Current& current = Ice::emptyCurrent)
override;
133 void setGlobalPose(
const PoseBasePtr& pose,
const Ice::Current& current = Ice::emptyCurrent)
override;
135 float getScaling(
const Ice::Current& = Ice::emptyCurrent)
override;
140 TimestampBasePtr
getTimestamp(
const Ice::Current& = Ice::emptyCurrent)
const override;
144 std::recursive_mutex
m;
VirtualRobot::RobotPtr _robot
Vector3BasePtr getJointTranslationDirection(const Ice::Current ¤t=Ice::emptyCurrent) const override
void destroy(const Ice::Current &c=Ice::emptyCurrent) override
PoseBasePtr getGlobalPose(const Ice::Current ¤t=Ice::emptyCurrent) override
FramedPoseBasePtr getGlobalPose(const Ice::Current ¤t=Ice::emptyCurrent) const override
The SharedRobotNodeServant class is a remote representation of a Simox VirtualRobot::Robot.
JointType getType(const Ice::Current ¤t=Ice::emptyCurrent) const override
std::string getName(const Ice::Current ¤t=Ice::emptyCurrent) override
void setRobotStateComponent(RobotStateComponentInterfacePrx robotStateComponent)
std::map< std::string, SharedRobotNodeInterfacePrx > _cachedNodes
TimestampBasePtr getTimestamp(const Ice::Current &=Ice::emptyCurrent) const override
SharedRobotNodeInterfacePrx getRootNode(const Ice::Current ¤t=Ice::emptyCurrent) override
~SharedRobotServant() override
RobotStateComponentInterfacePrx getRobotStateComponent(const Ice::Current &) const override
The SharedRobotNodeServant class is a remote represenation of a Simox VirtualRobot::Robot.
Ice::FloatSeq getInertia(const Ice::Current ¤t=Ice::emptyCurrent) const override
NameList getRobotNodeSets(const Ice::Current ¤t=Ice::emptyCurrent) override
float getJointValue(const Ice::Current ¤t=Ice::emptyCurrent) const override
NameValueMap getConfig(const Ice::Current ¤t=Ice::emptyCurrent) override
float getJointLimitLow(const Ice::Current ¤t=Ice::emptyCurrent) const override
float getMass(const Ice::Current ¤t=Ice::emptyCurrent) const override
PoseBasePtr getLocalTransformation(const Ice::Current ¤t=Ice::emptyCurrent) const override
NameList getAllParents(const std::string &name, const Ice::Current ¤t=Ice::emptyCurrent) const override
RobotNodeSetInfoPtr getRobotNodeSet(const std::string &name, const Ice::Current ¤t=Ice::emptyCurrent) override
void unref(const Ice::Current &c=Ice::emptyCurrent) override
SharedRobotNodeInterfacePrx getRobotNode(const std::string &name, const Ice::Current ¤t=Ice::emptyCurrent) override
~SharedRobotNodeServant() override
SharedRobotServant(VirtualRobot::RobotPtr robot, RobotStateComponentInterfacePrx robotStateComponent, RobotStateListenerInterfacePrx robotStateListenerPrx)
void setGlobalPose(const PoseBasePtr &pose, const Ice::Current ¤t=Ice::emptyCurrent) override
NameList getChildren(const Ice::Current ¤t=Ice::emptyCurrent) const override
std::string getParent(const Ice::Current ¤t=Ice::emptyCurrent) const override
NameList getRobotNodes(const Ice::Current ¤t=Ice::emptyCurrent) override
std::string getName(const Ice::Current ¤t=Ice::emptyCurrent) const override
void setTimestamp(const IceUtil::Time &updateTime)
The base class for remote objects on the ice server.
armarx::core::time::DateTime Time
IceUtil::Time updateTimestamp
bool hasChild(const std::string &name, bool recursive, const Ice::Current ¤t=Ice::emptyCurrent) const override
RobotStateComponentInterfacePrx robotStateComponent
float getJointLimitHigh(const Ice::Current ¤t=Ice::emptyCurrent) const override
void ref(const Ice::Current &c=Ice::emptyCurrent) override
float getScaling(const Ice::Current &=Ice::emptyCurrent) override
SharedRobotNodeServant(VirtualRobot::RobotNodePtr node)
VirtualRobot::RobotPtr getRobot() const
Vector3BasePtr getJointRotationAxis(const Ice::Current ¤t=Ice::emptyCurrent) const override
float getJointValueOffest(const Ice::Current ¤t=Ice::emptyCurrent) const override
std::string getType(const Ice::Current ¤t=Ice::emptyCurrent) override
RobotStateListenerInterfacePrx robotStateListenerPrx
NameValueMap getConfigAndPose(PoseBasePtr &globalPose, const Ice::Current ¤t=Ice::emptyCurrent) override
VirtualRobot::RobotNodePtr _node
bool hasRobotNode(const std::string &name, const Ice::Current ¤t=Ice::emptyCurrent) override
bool hasRobotNodeSet(const std::string &name, const Ice::Current ¤t=Ice::emptyCurrent) override
Vector3BasePtr getCoM(const Ice::Current ¤t=Ice::emptyCurrent) const override
FramedPoseBasePtr getPoseInRootFrame(const Ice::Current ¤t=Ice::emptyCurrent) const override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr