ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OK I figured it out:

I was supposed to use

#include <pcl_ros/point_cloud.h>

instead of:

#include <pcl/point_cloud.h>

This is very confusing, though.

Why is ROS using so many types (PointCloud, PointCloud2, etc.) with similar features? Why don't they use only the pcl::PointCloud type and then create proper functions to manage it instead of using custom header files?

OK I figured it out:

I was supposed to use

#include <pcl_ros/point_cloud.h>

instead of:

#include <pcl/point_cloud.h>

This is very confusing, though.

Why is ROS using so many types (PointCloud, PointCloud2, etc.) with similar features? Why don't they use only the pcl::PointCloud type and then create proper functions to manage it instead of using custom header files?