Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

Cannot load message class for [robot_position/mymsg]. Are your messages built?

$
0
0
I correctly followed the steps as mentioned here: [link text](http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv) Home>assign2>src>robot_position Where **robot_position** is my package name. I created a directory named **msg** inside it and inside msg directory, I made mymsg.msg file. I wrote this inside it: float64 x float64 y then I added these lines in package.xml file: message_generationmessage_runtime then I added message dependencies in **CMakeLists.txt** file as: find_package(catkin REQUIRED COMPONENTS geometry_msgs roscpp rospy std_msgs message_generation ) then I wrote message_runtime in **CMakeLists.txt** file as in here: catkin_package( INCLUDE_DIRS include LIBRARIES robot_position CATKIN_DEPENDS message_runtime geometry_msgs roscpp rospy std_msgs DEPENDS system_lib ) then I added this: add_message_files( FILES mymsg.msg ) and then this: generate_messages( DEPENDENCIES geometry_msgs std_msgs ) and then did this: `catkin_make install` Did I miss anything?

Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>