$search
00001 #include <message_transport/list_transport.h> 00002 #include <sensor_msgs/PointCloud.h> 00003 #include <sensor_msgs/PointCloud2.h> 00004 #include <sensor_msgs/LaserScan.h> 00005 00006 using namespace message_transport; 00007 00008 int main(int argc, char** argv) 00009 { 00010 ros::init(argc, argv, "list_transport_pointcloud"); 00011 00012 { 00013 printf("\n\n=========== sensor_msgs::PointCloud ===========\n"); 00014 ListTransport<sensor_msgs::PointCloud> l_pc; 00015 l_pc.run("pointcloud_transport","sensor_msgs::PointCloud"); 00016 } 00017 00018 { 00019 printf("\n\n=========== sensor_msgs::PointCloud2 ===========\n"); 00020 ListTransport<sensor_msgs::PointCloud2> l_pc2; 00021 l_pc2.run("pointcloud_transport","sensor_msgs::PointCloud2"); 00022 } 00023 00024 { 00025 printf("\n\n=========== sensor_msgs::LaserScan ===========\n"); 00026 ListTransport<sensor_msgs::LaserScan> l_ls; 00027 l_ls.run("pointcloud_transport","sensor_msgs::LaserScan"); 00028 } 00029 00030 return 0; 00031 }