$search
Displays a point cloud of type sensor_msgs::PointCloud. More...
#include <point_cloud_display.h>
Public Member Functions | |
virtual void | createProperties () |
Called from setPropertyManager, gives the display a chance to create some properties immediately. | |
virtual void | fixedFrameChanged () |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed. | |
const std::string & | getTopic () |
PointCloudDisplay (const std::string &name, VisualizationManager *manager) | |
void | setTopic (const std::string &topic) |
virtual void | targetFrameChanged () |
Called from within setTargetFrame, notifying child classes that the target frame has changed. | |
~PointCloudDisplay () | |
Protected Member Functions | |
void | incomingCloudCallback (const sensor_msgs::PointCloudConstPtr &cloud) |
ROS callback for an incoming point cloud message. | |
virtual void | onDisable () |
Derived classes override this to do the actual work of disabling themselves. | |
virtual void | onEnable () |
Derived classes override this to do the actual work of enabling themselves. | |
void | subscribe () |
Subscribes to the topic set by setTopic(). | |
void | unsubscribe () |
Unsubscribes from the current topic. | |
Protected Attributes | |
message_filters::Subscriber < sensor_msgs::PointCloud > | sub_ |
tf::MessageFilter < sensor_msgs::PointCloud > | tf_filter_ |
std::string | topic_ |
The PointCloud topic set by setTopic(). | |
ROSTopicStringPropertyWPtr | topic_property_ |
Displays a point cloud of type sensor_msgs::PointCloud.
By default it will assume channel 0 of the cloud is an intensity value, and will color them by intensity. If you set the channel's name to "rgb", it will interpret the channel as an integer rgb value, with r, g and b all being 8 bits.
Definition at line 62 of file point_cloud_display.h.
rviz::PointCloudDisplay::PointCloudDisplay | ( | const std::string & | name, | |
VisualizationManager * | manager | |||
) |
Definition at line 47 of file point_cloud_display.cpp.
rviz::PointCloudDisplay::~PointCloudDisplay | ( | ) |
Definition at line 56 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::createProperties | ( | ) | [virtual] |
Called from setPropertyManager, gives the display a chance to create some properties immediately.
Once this function is called, the property_manager_ member is valid and will stay valid
Reimplemented from rviz::PointCloudBase.
Definition at line 120 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::fixedFrameChanged | ( | ) | [virtual] |
Called from within setFixedFrame, notifying child classes that the fixed frame has changed.
Reimplemented from rviz::PointCloudBase.
Definition at line 113 of file point_cloud_display.cpp.
const std::string& rviz::PointCloudDisplay::getTopic | ( | ) | [inline] |
Definition at line 78 of file point_cloud_display.h.
void rviz::PointCloudDisplay::incomingCloudCallback | ( | const sensor_msgs::PointCloudConstPtr & | cloud | ) | [protected] |
ROS callback for an incoming point cloud message.
Definition at line 104 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::onDisable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Reimplemented from rviz::PointCloudBase.
Definition at line 81 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::onEnable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Reimplemented from rviz::PointCloudBase.
Definition at line 74 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::setTopic | ( | const std::string & | topic | ) |
Set the incoming PointCloud topic
topic | The topic we should listen to |
Definition at line 62 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::subscribe | ( | ) | [protected] |
Subscribes to the topic set by setTopic().
Definition at line 89 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::targetFrameChanged | ( | ) | [virtual] |
Called from within setTargetFrame, notifying child classes that the target frame has changed.
Implements rviz::Display.
Definition at line 109 of file point_cloud_display.cpp.
void rviz::PointCloudDisplay::unsubscribe | ( | ) | [protected] |
Unsubscribes from the current topic.
Definition at line 99 of file point_cloud_display.cpp.
Definition at line 100 of file point_cloud_display.h.
Definition at line 101 of file point_cloud_display.h.
std::string rviz::PointCloudDisplay::topic_ [protected] |
The PointCloud topic set by setTopic().
Definition at line 98 of file point_cloud_display.h.
ROSTopicStringPropertyWPtr rviz::PointCloudDisplay::topic_property_ [protected] |
Definition at line 103 of file point_cloud_display.h.