EnvironmentalPrimitive Class Reference

#include <MemoryX/libraries/memorytypes/entity/EnvironmentalPrimitive.h>

+ Inheritance diagram for EnvironmentalPrimitive:

Public Member Functions

EnvironmentalPrimitivePtr clone (const Ice::Current &c=Ice::emptyCurrent) const
 
 EnvironmentalPrimitive (const std::string &name="", const std::string &id="", const std::string &shape="")
 
float getCircularityProbability (const Ice::Current &c=Ice::emptyCurrent) const override
 
PointList getGraspPoints (const Ice::Current &c=Ice::emptyCurrent) const override
 
PointList getInliers (const Ice::Current &c=Ice::emptyCurrent) const override
 
int getLabel (const Ice::Current &c=Ice::emptyCurrent) const override
 
float getLength (const Ice::Current &c=Ice::emptyCurrent) const override
 
armarx::Vector3BasePtr getOBBDimensions (const Ice::Current &c=Ice::emptyCurrent) const override
 
armarx::FramedPoseBasePtr getPose (const Ice::Current &c=Ice::emptyCurrent) const override
 
float getProbability (const Ice::Current &c=Ice::emptyCurrent) const override
 
armarx::MatrixFloatBasePtr getSampling (const Ice::Current &c=Ice::emptyCurrent) const override
 
std::string getShape (const Ice::Current &c=Ice::emptyCurrent) const override
 
armarx::TimestampBasePtr getTime (const Ice::Current &c=Ice::emptyCurrent) const override
 
Ice::ObjectPtr ice_clone () const override
 
void setCircularityProbability (float probability, const Ice::Current &c=Ice::emptyCurrent) override
 
void setGraspPoints (const PointList &graspPoints, const Ice::Current &c=Ice::emptyCurrent) override
 
void setInliers (const PointList &inliers, const Ice::Current &c=Ice::emptyCurrent) override
 
void setLabel (int label, const Ice::Current &c=Ice::emptyCurrent) override
 
void setLength (float length, const Ice::Current &c=Ice::emptyCurrent) override
 
void setOBBDimensions (const armarx::Vector3BasePtr &dimensions, const Ice::Current &c=Ice::emptyCurrent) override
 
void setPose (const armarx::FramedPoseBasePtr &pose, const Ice::Current &c=Ice::emptyCurrent) override
 
void setProbability (float probability, const Ice::Current &c=Ice::emptyCurrent) override
 
void setSampling (const armarx::MatrixFloatBasePtr &sampling, const Ice::Current &c=Ice::emptyCurrent) override
 
void setTime (const armarx::TimestampBasePtr &time, const Ice::Current &c=Ice::emptyCurrent) override
 
- Public Member Functions inherited from Entity
void __decRef () override
 
template<typename T >
IceInternal::Handle< TaddWrapper (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< TgetWrapper ()
 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

void setShape (const std::string &shape, const Ice::Current &c=Ice::emptyCurrent) 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
 

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
 

Detailed Description

Definition at line 51 of file EnvironmentalPrimitive.h.

Constructor & Destructor Documentation

◆ EnvironmentalPrimitive()

EnvironmentalPrimitive ( const std::string &  name = "",
const std::string &  id = "",
const std::string &  shape = "" 
)

Definition at line 34 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ clone()

EnvironmentalPrimitivePtr clone ( const Ice::Current &  c = Ice::emptyCurrent) const

Definition at line 225 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCircularityProbability()

float getCircularityProbability ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 159 of file EnvironmentalPrimitive.cpp.

◆ getGraspPoints()

PointList getGraspPoints ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 67 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ getInliers()

PointList getInliers ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 109 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ getLabel()

int getLabel ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 179 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ getLength()

float getLength ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 169 of file EnvironmentalPrimitive.cpp.

◆ getOBBDimensions()

armarx::Vector3BasePtr getOBBDimensions ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 47 of file EnvironmentalPrimitive.cpp.

◆ getPose()

armarx::FramedPoseBasePtr getPose ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 57 of file EnvironmentalPrimitive.cpp.

◆ getProbability()

float getProbability ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 149 of file EnvironmentalPrimitive.cpp.

◆ getSampling()

armarx::MatrixFloatBasePtr getSampling ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 199 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ getShape()

std::string getShape ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 42 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ getTime()

armarx::TimestampBasePtr getTime ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 189 of file EnvironmentalPrimitive.cpp.

◆ ice_clone()

Ice::ObjectPtr ice_clone ( ) const
override

Definition at line 220 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ setCircularityProbability()

void setCircularityProbability ( float  probability,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 164 of file EnvironmentalPrimitive.cpp.

◆ setGraspPoints()

void setGraspPoints ( const PointList &  graspPoints,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 88 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ setInliers()

void setInliers ( const PointList &  inliers,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 130 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ setLabel()

void setLabel ( int  label,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 184 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ setLength()

void setLength ( float  length,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 174 of file EnvironmentalPrimitive.cpp.

+ Here is the caller graph for this function:

◆ setOBBDimensions()

void setOBBDimensions ( const armarx::Vector3BasePtr &  dimensions,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 52 of file EnvironmentalPrimitive.cpp.

◆ setPose()

void setPose ( const armarx::FramedPoseBasePtr &  pose,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 62 of file EnvironmentalPrimitive.cpp.

◆ setProbability()

void setProbability ( float  probability,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 154 of file EnvironmentalPrimitive.cpp.

◆ setSampling()

void setSampling ( const armarx::MatrixFloatBasePtr &  sampling,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 210 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:

◆ setShape()

void setShape ( const std::string &  shape,
const Ice::Current &  c = Ice::emptyCurrent 
)
overrideprotected

Definition at line 231 of file EnvironmentalPrimitive.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTime()

void setTime ( const armarx::TimestampBasePtr &  time,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 194 of file EnvironmentalPrimitive.cpp.


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