|
|
#include <MemoryX/libraries/memorytypes/entity/ObjectInstance.h>
Inheritance diagram for ObjectInstance:Public Member Functions | |
| void | addClass (const std::string &className, float probability, const Ice::Current &=Ice::emptyCurrent) override |
| Adds new class membership to the class attribute. More... | |
| void | clearClasses (const Ice::Current &=Ice::emptyCurrent) override |
| Clear class membership. More... | |
| ObjectInstancePtr | clone (const Ice::Current &c=Ice::emptyCurrent) const |
| ClassProbabilityMap | getClasses (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve classes and associated class membership probability for this instance. More... | |
| float | getClassProbability (const ::std::string &className, const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve membership probability for a given class. More... | |
| float | getExistenceCertainty (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve existence certainty for this instance. More... | |
| int | getLocalizationPriority (const ::Ice::Current &=Ice::emptyCurrent) const override |
| IceUtil::Time | getLocalizationTimestamp () const |
| ::std::string | getMostProbableClass (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Retrieve the class with highest membership probability. More... | |
| AbstractMotionModelPtr | getMotionModel () const |
| armarx::FramedOrientationPtr | getOrientation () const |
| Retrieve orientation of the instance. More... | |
| EntityAttributeBasePtr | getOrientationAttribute () const |
| Retrieve attribute which holds instance position. More... | |
| armarx::FramedPosePtr | getPose () const |
| Convenience function to get position and orientation attributes at once. More... | |
| armarx::FramedPositionPtr | getPosition () const |
| Retrieve position of the instance. More... | |
| EntityAttributeBasePtr | getPositionAttribute () const |
| Retrieve attribute which holds instance position. More... | |
| MultivariateNormalDistributionBasePtr | getPositionUncertainty (const ::Ice::Current &=Ice::emptyCurrent) const override |
| Get uncertainty of position estimate. More... | |
| bool | hasLocalizationTimestamp () const |
| Ice::ObjectPtr | ice_clone () const override |
| ObjectInstance (const ObjectInstance &source) | |
| ObjectInstance (const std::string &name, const std::string &id="") | |
| Constructs a new ObjectInstance WorkingMemory entity. More... | |
| void | setClass (const std::string &className, float probability, const Ice::Current &=Ice::emptyCurrent) override |
| Set the class attribute of the ObjectInstance. More... | |
| void | setExistenceCertainty (float existenceCertainty, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set existence certainty for this instance. More... | |
| void | setLocalizationPriority (Ice::Int priority, const ::Ice::Current &=Ice::emptyCurrent) override |
| void | setLocalizationTimestamp (const armarx::TimestampBasePtr ×tamp) |
| void | setLocalizationTimestamp (const IceUtil::Time ×tamp) |
| void | setMotionModel (AbstractMotionModelPtr motionModel) |
| Set the motion model for this object. More... | |
| void | setOrientation (const armarx::FramedOrientationBasePtr &orientation, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set orientation of the instance. More... | |
| void | setPose (const armarx::FramedPoseBasePtr &newPose) |
| Convenience function to set position and orientation attributes at once. More... | |
| void | setPosition (const armarx::FramedPositionBasePtr &position, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set position of the instance. More... | |
| void | setPositionUncertainty (const MultivariateNormalDistributionBasePtr &uncertainty, const ::Ice::Current &=Ice::emptyCurrent) override |
| Set uncertainty of position estimate. More... | |
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::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 | |
Protected Attributes | |
| AbstractMotionModelPtr | motionModel |
Protected Attributes inherited from Entity | |
| std::mutex | attributesMutex |
| std::shared_mutex | entityMutex |
| AbstractEntityWrapperBaseList | wrappers |
| std::recursive_mutex | wrappersMutex |
Friends | |
| template<class IceBaseClass , class DerivedClass > | |
| class | armarx::GenericFactory |
| std::ostream & | operator<< (std::ostream &stream, const ObjectInstance &rhs) |
| std::ostream & | operator<< (std::ostream &stream, const ObjectInstanceBasePtr &rhs) |
| std::ostream & | operator<< (std::ostream &stream, const ObjectInstancePtr &rhs) |
Additional Inherited Members | |
Static Public Member Functions inherited from Entity | |
| static EntityPtr | CreateGenericEntity () |
| Creates an entity without any convenience getter/setter functions. More... | |
Definition at line 48 of file ObjectInstance.h.
| ObjectInstance | ( | const std::string & | name, |
| const std::string & | id = "" |
||
| ) |
Constructs a new ObjectInstance WorkingMemory entity.
A name needs to be assigned. The id is optional.
| name | friendly name of the instance |
| id | optional id of the instance |
Definition at line 38 of file ObjectInstance.cpp.
Here is the call graph for this function:| ObjectInstance | ( | const ObjectInstance & | source | ) |
Definition at line 57 of file ObjectInstance.cpp.
|
override |
Adds new class membership to the class attribute.
| className | name of the class |
| probability | probability of class membership |
Definition at line 256 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Clear class membership.
Definition at line 265 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| ObjectInstancePtr clone | ( | const Ice::Current & | c = Ice::emptyCurrent | ) | const |
|
override |
Retrieve classes and associated class membership probability for this instance.
Definition at line 215 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Retrieve membership probability for a given class.
| className |
Definition at line 291 of file ObjectInstance.cpp.
Here is the call graph for this function:
|
override |
Retrieve existence certainty for this instance.
The existence certainty encodes how likely the scene containes this instance at the given position and orientation. The existence certainty represents the current believe for the instance's existance in the dynamic inference process. Values lie in the interval [0:1], where 1 means perfect knowledge.
Definition at line 70 of file ObjectInstance.cpp.
Here is the call graph for this function:
|
override |
| IceUtil::Time getLocalizationTimestamp | ( | ) | const |
Definition at line 138 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Retrieve the class with highest membership probability.
Definition at line 275 of file ObjectInstance.cpp.
Here is the call graph for this function:| AbstractMotionModelPtr getMotionModel | ( | ) | const |
Definition at line 316 of file ObjectInstance.cpp.
| armarx::FramedOrientationPtr getOrientation | ( | ) | const |
Retrieve orientation of the instance.
Definition at line 185 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| EntityAttributeBasePtr getOrientationAttribute | ( | ) | const |
Retrieve attribute which holds instance position.
Definition at line 179 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 363 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armarx::FramedPosePtr getPose | ( | ) | const |
Convenience function to get position and orientation attributes at once.
Definition at line 198 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armarx::FramedPositionPtr getPosition | ( | ) | const |
Retrieve position of the instance.
Definition at line 88 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| EntityAttributeBasePtr getPositionAttribute | ( | ) | const |
Retrieve attribute which holds instance position.
Definition at line 82 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
Definition at line 356 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Get uncertainty of position estimate.
Definition at line 163 of file ObjectInstance.cpp.
Here is the call graph for this function:| bool hasLocalizationTimestamp | ( | ) | const |
|
override |
|
override |
Set the class attribute of the ObjectInstance.
Corresponds to calling clearClasses() and addClass(...).
| className | name of the class |
| probability | probability of class membership |
Definition at line 237 of file ObjectInstance.cpp.
Here is the call graph for this function:
|
override |
Set existence certainty for this instance.
The existence certainty encodes how likely the scene containes this instance at the given position and orientation. The existence certainty represents the current believe for the instance's existance in the dynamic inference process. Values lie in the interval [0:1], where 1 means perfect knowledge.
| existanceCertainty | existance certainty as probability |
Definition at line 76 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 157 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setLocalizationTimestamp | ( | const armarx::TimestampBasePtr & | timestamp | ) |
| void setLocalizationTimestamp | ( | const IceUtil::Time & | timestamp | ) |
| void setMotionModel | ( | AbstractMotionModelPtr | motionModel | ) |
Set the motion model for this object.
| motionModel | The motion model |
Definition at line 307 of file ObjectInstance.cpp.
Here is the call graph for this function:
|
override |
Set orientation of the instance.
| orientation | orientation linked to a named coordinate frame |
Definition at line 191 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setPose | ( | const armarx::FramedPoseBasePtr & | newPose | ) |
Convenience function to set position and orientation attributes at once.
| newPose | New Pose to set |
Definition at line 207 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Set position of the instance.
| orientation | position linked to a named coordinate frame |
Definition at line 94 of file ObjectInstance.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Set uncertainty of position estimate.
| uncertainty | 3 dimensional multivariate normal distribution with mean at the position |
Definition at line 170 of file ObjectInstance.cpp.
Here is the call graph for this function:
|
friend |
Definition at line 51 of file ObjectInstance.h.
|
friend |
Definition at line 240 of file ObjectInstance.h.
|
friend |
Definition at line 254 of file ObjectInstance.h.
|
friend |
Definition at line 247 of file ObjectInstance.h.
|
protected |
Definition at line 232 of file ObjectInstance.h.