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

Creating a ROS msg

asked 2014-04-06 23:54:31 -0600

sonny gravatar image

updated 2016-10-24 08:36:45 -0600

ngrennan gravatar image

Has anyone tried this tutorial of ROS for creating messages in order to communicate with the nodes. I am using ubuntu 12.04 ver and ROS Hydro for this.

The error what i am getting is that i am not able to catkin_make it. It gives some error regarding the make file already installed in ros directory of linux in the folder and i am not able to generate the source file or anything.

Any feedback regarding this is welcomed...


edit retag flag offensive close merge delete



Please give more details of what you are doing and of the error you get.

Tirjen gravatar image Tirjen  ( 2014-04-07 00:03:54 -0600 )edit

I am getting an error smthing like this, CMake Error at /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:85 (message): add_message_files() directory not found: /home/traininghes/catkin_ws/src/hrsl/msg Call Stack (most recent call first): hrsl/CMakeLists.txt:48 (add_message_files) -- Configuring incomplete, errors occurred! Invoking "cmake" failed

sonny gravatar image sonny  ( 2014-04-07 02:01:32 -0600 )edit

Please edit also your question posting your CMakeLists.txt.

Tirjen gravatar image Tirjen  ( 2014-04-07 02:24:48 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-06-04 09:43:24 -0600

It looks like the ros setup script has not been previosuly executed:

$ source /opt/ros/XXX/setup.bash

where xxx is the ros distro name, ie: hydro, jade, etc...

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-06 23:54:31 -0600

Seen: 743 times

Last updated: Jun 04 '16