Go to the documentation of this file.
29 #include <Inventor/nodes/SoNode.h>
30 #include <Inventor/nodes/SoSeparator.h>
31 #include <Inventor/sensors/SoTimerSensor.h>
33 #include <VirtualRobot/VirtualRobotCommon.h>
38 #include <MemoryX/interface/gui/EntityDrawerInterface.h>
39 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
40 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
59 defineOptionalProperty<std::string>(
"CommonStorageName",
"CommonStorage",
"Name of the the CommonStorage memory component");
60 defineOptionalProperty<std::string>(
"PriorKnowledgeName",
"PriorKnowledge",
"Name of the the PriorKnowledge memory component");
77 virtual public memoryx::EntityDrawerInterface,
91 return "EntityDrawer";
99 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;
100 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;
101 void updateObjectPose(
const std::string& layerName,
const std::string& objectName,
const armarx::PoseBasePtr& globalPose,
const Ice::Current&
c = Ice::emptyCurrent)
override;
108 void updateObjectColor(
const std::string& layerName,
const std::string& objectName,
const armarx::DrawColor& color,
const Ice::Current&
c = Ice::emptyCurrent)
override;
110 void updateObjectTransparency(
const std::string& layerName,
const std::string& objectName,
float alpha,
const Ice::Current&
c = Ice::emptyCurrent)
override;
111 void removeObjectVisu(
const std::string& layerName,
const std::string& objectName,
const Ice::Current&
c = Ice::emptyCurrent)
override;
150 void removeCustomVisu(
const std::string& layerName,
const std::string& name)
override;
154 void removeEntity(
const std::string& layerName,
const std::string& name);
159 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
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.
std::map< std::string, VirtualRobot::SceneObjectPtr > activeObjects
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.
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)
std::map< std::string, VirtualRobot::ManipulationObjectPtr > objectCache
VirtualRobot::VisualizationFactory::Color color
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
MatrixXX< 4, 4, float > Matrix4f
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.