|
|
#include <MemoryX/libraries/memorytypes/entity/AgentInstance.h>
Inheritance diagram for AgentInstance:Public Member Functions | |
| AgentInstance () | |
| AgentInstance (const AgentInstance &source) | |
| AgentInstance (const std::string &name, const std::string &id="") | |
| AgentInstancePtr | clone (const Ice::Current &c=Ice::emptyCurrent) const |
| std::string | getAgentFilePath (const ::Ice::Current &c=Ice::emptyCurrent) const override |
| armarx::FramedOrientationPtr | getOrientation () const |
| EntityAttributeBasePtr | getOrientationAttribute () const |
| armarx::FramedPosePtr | getPose () const |
| armarx::FramedPositionPtr | getPosition () const |
| EntityAttributeBasePtr | getPositionAttribute () const |
| armarx::SharedRobotInterfacePrx | getSharedRobot (const Ice::Current &c=Ice::emptyCurrent) const override |
| std::string | getStringifiedSharedRobotInterfaceProxy (const ::Ice::Current &c=Ice::emptyCurrent) const override |
| Ice::ObjectPtr | ice_clone () const override |
| void | setAgentFilePath (const std::string &agentFilePath, const ::Ice::Current &c=Ice::emptyCurrent) override |
| void | setOrientation (const armarx::FramedOrientationBasePtr &orientation, const ::Ice::Current &=Ice::emptyCurrent) override |
| void | setPose (const armarx::FramedPoseBasePtr &newPose) |
| void | setPosition (const armarx::FramedPositionBasePtr &position, const ::Ice::Current &=Ice::emptyCurrent) override |
| void | setSharedRobot (const armarx::SharedRobotInterfacePrx &robot, const Ice::Current &c=Ice::emptyCurrent) override |
| set the proxy to a SharedRobot for this agent. More... | |
| void | setStringifiedSharedRobotInterfaceProxy (const std::string &stringifiedSharedRobotInterfaceProxy, const ::Ice::Current &c=Ice::emptyCurrent) override |
Public Member Functions inherited from Entity | |
| void | __decRef () override |
| template<typename T > | |
| IceInternal::Handle< T > | addWrapper (T *wrapper) |
| Add EntityWrapper to entity. More... | |
| EntityPtr | clone (const Ice::Current &c=Ice::emptyCurrent) const |
| void | deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override |
| Subclasses should use serializable attributes and consider these methods final. More... | |
| bool | equals (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override |
| equals computes if two Entity instances are equal. More... | |
| bool | equalsAttributes (const EntityBasePtr &otherEntity, const ::Ice::Current &=Ice::emptyCurrent) const override |
| equalsAttributes computes if two Entity instances are equal. More... | |
| virtual EntityRefBaseList | getAllParentRefs (bool includeMetaEntities=true) const |
| Retrieve all parents by traversing the whole hierarchy. More... | |
| virtual std::vector< std::string > | getAllParentsAsStringList () const |
| EntityAttributeBasePtr | getAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve attribute from entity. More... | |
| memoryx::NameList | getAttributeNames (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve list of all attribute names. More... | |
| virtual armarx::VariantPtr | getAttributeValue (const ::std::string &attrName) const |
| Retrieve value of an attribute from entity. More... | |
| virtual EntityRefBaseList | getDirectParentRefs () const |
| Retrieve parent entity references. More... | |
| ::std::string | getId (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve id of this entity which is an integer in string representation. More... | |
| ::std::string | getName (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve name of this entity. More... | |
| template<typename T > | |
| IceInternal::Handle< T > | getWrapper () |
| Retrieve EntityWrapper that has previously been added with Entity::addWrapper(). More... | |
| bool | hasAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) const override |
| Check whether this entity has an attribute with the given name. More... | |
| Ice::ObjectPtr | ice_clone () const override |
| bool | isMetaEntity (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Indicates whether this entity only contains meta information. More... | |
| void | putAttribute (const ::memoryx::EntityAttributeBasePtr &attr, const ::Ice::Current &=Ice::emptyCurrent) override |
| Store attribute in entity. More... | |
| template<typename T > | |
| void | putAttribute (const std::string &attrName, T attrValue, ProbabilityMeasureBasePtr uncertainty=ProbabilityMeasureBasePtr()) |
| Create and store attribute from name, value, and optionally uncertainty measure. More... | |
| void | removeAttribute (const ::std::string &attrName, const ::Ice::Current &=Ice::emptyCurrent) override |
| Remove attribute with given name from entity. More... | |
| void | serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override |
| Subclasses should use serializable attributes and consider these methods final. More... | |
| virtual void | setDirectParentRefs (const EntityRefBaseList &entityRefs) |
| Replace parent entity references. More... | |
| void | setId (const ::std::string &id, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set id of this entity. More... | |
| void | setMetaEntity (bool isMetaEntity, const ::Ice::Current &=Ice::emptyCurrent) override |
| Mark this entity as meta (i.e. More... | |
| void | setName (const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set name of this entity. More... | |
Protected Member Functions | |
| armarx::FramedOrientationBasePtr | getOrientationBase (const ::Ice::Current &=Ice::emptyCurrent) const override |
| armarx::FramedPoseBasePtr | getPoseBase (const ::Ice::Current &=Ice::emptyCurrent) const override |
| armarx::FramedPositionBasePtr | getPositionBase (const ::Ice::Current &=Ice::emptyCurrent) const override |
Protected Member Functions inherited from Entity | |
| Entity () | |
| Entity (const Entity &source) | |
| void | ice_postUnmarshal () override |
| void | ice_preMarshal () override |
| void | output (std::ostream &stream) const |
| ~Entity () override | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const AgentInstance &rhs) |
| std::ostream & | operator<< (std::ostream &stream, const AgentInstanceBasePtr &rhs) |
| std::ostream & | operator<< (std::ostream &stream, const AgentInstancePtr &rhs) |
Additional Inherited Members | |
Static Public Member Functions inherited from Entity | |
| static EntityPtr | CreateGenericEntity () |
| Creates an entity without any convenience getter/setter functions. More... | |
Protected Attributes inherited from Entity | |
| std::mutex | attributesMutex |
| std::shared_mutex | entityMutex |
| AbstractEntityWrapperBaseList | wrappers |
| std::recursive_mutex | wrappersMutex |
AgentInstance represents an agent (robot) in the working memory. It allows acces to the agent's position and orientation, as well as to a stringified version of the SharedRobotInterfacePrx of that agent, allowing querying of the agents joint values, and the path to the agents XML data file.
Definition at line 45 of file AgentInstance.h.
| AgentInstance | ( | ) |
Default AgentInstance constructor.
Definition at line 27 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| AgentInstance | ( | const AgentInstance & | source | ) |
Definition at line 36 of file AgentInstance.cpp.
| AgentInstance | ( | const std::string & | name, |
| const std::string & | id = "" |
||
| ) |
Creates an AgentInstance with the given name, and optionally, ID.
Definition at line 45 of file AgentInstance.cpp.
Here is the call graph for this function:| AgentInstancePtr clone | ( | const Ice::Current & | c = Ice::emptyCurrent | ) | const |
Definition at line 155 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Gets the path of the agents XML data file.
Definition at line 121 of file AgentInstance.cpp.
Here is the call graph for this function:| armarx::FramedOrientationPtr getOrientation | ( | ) | const |
Gets the agents framed orientation.
Definition at line 79 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| EntityAttributeBasePtr getOrientationAttribute | ( | ) | const |
Gets a pointer to the agents orientation attribute.
Definition at line 73 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 178 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armarx::FramedPosePtr getPose | ( | ) | const |
Gets the agents framed pose.
Definition at line 92 of file AgentInstance.cpp.
Here is the call graph for this function:
|
overrideprotected |
| armarx::FramedPositionPtr getPosition | ( | ) | const |
Gets the agents framed position.
Definition at line 61 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| EntityAttributeBasePtr getPositionAttribute | ( | ) | const |
Gets a pointer to the agents position attribute.
Definition at line 55 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 171 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 133 of file AgentInstance.cpp.
|
override |
Gets the agents SharedRobotInterfacePrx in string format. This can be converted back to proxy format using the ICE communicator.
Definition at line 107 of file AgentInstance.cpp.
Here is the call graph for this function:
|
override |
|
override |
Sets the path of the agents XML data file.
| agentFilePath | Path of the XML data file. |
Definition at line 127 of file AgentInstance.cpp.
Here is the call graph for this function:
|
override |
Sets the agents framed orientation.
| orientation | Agents framed orientation. |
Definition at line 85 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setPose | ( | const armarx::FramedPoseBasePtr & | newPose | ) |
Sets the agents framed orientation.
| orientation | Agents framed orientation. |
Definition at line 99 of file AgentInstance.cpp.
Here is the call graph for this function:
|
override |
Sets the agents framed position.
| position | Agents framed position. |
Definition at line 67 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
set the proxy to a SharedRobot for this agent.
This entity takes the name from the robot in the given proxy
| robot |
Definition at line 139 of file AgentInstance.cpp.
Here is the call graph for this function:
|
override |
Sets the agents SharedRobotInterfacePrx in string format. A proxy can be converted to string format using the ICE communicator.
Definition at line 113 of file AgentInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 150 of file AgentInstance.h.
|
friend |
Definition at line 164 of file AgentInstance.h.
|
friend |
Definition at line 157 of file AgentInstance.h.