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_generation message_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?
↧