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";
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;
159 VirtualRobot::VisualizationFactory::Color
color;
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;
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.
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