Go to the documentation of this file.
6 #include <VirtualRobot/VirtualRobot.h>
8 #include <RobotAPI/interface/core/RobotState.h>
12 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
13 #include <MemoryX/interface/components/WorkingMemoryToArVizInterface.h>
39 const WorkingMemoryInterfacePrx& workingMemory,
41 const std::vector<std::string>& datasets);
46 void updateFloorPolygon(
const Eigen::Vector2f& extents = { 10000, 10000 },
float height = 0);
55 void updateObjects(
const std::vector<ObjectInstancePtr>& objectInstances);
84 std::string getClassFilename(
const std::string& className);
94 ObjectInstanceMemorySegmentBasePrx objectInstanceSegment;
98 std::map<std::string, std::string> classFilenameCache;
void setArViz(armarx::viz::Client arviz)
Set the ArViz client.
void attachObjectToRobotNode(const memoryx::AttachObjectToRobotNodeInput &attachment)
std::string floorObjectFilename
void updateFloorObject(float height=0)
Draw a the floor as a simox object.
std::string getFloorObjectFile()
void initFromProxies(const PriorKnowledgeInterfacePrx &priorKnowledge, const WorkingMemoryInterfacePrx &workingMemory, const armarx::RobotStateComponentInterfacePrx &robotStateComponent, const std::vector< std::string > &datasets)
Set the proxies.
This class can be used to visualize object instances from working memory to ArViz.
armarx::viz::Object makeFloorObject(const std::string &name="Floor")
void detachObjectFromRobotNode(const memoryx::DetachObjectFromRobotNodeInput &detachment)
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
armarx::viz::Polygon makeFloorPolygon(const Eigen::Vector2f &extents={ 10000, 10000 }, float height=0)
Make a polygon representing the floor.
std::string layerNameFloor
void updateObjectClassBlackWhitelist(const armarx::BlackWhitelistUpdate &update)
std::string layerNameObjects
void updateFloorPolygon(const Eigen::Vector2f &extents={ 10000, 10000 }, float height=0)
Draw a the floor as a polygon.
void updateObjects()
Query object instances and update their visualization.
std::shared_ptr< class Robot > RobotPtr
std::optional< armarx::viz::Object > makeObject(const ObjectInstancePtr &object)
Make a armarx::viz::Object from a memoryx::ObjectInstance.
This class can be used to visualize object instances from working memory to ArViz.