Fixes from converting from pcl-1.7, incomplete
This commit is contained in:
committed by
Paul Bovbel
parent
9d08dd5198
commit
a931106c5b
@@ -50,6 +50,7 @@ Cloud Data) format.
|
||||
#include <rosbag/view.h>
|
||||
#include <pcl/io/io.h>
|
||||
#include <pcl/io/pcd_io.h>
|
||||
#include <pcl_conversions/pcl_conversions.h>
|
||||
#include "pcl_ros/transforms.h"
|
||||
#include <tf/transform_listener.h>
|
||||
#include <tf/transform_broadcaster.h>
|
||||
|
||||
@@ -48,9 +48,11 @@
|
||||
|
||||
#include <ros/ros.h>
|
||||
#include <sensor_msgs/Image.h>
|
||||
#include <sensor_msgs/PointCloud2.h>
|
||||
#include <pcl/io/io.h>
|
||||
#include <pcl/io/pcd_io.h>
|
||||
#include <pcl/point_types.h>
|
||||
#include <pcl_conversions/pcl_conversions.h>
|
||||
|
||||
/* ---[ */
|
||||
int
|
||||
@@ -74,7 +76,7 @@ main (int argc, char **argv)
|
||||
{
|
||||
pcl::toROSMsg (cloud, image); //convert the cloud
|
||||
}
|
||||
catch (std::runtime_error e)
|
||||
catch (std::runtime_error &e)
|
||||
{
|
||||
ROS_ERROR_STREAM("Error in converting cloud to image message: "
|
||||
<< e.what());
|
||||
|
||||
@@ -42,8 +42,11 @@
|
||||
#include <ros/ros.h>
|
||||
//Image message
|
||||
#include <sensor_msgs/Image.h>
|
||||
#include <sensor_msgs/PointCloud2.h>
|
||||
//pcl::toROSMsg
|
||||
#include <pcl/io/pcd_io.h>
|
||||
//conversions from PCL custom types
|
||||
#include <pcl_conversions/pcl_conversions.h>
|
||||
//stl stuff
|
||||
#include <string>
|
||||
|
||||
@@ -59,7 +62,7 @@ public:
|
||||
{
|
||||
pcl::toROSMsg (*cloud, image_); //convert the cloud
|
||||
}
|
||||
catch (std::runtime_error e)
|
||||
catch (std::runtime_error &e)
|
||||
{
|
||||
ROS_ERROR_STREAM("Error in converting cloud to image message: "
|
||||
<< e.what());
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include <pcl/io/io.h>
|
||||
#include <pcl/io/pcd_io.h>
|
||||
#include <pcl/point_types.h>
|
||||
#include <pcl_conversions/pcl_conversions.h>
|
||||
|
||||
#include "pcl_ros/publisher.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user