Go to the documentation of this file.
26 #include <MemoryX/interface/core/EntityBase.h>
27 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
36 template <
class IceBaseClass,
class DerivedClass>
class GenericFactory;
48 public memoryx::ObjectInstanceBase,
51 template <
class IceBaseClass,
class DerivedClass>
61 ObjectInstance(
const std::string& name,
const std::string&
id =
"");
80 void setExistenceCertainty(
float existenceCertainty, const ::Ice::Current& = Ice::emptyCurrent)
override;
108 void setPosition(
const armarx::FramedPositionBasePtr& position, const ::Ice::Current& = Ice::emptyCurrent)
override;
119 MultivariateNormalDistributionBasePtr
getPositionUncertainty(const ::Ice::Current& = Ice::emptyCurrent)
const override;
126 void setPositionUncertainty(
const MultivariateNormalDistributionBasePtr& uncertainty, const ::Ice::Current& = Ice::emptyCurrent)
override;
147 void setOrientation(
const armarx::FramedOrientationBasePtr& orientation, const ::Ice::Current& = Ice::emptyCurrent)
override;
159 void setPose(
const armarx::FramedPoseBasePtr& newPose);
166 ClassProbabilityMap
getClasses(const ::Ice::Current& = Ice::emptyCurrent)
const override;
174 void setClass(
const std::string& className,
float probability,
const Ice::Current& = Ice::emptyCurrent)
override;
182 void addClass(
const std::string& className,
float probability,
const Ice::Current& = Ice::emptyCurrent)
override;
187 void clearClasses(
const Ice::Current& = Ice::emptyCurrent)
override;
201 float getClassProbability(const ::std::string& className, const ::Ice::Current& = Ice::emptyCurrent)
const override;
217 armarx::FramedPositionBasePtr
getPositionBase(const ::Ice::Current& = Ice::emptyCurrent)
const override;
218 armarx::FramedOrientationBasePtr
getOrientationBase(const ::Ice::Current& = Ice::emptyCurrent)
const override;
224 void output(std::ostream& stream)
const;
239 friend std::ostream&
operator<<(std::ostream& stream,
const ObjectInstanceBasePtr& rhs)
241 stream << ObjectInstancePtr::dynamicCast(rhs);
bool hasLocalizationTimestamp() const
void setLocalizationPriority(Ice::Int priority, const ::Ice::Current &=Ice::emptyCurrent) override
armarx::FramedOrientationPtr getOrientation() const
Retrieve orientation of the instance.
float getExistenceCertainty(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve existence certainty for this instance.
EntityAttributeBasePtr getPositionAttribute() const
Retrieve attribute which holds instance position.
void setLocalizationTimestamp(const IceUtil::Time ×tamp)
void setPose(const armarx::FramedPoseBasePtr &newPose)
Convenience function to set position and orientation attributes at once.
void setMotionModel(AbstractMotionModelPtr motionModel)
Set the motion model for this object.
friend std::ostream & operator<<(std::ostream &stream, const ObjectInstance &rhs)
MultivariateNormalDistributionBasePtr getPositionUncertainty(const ::Ice::Current &=Ice::emptyCurrent) const override
Get uncertainty of position estimate.
friend std::ostream & operator<<(std::ostream &stream, const ObjectInstanceBasePtr &rhs)
ClassProbabilityMap getClasses(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve classes and associated class membership probability for this instance.
AbstractMotionModelPtr getMotionModel() const
int getLocalizationPriority(const ::Ice::Current &=Ice::emptyCurrent) const override
void addClass(const std::string &className, float probability, const Ice::Current &=Ice::emptyCurrent) override
Adds new class membership to the class attribute.
void setPositionUncertainty(const MultivariateNormalDistributionBasePtr &uncertainty, const ::Ice::Current &=Ice::emptyCurrent) override
Set uncertainty of position estimate.
armarx::FramedPositionPtr getPosition() const
Retrieve position of the instance.
friend std::ostream & operator<<(std::ostream &stream, const ObjectInstancePtr &rhs)
void setClass(const std::string &className, float probability, const Ice::Current &=Ice::emptyCurrent) override
Set the class attribute of the ObjectInstance.
IceUtil::Time getLocalizationTimestamp() const
void clearClasses(const Ice::Current &=Ice::emptyCurrent) override
Clear class membership.
AbstractMotionModelPtr motionModel
void setPosition(const armarx::FramedPositionBasePtr &position, const ::Ice::Current &=Ice::emptyCurrent) override
Set position of the instance.
::std::string getMostProbableClass(const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve the class with highest membership probability.
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
armarx::core::time::DateTime Time
armarx::FramedPosePtr getPose() const
Convenience function to get position and orientation attributes at once.
armarx::FramedOrientationBasePtr getOrientationBase(const ::Ice::Current &=Ice::emptyCurrent) const override
EntityAttributeBasePtr getOrientationAttribute() const
Retrieve attribute which holds instance position.
void setExistenceCertainty(float existenceCertainty, const ::Ice::Current &=Ice::emptyCurrent) override
Set existence certainty for this instance.
Ice::ObjectPtr ice_clone() const override
ObjectInstancePtr clone(const Ice::Current &c=Ice::emptyCurrent) const
std::shared_ptr< Object > ObjectPtr
armarx::FramedPositionBasePtr getPositionBase(const ::Ice::Current &=Ice::emptyCurrent) const override
void setOrientation(const armarx::FramedOrientationBasePtr &orientation, const ::Ice::Current &=Ice::emptyCurrent) override
Set orientation of the instance.
This file offers overloads of toIce() and fromIce() functions for STL container types.
float getClassProbability(const ::std::string &className, const ::Ice::Current &=Ice::emptyCurrent) const override
Retrieve membership probability for a given class.