ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2014-03-12 11:34:39 -0500 | received badge | ● Nice Answer (source) |
2013-12-18 00:25:20 -0500 | received badge | ● Teacher (source) |
2013-11-18 03:58:06 -0500 | answered a question | ros publish pcl::ModelCoefficients Hi, PCL is not integrated in ROS anymore. But there is package that allows you to perform conversions between ros and pcl messages. In order to publish pcl::ModelCoefficients you must do the following: #include < pcl_conversions/pcl_conversions.h> ... ros::Publisher pub; // Create a ROS publisher for the output point cloud pub = nh.advertise< pcl_msgs::ModelCoefficients> ("output", 1); // ros message pcl_msgs::ModelCoefficients ros_coefficients; // pcl message pcl::ModelCoefficients pcl_coefficients; .... pcl_conversions::fromPCL(pcl_coefficients, ros_coefficients); pub.publish(ros_coefficients); |