|
This class can be used to visualize object instances from working memory to ArViz. More...
#include <MemoryX/components/WorkingMemoryToArViz/ObjectInstancesToArViz.h>
Public Member Functions | |
void | attachObjectToRobotNode (const memoryx::AttachObjectToRobotNodeInput &attachment) |
void | detachObjectFromRobotNode (const memoryx::DetachObjectFromRobotNodeInput &detachment) |
std::string | getFloorObjectFile () |
void | initFromProxies (const PriorKnowledgeInterfacePrx &priorKnowledge, const WorkingMemoryInterfacePrx &workingMemory, const armarx::RobotStateComponentInterfacePrx &robotStateComponent, const std::vector< std::string > &datasets) |
Set the proxies. More... | |
armarx::viz::Object | makeFloorObject (const std::string &name="Floor") |
armarx::viz::Polygon | makeFloorPolygon (const Eigen::Vector2f &extents={ 10000, 10000 }, float height=0) |
Make a polygon representing the floor. More... | |
std::optional< armarx::viz::Object > | makeObject (const ObjectInstancePtr &object) |
Make a armarx::viz::Object from a memoryx::ObjectInstance . More... | |
ObjectInstancesToArViz () | |
void | setArViz (armarx::viz::Client arviz) |
Set the ArViz client. More... | |
void | updateFloorObject (float height=0) |
Draw a the floor as a simox object. More... | |
void | updateFloorPolygon (const Eigen::Vector2f &extents={ 10000, 10000 }, float height=0) |
Draw a the floor as a polygon. More... | |
void | updateObjectClassBlackWhitelist (const armarx::BlackWhitelistUpdate &update) |
void | updateObjects () |
Query object instances and update their visualization. More... | |
void | updateObjects (const std::vector< ObjectInstancePtr > &objectInstances) |
Update the object instances' visualizations. More... | |
Public Attributes | |
std::string | floorObjectFilename = "images/Floor20x20.xml" |
std::string | layerNameFloor = "Floor" |
std::string | layerNameObjects = "ObjectInstances" |
This class can be used to visualize object instances from working memory to ArViz.
Definition at line 29 of file ObjectInstancesToArViz.h.
Definition at line 14 of file ObjectInstancesToArViz.cpp.
void attachObjectToRobotNode | ( | const memoryx::AttachObjectToRobotNodeInput & | attachment | ) |
Definition at line 177 of file ObjectInstancesToArViz.cpp.
void detachObjectFromRobotNode | ( | const memoryx::DetachObjectFromRobotNodeInput & | detachment | ) |
Definition at line 183 of file ObjectInstancesToArViz.cpp.
std::string getFloorObjectFile | ( | ) |
Definition at line 101 of file ObjectInstancesToArViz.cpp.
void initFromProxies | ( | const PriorKnowledgeInterfacePrx & | priorKnowledge, |
const WorkingMemoryInterfacePrx & | workingMemory, | ||
const armarx::RobotStateComponentInterfacePrx & | robotStateComponent, | ||
const std::vector< std::string > & | datasets | ||
) |
Set the proxies.
Definition at line 25 of file ObjectInstancesToArViz.cpp.
armarx::viz::Object makeFloorObject | ( | const std::string & | name = "Floor" | ) |
Definition at line 94 of file ObjectInstancesToArViz.cpp.
armarx::viz::Polygon makeFloorPolygon | ( | const Eigen::Vector2f & | extents = { 10000, 10000 } , |
float | height = 0 |
||
) |
Make a polygon representing the floor.
Definition at line 85 of file ObjectInstancesToArViz.cpp.
std::optional< armarx::viz::Object > makeObject | ( | const ObjectInstancePtr & | object | ) |
Make a armarx::viz::Object
from a memoryx::ObjectInstance
.
Definition at line 110 of file ObjectInstancesToArViz.cpp.
void setArViz | ( | armarx::viz::Client | arviz | ) |
Set the ArViz client.
Definition at line 19 of file ObjectInstancesToArViz.cpp.
void updateFloorObject | ( | float | height = 0 | ) |
Draw a the floor as a simox object.
makeFloorObject()
Definition at line 52 of file ObjectInstancesToArViz.cpp.
void updateFloorPolygon | ( | const Eigen::Vector2f & | extents = { 10000, 10000 } , |
float | height = 0 |
||
) |
Draw a the floor as a polygon.
makeFloorPolygon()
Definition at line 46 of file ObjectInstancesToArViz.cpp.
void updateObjectClassBlackWhitelist | ( | const armarx::BlackWhitelistUpdate & | update | ) |
Definition at line 169 of file ObjectInstancesToArViz.cpp.
void updateObjects | ( | ) |
Query object instances and update their visualization.
Definition at line 59 of file ObjectInstancesToArViz.cpp.
void updateObjects | ( | const std::vector< ObjectInstancePtr > & | objectInstances | ) |
Update the object instances' visualizations.
Definition at line 70 of file ObjectInstancesToArViz.cpp.
std::string floorObjectFilename = "images/Floor20x20.xml" |
Definition at line 79 of file ObjectInstancesToArViz.h.
std::string layerNameFloor = "Floor" |
Definition at line 76 of file ObjectInstancesToArViz.h.
std::string layerNameObjects = "ObjectInstances" |
Definition at line 77 of file ObjectInstancesToArViz.h.