50 #include <sensor_msgs/Image.h> 51 #include <sensor_msgs/PointCloud2.h> 52 #include <pcl/io/io.h> 53 #include <pcl/io/pcd_io.h> 54 #include <pcl/point_types.h> 59 main (
int argc,
char **argv)
61 ros::init (argc, argv,
"image_publisher");
67 std::cout <<
"usage:\n" << argv[0] <<
" cloud.pcd" << std::endl;
71 sensor_msgs::Image image;
72 sensor_msgs::PointCloud2 cloud;
79 catch (std::runtime_error &e)
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int loadPCDFile(const std::string &file_name, sensor_msgs::PointCloud2 &cloud)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void toROSMsg(const sensor_msgs::PointCloud2 &cloud, sensor_msgs::Image &image)
int main(int argc, char **argv)
#define ROS_ERROR_STREAM(args)
ROSCPP_DECL void spinOnce()