ros publish pcl::ModelCoefficients
I am following "How to use a pcl tutorial on ROS" under /pcl/Tutorials. I managed to build and run section 4.1 with no problems but when I build 4.2 I get the following error:
[ 50%] [100%] Built target example2 Building CXX object my_pcl_tutorial/CMakeFiles/example.dir/src/example.cpp.o In file included from /opt/ros/hydro/include/ros/serialization.h:37:0, from /opt/ros/hydro/include/ros/publisher.h:34, from /opt/ros/hydro/include/ros/node_handle.h:32, from /opt/ros/hydro/include/ros/ros.h:45, from /home/ndivhuwo/Documents/cloud/src/my_pcl_tutorial/src/example.cpp:1: /opt/ros/hydro/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<m>::value(const M&) [with M = pcl::ModelCoefficients]’: /opt/ros/hydro/include/ros/message_traits.h:255:104: instantiated from ‘const char* ros::message_traits::md5sum(const M&) [with M = pcl::ModelCoefficients]’ /opt/ros/hydro/include/ros/publisher.h:112:7: instantiated from ‘void ros::Publisher::publish(const M&) const [with M = pcl::ModelCoefficients]’ /home/ndivhuwo/Documents/cloud/src/my_pcl_tutorial/src/example.cpp:49:28: instantiated from here /opt/ros/hydro/include/ros/message_traits.h:126:34: error: ‘const struct pcl::ModelCoefficients’ has no member named ‘__getMD5Sum’ /opt/ros/hydro/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<m>::value(const M&) [with M = pcl::ModelCoefficients]’: /opt/ros/hydro/include/ros/message_traits.h:264:106: instantiated from ‘const char* ros::message_traits::datatype(const M&) [with M = pcl::ModelCoefficients]’ /opt/ros/hydro/include/ros/publisher.h:112:7: instantiated from ‘void ros::Publisher::publish(const M&) const [with M = pcl::ModelCoefficients]’ /home/ndivhuwo/Documents/cloud/src/my_pcl_tutorial/src/example.cpp:49:28: instantiated from here /opt/ros/hydro/include/ros/message_traits.h:143:36: error: ‘const struct pcl::ModelCoefficients’ has no member named ‘__getDataType’ In file included from /opt/ros/hydro/include/ros/publisher.h:34:0, from /opt/ros/hydro/include/ros/node_handle.h:32, from /opt/ros/hydro/include/ros/ros.h:45, from /home/ndivhuwo/Documents/cloud/src/my_pcl_tutorial/src/example.cpp:1: /opt/ros/hydro/include/ros/serialization.h: In static member function ‘static uint32_t ros::serialization::Serializer<t>::serializedLength(typename boost::call_traits<t>::param_type) [with T = pcl::ModelCoefficients, uint32_t = unsigned int, typename boost::call_traits<t>::param_type = const pcl::ModelCoefficients&]’: /opt/ros/hydro/include/ros/serialization.h:170:43: instantiated from ‘uint32_t ros::serialization::serializationLength(const T&) [with T = pcl::ModelCoefficients, uint32_t = unsigned int]’ /opt/ros/hydro/include/ros/serialization.h:846:45: instantiated from ‘ros::SerializedMessage ros::serialization::serializeMessage(const M&) [with M = pcl::ModelCoefficients]’ /opt/ros/hydro/include/ros/publisher.h:118:7: instantiated from ‘void ros::Publisher::publish(const M&) const [with M = pcl::ModelCoefficients]’ /home/ndivhuwo/Documents/cloud/src/my_pcl_tutorial/src/example.cpp:49:28: instantiated from here /opt/ros/hydro/include/ros/serialization.h:142:34: error: ‘const struct pcl::ModelCoefficients’ has no member named ‘serializationLength’ /opt/ros/hydro/include/ros/serialization.h: In static member function ...