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

bzr's profile - activity

2016-09-05 13:23:36 -0500 received badge  Guru (source)
2016-09-05 13:23:36 -0500 received badge  Great Answer (source)
2016-02-23 06:20:19 -0500 received badge  Enlightened (source)
2016-02-23 06:20:19 -0500 received badge  Good Answer (source)
2015-02-23 12:12:28 -0500 received badge  Nice Answer (source)
2015-01-09 12:03:16 -0500 received badge  Necromancer (source)
2015-01-09 12:03:16 -0500 received badge  Teacher (source)
2014-12-13 12:40:48 -0500 received badge  Supporter (source)
2014-12-09 08:39:14 -0500 received badge  Enthusiast
2014-12-07 18:03:51 -0500 answered a question Conversion from sensor_msgs::PointCloud2 to pcl::PointCloud<T>

Here's the code that successfully transforms my sensor_msgs::PointCloud2::ConstPtr to a pcl::PointCloud<pcl::pointxyz>::Ptr

#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_types.h>
#include <pcl/PCLPointCloud2.h>
#include <pcl/conversions.h>
#include <pcl_ros/transforms.h>

 void cloud_cb(const boost::shared_ptr<const sensor_msgs::PointCloud2>& input){

    pcl::PCLPointCloud2 pcl_pc2;
    pcl_conversions::toPCL(*input,pcl_pc2);
    pcl::PointCloud<pcl::PointXYZ>::Ptr temp_cloud(new pcl::PointCloud<pcl::PointXYZ>);
    pcl::fromPCLPointCloud2(pcl_pc2,*temp_cloud);
    //do stuff with temp_cloud here
    }

Some of the includes may be unnecessary ....

2014-12-07 16:38:38 -0500 answered a question Transforming PointCloud2

Warning: pcl_ros has been depreciated.

2014-12-02 10:08:15 -0500 commented answer Counterpart to pcl_ros::transformAsMatrix ?

The Eigen Geometry Module Tutorial no longer exists. Is there an updated version?