#include <point_cloud_transformers.h>
Public Types | |
enum | Axis { AXIS_X, AXIS_Y, AXIS_Z } |
Public Member Functions | |
AxisColorPCTransformer () | |
virtual void | createProperties (PropertyManager *property_man, const CategoryPropertyWPtr &parent, const std::string &prefix, uint32_t mask, V_PropertyBaseWPtr &out_props) |
Create any properties necessary for this transformer. Will be called once when the transformer is loaded. All properties must be added to the out_props vector. | |
bool | getAutoComputeBounds () |
int | getAxis () |
float | getMaxValue () |
float | getMinValue () |
bool | getUseFixedFrame () |
virtual uint8_t | score (const sensor_msgs::PointCloud2ConstPtr &cloud) |
"Score" a message for how well supported the message is. For example, a "flat color" transformer can support any cloud, but will return a score of 0 here since it should not be preferred over others that explicitly support fields in the message. This allows that "flat color" transformer to still be selectable, but generally not chosen automatically. | |
void | setAutoComputeBounds (bool compute) |
void | setAxis (int axis) |
void | setMaxValue (float val) |
void | setMinValue (float val) |
void | setUseFixedFrame (bool use) |
virtual uint8_t | supports (const sensor_msgs::PointCloud2ConstPtr &cloud) |
Returns a level of support for a specific cloud. This level of support is a mask using the SupportLevel enum. | |
virtual bool | transform (const sensor_msgs::PointCloud2ConstPtr &cloud, uint32_t mask, const Ogre::Matrix4 &transform, PointCloud &out) |
Transforms a PointCloud2 into an rviz::PointCloud. The rviz::PointCloud is assumed to have been preallocated into the correct size. The mask determines which part of the cloud should be output (xyz or color). This method will only be called if supports() of the same cloud has returned a non-zero mask, and will only be called with masks compatible with the one returned from supports(). | |
Static Private Member Functions | |
static void | getColor (float value, Ogre::ColourValue &color) |
Private Attributes | |
bool | auto_compute_bounds_ |
BoolPropertyWPtr | auto_compute_bounds_property_ |
int | axis_ |
EnumPropertyWPtr | axis_property_ |
float | max_value_ |
FloatPropertyWPtr | max_value_property_ |
float | min_value_ |
FloatPropertyWPtr | min_value_property_ |
bool | use_fixed_frame_ |
BoolPropertyWPtr | use_fixed_frame_property_ |
Definition at line 201 of file point_cloud_transformers.h.
Definition at line 228 of file point_cloud_transformers.h.
rviz::AxisColorPCTransformer::AxisColorPCTransformer | ( | ) | [inline] |
Definition at line 204 of file point_cloud_transformers.h.
void rviz::AxisColorPCTransformer::createProperties | ( | PropertyManager * | property_man, | |
const CategoryPropertyWPtr & | parent, | |||
const std::string & | prefix, | |||
uint32_t | mask, | |||
V_PropertyBaseWPtr & | out_props | |||
) | [virtual] |
Create any properties necessary for this transformer. Will be called once when the transformer is loaded. All properties must be added to the out_props vector.
Reimplemented from rviz::PointCloudTransformer.
Definition at line 504 of file point_cloud_transformers.cpp.
bool rviz::AxisColorPCTransformer::getAutoComputeBounds | ( | ) | [inline] |
Definition at line 223 of file point_cloud_transformers.h.
int rviz::AxisColorPCTransformer::getAxis | ( | ) | [inline] |
Definition at line 236 of file point_cloud_transformers.h.
void rviz::AxisColorPCTransformer::getColor | ( | float | value, | |
Ogre::ColourValue & | color | |||
) | [static, private] |
Definition at line 609 of file point_cloud_transformers.cpp.
float rviz::AxisColorPCTransformer::getMaxValue | ( | ) | [inline] |
Definition at line 221 of file point_cloud_transformers.h.
float rviz::AxisColorPCTransformer::getMinValue | ( | ) | [inline] |
Definition at line 220 of file point_cloud_transformers.h.
bool rviz::AxisColorPCTransformer::getUseFixedFrame | ( | ) | [inline] |
Definition at line 226 of file point_cloud_transformers.h.
uint8_t rviz::AxisColorPCTransformer::score | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud | ) | [virtual] |
"Score" a message for how well supported the message is. For example, a "flat color" transformer can support any cloud, but will return a score of 0 here since it should not be preferred over others that explicitly support fields in the message. This allows that "flat color" transformer to still be selectable, but generally not chosen automatically.
Reimplemented from rviz::PointCloudTransformer.
Definition at line 436 of file point_cloud_transformers.cpp.
void rviz::AxisColorPCTransformer::setAutoComputeBounds | ( | bool | compute | ) |
Definition at line 589 of file point_cloud_transformers.cpp.
void rviz::AxisColorPCTransformer::setAxis | ( | int | axis | ) |
Definition at line 556 of file point_cloud_transformers.cpp.
void rviz::AxisColorPCTransformer::setMaxValue | ( | float | val | ) |
Definition at line 576 of file point_cloud_transformers.cpp.
void rviz::AxisColorPCTransformer::setMinValue | ( | float | val | ) |
Definition at line 563 of file point_cloud_transformers.cpp.
void rviz::AxisColorPCTransformer::setUseFixedFrame | ( | bool | use | ) |
Definition at line 549 of file point_cloud_transformers.cpp.
uint8_t rviz::AxisColorPCTransformer::supports | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud | ) | [virtual] |
Returns a level of support for a specific cloud. This level of support is a mask using the SupportLevel enum.
Implements rviz::PointCloudTransformer.
Definition at line 431 of file point_cloud_transformers.cpp.
bool rviz::AxisColorPCTransformer::transform | ( | const sensor_msgs::PointCloud2ConstPtr & | cloud, | |
uint32_t | mask, | |||
const Ogre::Matrix4 & | transform, | |||
PointCloud & | out | |||
) | [virtual] |
Transforms a PointCloud2 into an rviz::PointCloud. The rviz::PointCloud is assumed to have been preallocated into the correct size. The mask determines which part of the cloud should be output (xyz or color). This method will only be called if supports() of the same cloud has returned a non-zero mask, and will only be called with masks compatible with the one returned from supports().
Implements rviz::PointCloudTransformer.
Definition at line 441 of file point_cloud_transformers.cpp.
bool rviz::AxisColorPCTransformer::auto_compute_bounds_ [private] |
Definition at line 243 of file point_cloud_transformers.h.
BoolPropertyWPtr rviz::AxisColorPCTransformer::auto_compute_bounds_property_ [private] |
Definition at line 248 of file point_cloud_transformers.h.
int rviz::AxisColorPCTransformer::axis_ [private] |
Definition at line 246 of file point_cloud_transformers.h.
EnumPropertyWPtr rviz::AxisColorPCTransformer::axis_property_ [private] |
Definition at line 251 of file point_cloud_transformers.h.
float rviz::AxisColorPCTransformer::max_value_ [private] |
Definition at line 241 of file point_cloud_transformers.h.
FloatPropertyWPtr rviz::AxisColorPCTransformer::max_value_property_ [private] |
Definition at line 250 of file point_cloud_transformers.h.
float rviz::AxisColorPCTransformer::min_value_ [private] |
Definition at line 240 of file point_cloud_transformers.h.
FloatPropertyWPtr rviz::AxisColorPCTransformer::min_value_property_ [private] |
Definition at line 249 of file point_cloud_transformers.h.
bool rviz::AxisColorPCTransformer::use_fixed_frame_ [private] |
Definition at line 244 of file point_cloud_transformers.h.
BoolPropertyWPtr rviz::AxisColorPCTransformer::use_fixed_frame_property_ [private] |
Definition at line 252 of file point_cloud_transformers.h.