pcl::PointCloud vs. sensor_msgs::PointCloud
Obviously they are not the same. Which one should a developer be using?
Obviously they are not the same. Which one should a developer be using?
pcl::PointCloud for "working".
sensor_msgs::PointCloud is a message for sending. You can create a pcl::PointCloud publisher that will automatically send out the right data.
So you wonna use sensor_msgs::PointCloud2 (not sensor_msgs::PointCloud as it is deprecated) if you are passing messages between nodes in ROS (e.g. between kinect driver node and your pointcloud processing node). Once your pointcloud node receives the sensor_msgs::PointCloud2 msg you use pcl::fromROSMsg function to convert it to pcl::PointCloud<pointt> (note that it has to be templated) and that can then be used as input to all pcl algorithms. D.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-07-20 13:50:39 -0600
Seen: 2,185 times
Last updated: Jul 21 '11
Point clouds not generating obstacles in costmap
Gazebo simulations not repeatable
Realsense D435 with AR_Track_Alvar and PointCloud not detecting tags
pointcloud_to_laserscan using kinect
Pointcloud data to mesh conversion
toolbox for segment 3D pointclouds from lidar
From point cloud to laser scan