differential_drive compilation error: request for member ‘__getMD5Sum’ in ‘m’, which is of non-class type ‘const int’
Hi guys,
I'm trying to follow this tutorial:
http://www.ros.org/wiki/differential_drive
but when I compile it I get the following error:
/opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<M>::value(const M&) [with M = int]’:
/opt/ros/groovy/include/ros/message_traits.h:255:104: instantiated from ‘const char* ros::message_traits::md5sum(const M&) [with M = int]’
/opt/ros/groovy/include/ros/publisher.h:112:7: instantiated from ‘void ros::Publisher::publish(const M&) const [with M = int]’
/home/d4n/sdc2130/src/auto.cpp:204:29: instantiated from here
/opt/ros/groovy/include/ros/message_traits.h:126:34: error: request for member ‘__getMD5Sum’ in ‘m’, which is of non-class type ‘const int’
/opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<M>::value(const M&) [with M = int]’:
/opt/ros/groovy/include/ros/message_traits.h:264:106: instantiated from ‘const char* ros::message_traits::datatype(const M&) [with M = int]’
/opt/ros/groovy/include/ros/publisher.h:112:7: instantiated from ‘void ros::Publisher::publish(const M&) const [with M = int]’
/home/d4n/sdc2130/src/auto.cpp:204:29: instantiated from here
/opt/ros/groovy/include/ros/message_traits.h:143:36: error: request for member ‘__getDataType’ in ‘m’, which is of non-class type ‘const int’
/opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<M>::value(const M&) [with M = int]’:
/opt/ros/groovy/include/ros/message_traits.h:127:3: warning: control reaches end of non-void function [-Wreturn-type]
/opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<M>::value(const M&) [with M = int]’:
/opt/ros/groovy/include/ros/message_traits.h:144:3: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [CMakeFiles/sdc2130.dir/src/auto.cpp.o] Error 1
make[1]: *** [CMakeFiles/sdc2130.dir/all] Error 2
the line that give me the error is:
rwheel_pub.publish(absenc2);
someone tell that could be an error from the different format type of the variable, could someone help me a little more?
thanks guys