Go to the documentation of this file.
3 #include <pcl/common/colors.h>
4 #include <pcl/point_types.h>
26 return visu.
voxel.isOccupied();
35 const pcl::RGB rgb = pcl::GlasbeyLUT::at(
static_cast<unsigned int>(label)
36 % pcl::GlasbeyLUT::size());
virtual bool isVisible(const VoxelVisuData &voxelVisu) const override
Indicate whether a voxel shall be drawn.
The DebugDrawerTopic wraps a DebugDrawerInterfacePrx and provides a more useful interface than the Ic...
void setAlpha(float value)
Set the alpha. Must be in [0, 1].
Information about a voxel about to-be-drawn.
float getAlpha() const
Get the alpha.
virtual ~Visualizer() override
Virtual destructor.
const Eigen::Vector3f & pos
The voxel.
armarx::DebugDrawerTopic & drawer()
Get the debug drawer.
static DrawColor toDrawColor(const ColorT &color, float alpha=1, bool byteToFloat=false)
Construct a DrawColor from the given color type.
const Eigen::Quaternionf & ori
The voxel's position.
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
uint32_t Label
Type of an object label.
std::shared_ptr< Value > value()
std::string getVoxelLayer() const
Get the layer name.
const VoxelT & voxel
The voxel's index.
void drawBox(const VisuID &id, const Eigen::Vector3f &position, const Eigen::Quaternionf &orientation, const Eigen::Vector3f &extents, const DrawColor &color=DEFAULTS.colorBox, bool ignoreLengthScale=false)
Draw a box.
const std::string & to_string(const std::string &s)
#define ARMARX_CHECK_LESS_EQUAL(lhs, rhs)
This macro evaluates whether lhs is less or equal (<=) rhs and if it turns out to be false it will th...
const Eigen::Vector3f & extents
The voxel's orientation.
Visualizer for label occupancy voxel grids.
virtual void drawVoxel(const VoxelVisuData &voxelVisu) override
Draw a voxel.
A voxel storing whether it is occupied or free and the object label it is occupied by.
const std::string & name
The voxel grid.