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

Revision history [back]

In official tutorial, http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv Follow this paragraph:

Any .msg file in the msg directory will generate code for use in all supported languages. The C++ message header file will be generated in ~/catkin_ws/devel/include/beginner_tutorials/. The Python script will be created in ~/catkin_ws/devel/lib/python2.7/dist-packages/beginner_tutorials/msg. The lisp file appears in ~/catkin_ws/devel/share/common-lisp/ros/beginner_tutorials/msg/.

So,you need look up your directory , in ~/catkin_ws/devel/include/beginner_tutorials/. for c ++ ,in ~/catkin_ws/devel/lib/python2.7/dist-packages/beginner_tutorials/msg. for python . And do not forget to change the directory "xx/xx" in cpp file to correct directory .