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

Creating a ROS msg and srv - Tutorial

$
0
0
Hi! I have the same problem as mentioned here: [Error using rosmsg in "Creating msg and srv" Tutorial](http://answers.ros.org/question/197495/error-using-rosmsg-in-creating-msg-and-srv-tutorial/) In section 2.2 of this tutorial when typing the command > $ rosmsg show beginner_tutorials/Num I don't get > init64 num but > Unable to load msg> [beginner_tutorials/Num]: Cannot> locate message [Num]: unknown package> [beginner_tutorials] on search path> ... In the other thread the solution is: I should simply run: > $ cd ~/catkin_ws/ then> $ catkin_make But there I get the Error: > CMake Error at /home/user/catkin_ws/build/beginner_tutorials/cmake/beginner_tutorials-genmsg.cmake:3 (message): > Could not find messages which> '/home/user/catkin_ws/src/beginner_tutorials/msg/Num.msg' depends on. > Did you forget to specify generate_messages(DEPENDENCIES ...)?>> Cannot locate message [init64] in> package [beginner_tutorials] with> paths > [['/home/user/catkin_ws/src/beginner_tutorials/msg']]> Call Stack (most recent call first):> /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:304> (include) > beginner_tutorials/CMakeLists.txt:68 (generate_messages)>> -- Configuring incomplete, errors occurred! > See also "/home/user/catkin_ws/build/CMakeFiles/CMakeOutput.log". > See also "/home/user/catkin_ws/build/CMakeFiles/CMakeError.log".> make: *** [cmake_check_build_system] Error 1 > Invoking "make cmake_check_build_system" failed What do I do wrong. I changed the CMakeList.txt exactly as said in the tutorials and checked it a lot of times. And I put in > catkin_package(CATKIN_DEPENDS message_runtime) Can anybody help me out here? Thanks!! Edit: Here is the CMakeLists.txt (I removed the commented parts): cmake_minimum_required(VERSION 2.8.3) project(beginner_tutorials) find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation ) add_message_files( FILES Num.msg ) generate_messages( DEPENDENCIES std_msgs ) include_directories( ${catkin_INCLUDE_DIRS} ) And here the package.xml: beginner_tutorials0.0.0The package for beginnersuserTODOmessage_generationmessage_runtimecatkinroscpprospystd_msgsroscpprospystd_msgs

Viewing all articles
Browse latest Browse all 84

Trending Articles



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