Public Member Functions | List of all members
rviz::RGB8PCTransformer Class Reference

#include <point_cloud_transformers.h>

Inheritance diagram for rviz::RGB8PCTransformer:
Inheritance graph
[legend]

Public Member Functions

uint8_t supports (const sensor_msgs::PointCloud2ConstPtr &cloud) override
 Returns a level of support for a specific cloud. This level of support is a mask using the SupportLevel enum. More...
 
bool transform (const sensor_msgs::PointCloud2ConstPtr &cloud, uint32_t mask, const Ogre::Matrix4 &transform, V_PointCloudPoint &points_out) override
 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() More...
 
- Public Member Functions inherited from rviz::PointCloudTransformer
virtual void createProperties (Property *, uint32_t, QList< Property * > &)
 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. More...
 
virtual void init ()
 
virtual uint8_t score (const sensor_msgs::PointCloud2ConstPtr &)
 "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. More...
 

Additional Inherited Members

- Public Types inherited from rviz::PointCloudTransformer
enum  SupportLevel { Support_None = 0, Support_XYZ = 1 << 1, Support_Color = 1 << 2, Support_Both = Support_XYZ | Support_Color }
 Enumeration of support levels. Basic levels (Support_None, Support_XYZ, Support_Color) can be ored together to form a mask, Support_Both is provided as a convenience. More...
 
- Signals inherited from rviz::PointCloudTransformer
void needRetransform ()
 Subclasses should emit this signal whenever they think the points should be re-transformed. More...
 

Detailed Description

Definition at line 158 of file point_cloud_transformers.h.

Member Function Documentation

◆ supports()

uint8_t rviz::RGB8PCTransformer::supports ( const sensor_msgs::PointCloud2ConstPtr &  cloud)
overridevirtual

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 348 of file point_cloud_transformers.cpp.

◆ transform()

bool rviz::RGB8PCTransformer::transform ( const sensor_msgs::PointCloud2ConstPtr &  cloud,
uint32_t  mask,
const Ogre::Matrix4 &  transform,
V_PointCloudPoint out 
)
overridevirtual

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.

Reimplemented in rviz::MONO8PCTransformer.

Definition at line 366 of file point_cloud_transformers.cpp.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:04