3#include <pcl/common/colors.h>
4#include <pcl/point_types.h>
23 return visu.voxel.isOccupied();
31 const Label label = visu.voxel.getLabel();
34 pcl::GlasbeyLUT::at(
static_cast<unsigned int>(label) % pcl::GlasbeyLUT::size());
The DebugDrawerTopic wraps a DebugDrawerInterfacePrx and provides a more useful interface than the Ic...
static DrawColor toDrawColor(const ColorT &color, float alpha=1, bool byteToFloat=false)
Construct a DrawColor from the given color type.
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.
void setAlpha(float value)
Set the alpha. Must be in [0, 1].
virtual ~Visualizer() override
Virtual destructor.
float getAlpha() const
Get the alpha.
virtual void drawVoxel(const VoxelVisuData &voxelVisu) override
virtual bool isVisible(const VoxelVisuData &voxelVisu) const override
Indicate whether a voxel shall be drawn.
A voxel storing whether it is occupied or free and the object label it is occupied by.
std::string getVoxelLayer() const
armarx::DebugDrawerTopic & drawer()
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
#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...
uint32_t Label
Type of an object label.