Go to the documentation of this file.
99 return getAttribute(
"stringifiedSharedRobotInterfaceProxy")->getValue()->getString();
104 putAttribute(
"stringifiedSharedRobotInterfaceProxy", stringifiedSharedRobotInterfaceProxy);
109 return getAttribute(
"agentFilePath")->getValue()->getString();
132 return this->
clone();
152 return armarx::VariantPtr::dynamicCast(
getPositionAttribute()->getValue())->getClass<armarx::FramedPositionBase>();
157 return armarx::VariantPtr::dynamicCast(
getOrientationAttribute()->getValue())->getClass<armarx::FramedOrientationBase>();
162 armarx::FramedOrientationBasePtr ori = armarx::VariantPtr::dynamicCast(
getOrientationAttribute()->getValue())->getClass<armarx::FramedOrientationBase>();
163 armarx::FramedPositionBasePtr pos = armarx::VariantPtr::dynamicCast(
getPositionAttribute()->getValue())->getClass<armarx::FramedPositionBase>();
164 armarx::FramedPoseBasePtr result(
new armarx::FramedPose(armarx::FramedOrientationPtr::dynamicCast(ori)->
toEigen(), armarx::FramedPositionPtr::dynamicCast(pos)->
toEigen(), pos->frame, pos->agent));
ReaderT::InputType T & ret
EntityAttributeBasePtr getPositionAttribute() const
Eigen::Matrix4f toEigen(data::GlobalPose const &pose)
void putAttribute(const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override
Store attribute in entity.
armarx::FramedOrientationPtr getOrientation() const
const VariantTypeId FramedPose
EntityAttributeBasePtr getAttribute(const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve attribute from entity.
armarx::FramedPoseBasePtr getPoseBase(const ::Ice::Current &=Ice::emptyCurrent) const override
std::string getStringifiedSharedRobotInterfaceProxy(const ::Ice::Current &c=Ice::emptyCurrent) const override
armarx::FramedPositionPtr getPosition() const
armarx::FramedPosePtr getPose() const
void setAgentFilePath(const std::string &agentFilePath, const ::Ice::Current &c=Ice::emptyCurrent) override
std::mutex attributesMutex
The FramedPosition class.
AgentInstancePtr clone(const Ice::Current &c=Ice::emptyCurrent) const
EntityAttributeBasePtr getOrientationAttribute() const
The FramedOrientation class.
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
void setId(const ::std::string &id, const ::Ice::Current &=Ice::emptyCurrent) override
Set id of this entity.
armarx::SharedRobotInterfacePrx getSharedRobot(const Ice::Current &c=Ice::emptyCurrent) const override
armarx::FramedOrientationBasePtr getOrientationBase(const ::Ice::Current &=Ice::emptyCurrent) const override
armarx::FramedPositionBasePtr getPositionBase(const ::Ice::Current &=Ice::emptyCurrent) const override
void setSharedRobot(const armarx::SharedRobotInterfacePrx &robot, const Ice::Current &c=Ice::emptyCurrent) override
set the proxy to a SharedRobot for this agent.
void setPosition(const armarx::FramedPositionBasePtr &position, const ::Ice::Current &=Ice::emptyCurrent) override
std::shared_mutex entityMutex
std::string getAgentFilePath(const ::Ice::Current &c=Ice::emptyCurrent) const override
void setPose(const armarx::FramedPoseBasePtr &newPose)
void setOrientation(const armarx::FramedOrientationBasePtr &orientation, const ::Ice::Current &=Ice::emptyCurrent) override
std::shared_ptr< Object > ObjectPtr
void setStringifiedSharedRobotInterfaceProxy(const std::string &stringifiedSharedRobotInterfaceProxy, const ::Ice::Current &c=Ice::emptyCurrent) override
Ice::ObjectPtr ice_clone() const override
void setName(const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override
Set name of this entity.
std::recursive_mutex wrappersMutex
This file offers overloads of toIce() and fromIce() functions for STL container types.