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>
60 "Name of the the CommonStorage memory component");
63 "Name of the the PriorKnowledge memory component");
80 virtual public memoryx::EntityDrawerInterface,
93 return "EntityDrawer";
105 const std::string& objectName,
106 const memoryx::ObjectClassBasePtr& objectClassBase,
107 const armarx::PoseBasePtr& globalPose,
108 const Ice::Current&
c = Ice::emptyCurrent)
override;
110 const std::string& customObjectName,
111 const std::string& objectClassName,
112 const armarx::PoseBasePtr& globalPose,
113 const Ice::Current&
c = Ice::emptyCurrent)
override;
115 const std::string& objectName,
116 const armarx::PoseBasePtr& globalPose,
117 const Ice::Current&
c = Ice::emptyCurrent)
override;
125 const std::string& objectName,
126 const armarx::DrawColor& color,
127 const Ice::Current&
c = Ice::emptyCurrent)
override;
130 const std::string& objectName,
132 const Ice::Current&
c = Ice::emptyCurrent)
override;
134 const std::string& objectName,
135 const Ice::Current&
c = Ice::emptyCurrent)
override;
161 VirtualRobot::VisualizationFactory::Color
color;
175 void removeCustomVisu(
const std::string& layerName,
const std::string& name)
override;
179 void removeEntity(
const std::string& layerName,
const std::string& name);
184 std::map<std::string, VirtualRobot::ManipulationObjectPtr>
objectCache;
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
The DebugDrawerComponent class.
DebugDrawerPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
std::map< std::string, VirtualRobot::SceneObjectPtr > activeObjects
memoryx::PersistentObjectClassSegmentBasePrx objectClassSegment
void onInitComponent() override
Pure virtual hook for the subclass.
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
void updateObjectPose(const std::string &layerName, const std::string &objectName, const armarx::PoseBasePtr &globalPose, const Ice::Current &c=Ice::emptyCurrent) override
VirtualRobot::SceneObjectPtr requestEntity(const EntityData &d)
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
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 onDisconnectComponent() override
Hook for subclass.
void removeObjectVisu(const std::string &layerName, const std::string &objectName, const Ice::Current &c=Ice::emptyCurrent) override
memoryx::PriorKnowledgeInterfacePrx priorKnowledgePrx
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
EntityUpdateData accumulatedCustomUpdateData
~EntityDrawerComponent() override
void removeEntity(const std::string &layerName, const std::string &name)
void removeCustomVisu(const std::string &layerName, const std::string &name) override
GridFileManagerPtr fileManager
std::map< std::string, VirtualRobot::ManipulationObjectPtr > objectCache
void onConnectComponent() override
Pure virtual hook for the subclass.
static std::string GetDefaultName()
EntityDrawerComponent()
EntityDrawerComponent Constructs a debug drawer.
void onRemoveAccumulatedData(const std::string &layerName) override
void onExitComponent() override
Hook for subclass.
void drawEntity(const EntityData &d)
std::string getDefaultName() const override
Retrieve default name of component.
void updateObjectTransparency(const std::string &layerName, const std::string &objectName, float alpha, const Ice::Current &c=Ice::emptyCurrent) override
void onUpdateVisualization() override
onUpdateVisualization derived methods can overwrite this method to update custom visualizations.
EntityDrawerPropertyDefinitions(std::string prefix)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
IceInternal::Handle< ObjectClass > ObjectClassPtr
IceInternal::Handle< EntityDrawerComponent > EntityDrawerComponentPtr
std::shared_ptr< GridFileManager > GridFileManagerPtr
memoryx::ObjectClassPtr objectClass
Eigen::Matrix4f globalPose
VirtualRobot::VisualizationFactory::Color color
std::map< std::string, EntityData > entities