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

Revision history [back]

click to hide/show revision 1
initial version

You should probably use

graspub.publish(*grasp_points);

You should probably use

graspub.publish(*grasp_points); typedef pcl::PointCloud<pcl::PointXYZ> PCLCloud;
 graspub.publish(*grasp_points);
 ros::Publisher graspub = n.advertise<PCLCloud> ("grasp_points", 100);
 ros::Rate loop_rate(10);

You should probably use

 typedef pcl::PointCloud<pcl::PointXYZ> PCLCloud;
 graspub.publish(*grasp_points);
 ros::Publisher graspub = n.advertise<PCLCloud> ("grasp_points", 100);
 ros::Rate loop_rate(10);

Check the * added to the grasp_points and the order of the lines.