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

Message service file not found

asked 2016-03-16 08:02:04 -0600

Fighting_bird gravatar image

updated 2016-03-16 13:05:00 -0600

William gravatar image

I am learning ROS recently as the tutorial of ROS wiki.When I use the command catkin_build installor catkin_build, it output the error:Invoking "make cmake_check_build_system" failed.The detailed output is here:

ubuntu@tegra-ubuntu:~/catkin_ws$ catkin_make install
Base path: /home/ubuntu/catkin_ws
Source space: /home/ubuntu/catkin_ws/src
Build space: /home/ubuntu/catkin_ws/build
Devel space: /home/ubuntu/catkin_ws/devel
Install space: /home/ubuntu/catkin_ws/install
#### Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"
-- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ubuntu/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.16
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/catkin/cmake/assert.cmake:20 (message):

  Assertion failed: file
  '/home/ubuntu/catkin_ws/src/beginner_tutorials/srv/AddTowInts.srv' does not exist.  Message: 
  service file not found

Call Stack (most recent call first):
  /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:167 (assert_file_exists)
  beginner_tutorials/CMakeLists.txt:54 (add_service_files)

-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

The error files are here:link text

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-16 13:06:46 -0600

William gravatar image

It looks like you've forgotten to create the AddTwoInts.srv file, based on this error:

Assertion failed: file
'/home/ubuntu/catkin_ws/src/beginner_tutorials/srv/AddTowInts.srv' does not exist.  Message: 
service file not found
edit flag offensive delete link more


Thank you for your reminding! And I just found the error.In fact, the name of the srv file is mistakenly written as 'AddTowInts.srv', but it should be 'AddTwoInts.srv'.

Fighting_bird gravatar image Fighting_bird  ( 2016-03-16 17:54:11 -0600 )edit

Question Tools

1 follower


Asked: 2016-03-16 08:02:04 -0600

Seen: 2,489 times

Last updated: Mar 16 '16