7#include <RobotAPI/libraries/armem_objects/aron/ObjectClass.aron.generated.h>
19 properties.define(defs, prefix);
31 viz::Layer layer = arviz.layer(properties.layerName);
37 ARMARX_INFO <<
"Drawing floor class '" << properties.entityName <<
"'.";
42 ARMARX_INFO <<
"Did not find floor class '" << properties.entityName <<
"'.";
45 arviz.commit({layer});
52 arondto::ObjectClass
data;
62 .
file(objectClass.simoxXmlPath.package, objectClass.simoxXmlPath.path)
63 .
position(Eigen::Vector3f(0, 0, properties.height));
69 defs->optional(
show, prefix +
"Show",
"Whether to show the floor.");
70 defs->optional(
entityName, prefix +
"EntityName",
"Object class entity of the floor.");
71 defs->optional(
layerName, prefix +
"LayerName",
"Layer to draw the floor on.");
75 "Height (z) of the floor plane. \n"
76 "Set slightly below 0 to avoid z-fighting when drawing planes on the ground.");
EntityT * findEntity(const std::string &entityName)
void setArViz(armarx::viz::Client arviz)
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="")
armarx::viz::Object makeFloorObject(const wm::Entity &classEntity)
void updateFloorObject(const wm::CoreSegment &classCoreSegment)
Draw a the floor as a simox object.
DerivedT & position(float x, float y, float z)
#define ARMARX_INFO
The normal logging level.
armem::wm::EntityInstance EntityInstance
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
auto & getLatestSnapshot(int snapshotIndex=0)
Retrieve the latest entity snapshot.
void define(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="")
void add(ElementT const &element)
Object & file(std::string const &project, std::string const &filename)