Go to the documentation of this file.
30 #include <Inventor/nodes/SoNode.h>
31 #include <Inventor/nodes/SoSeparator.h>
32 #include <Inventor/sensors/SoTimerSensor.h>
40 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
41 #include <MemoryX/interface/gui/EntityDrawerInterface.h>
42 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
58 defineOptionalProperty<std::string>(
"CommonStorageName",
60 "Name of the the CommonStorage memory component");
61 defineOptionalProperty<std::string>(
"PriorKnowledgeName",
63 "Name of the the PriorKnowledge memory component");
80 virtual public memoryx::EntityDrawerInterface,
93 return "EntityDrawer";
103 const std::string& objectName,
104 const memoryx::ObjectClassBasePtr& objectClassBase,
105 const armarx::PoseBasePtr& globalPose,
106 const Ice::Current&
c = Ice::emptyCurrent)
override;
108 const std::string& customObjectName,
109 const std::string& objectClassName,
110 const armarx::PoseBasePtr& globalPose,
111 const Ice::Current&
c = Ice::emptyCurrent)
override;
113 const std::string& objectName,
114 const armarx::PoseBasePtr& globalPose,
115 const Ice::Current&
c = Ice::emptyCurrent)
override;
123 const std::string& objectName,
124 const armarx::DrawColor& color,
125 const Ice::Current&
c = Ice::emptyCurrent)
override;
128 const std::string& objectName,
130 const Ice::Current&
c = Ice::emptyCurrent)
override;
132 const std::string& objectName,
133 const Ice::Current&
c = Ice::emptyCurrent)
override;
173 void removeCustomVisu(
const std::string& layerName,
const std::string& name)
override;
177 void removeEntity(
const std::string& layerName,
const std::string& name);
182 std::map<std::string, VirtualRobot::ManipulationObjectPtr>
objectCache;
void setObjectVisu(const std::string &layerName, const std::string &objectName, const memoryx::ObjectClassBasePtr &objectClassBase, const armarx::PoseBasePtr &globalPose, const Ice::Current &c=Ice::emptyCurrent) override
void onConnectComponent() override
Pure virtual hook for the subclass.
The DebugDrawerComponent class.
EntityUpdateData accumulatedCustomUpdateData
void setObjectVisuByName(const std::string &layerName, const std::string &customObjectName, const std::string &objectClassName, const armarx::PoseBasePtr &globalPose, const Ice::Current &c=Ice::emptyCurrent) override
MatrixXX< 4, 4, float > Matrix4f
void onInitComponent() override
Pure virtual hook for the subclass.
void updateObjectTransparency(const std::string &layerName, const std::string &objectName, float alpha, const Ice::Current &c=Ice::emptyCurrent) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
DebugDrawerPropertyDefinitions(std::string prefix)
~EntityDrawerComponent() override
memoryx::PersistentObjectClassSegmentBasePrx objectClassSegment
void removeEntity(const std::string &layerName, const std::string &name)
void onUpdateVisualization() override
onUpdateVisualization derived methods can overwrite this method to update custom visualizations.
std::map< std::string, EntityData > entities
void onDisconnectComponent() override
Hook for subclass.
void updateObjectPose(const std::string &layerName, const std::string &objectName, const armarx::PoseBasePtr &globalPose, const Ice::Current &c=Ice::emptyCurrent) override
GridFileManagerPtr fileManager
uint32_t Color
RGBA color.
std::map< std::string, VirtualRobot::ManipulationObjectPtr > objectCache
Eigen::Matrix4f globalPose
memoryx::PriorKnowledgeInterfacePrx priorKnowledgePrx
void updateObjectColor(const std::string &layerName, const std::string &objectName, const armarx::DrawColor &color, const Ice::Current &c=Ice::emptyCurrent) override
updateObjectColor Colorizes the object visualization
VirtualRobot::SceneObjectPtr requestEntity(const EntityData &d)
EntityDrawerPropertyDefinitions(std::string prefix)
void drawEntity(const EntityData &d)
VirtualRobot::VisualizationFactory::Color color
std::map< std::string, VirtualRobot::SceneObjectPtr > activeObjects
The EntityDrawerComponent class implements a component that listens to layered / debug drawer command...
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
void removeObjectVisu(const std::string &layerName, const std::string &objectName, const Ice::Current &c=Ice::emptyCurrent) override
void onRemoveAccumulatedData(const std::string &layerName) override
std::shared_ptr< GridFileManager > GridFileManagerPtr
boost::intrusive_ptr< SceneObject > SceneObjectPtr
std::string getDefaultName() const override
Retrieve default name of component.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void removeCustomVisu(const std::string &layerName, const std::string &name) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
EntityDrawerComponent()
EntityDrawerComponent Constructs a debug drawer.
memoryx::ObjectClassPtr objectClass
void onExitComponent() override
Hook for subclass.
This file offers overloads of toIce() and fromIce() functions for STL container types.