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

Must Compile Message and Service Several Times To Work

$
0
0
Folks (sorry for the upper case in advance...they just to make sure people understand those are **examples** of my code), What is the proper way to create a CMakeList.txt file that includes messages and services? Every time I create a new group of messages or services and include them in my code, for **EXAMPLE**, "my_package_msgs/MessageOrService.h" it always takes a few "catkin_makes" for my system to recognize the library. Here is my CMakeList file: cmake_minimum_required(VERSION 2.8.3) project(message_package_msgs) find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation geometry_msgs sensor_msgs ) add_message_files( DIRECTORY msg FILES Message_EXAMPLE.msg ) add_service_files( DIRECTORY srv FILES Service_EXAMPLE.srv ) generate_messages( DEPENDENCIES std_msgs geometry_msgs sensor_msgs ) catkin_package( CATKIN_DEPENDS roscpp rospy std_msgs message_runtime geometry_msgs sensor_msgs include_directories( ${catkin_INCLUDE_DIRS} ) And my package.xml with the build/run only: catkinroscpprospystd_msgsmessage_generationgeometry_msgssensor_msgsroscpprospystd_msgssensor_msgsmessage_runtimegeometry_msgs What am I missing?

Viewing all articles
Browse latest Browse all 417

Trending Articles



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