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

ROS Graph Messages Build

asked 2019-10-16 13:58:04 -0500

toblorone gravatar image

updated 2022-01-22 16:10:06 -0500

Evgeny gravatar image


I'm ROS1 beginner, and I've been trying to get moveit installed and running. When running catkin_make, cmake fails with:

-- +++ processing catkin package: 'moveit_commander'
-- ==> add_subdirectory(moveit/moveit_commander)
-- +++ processing catkin package: 'rviz_visual_tools'
-- ==> add_subdirectory(rviz_visual_tools)
-- Could NOT find graph_msgs (missing: graph_msgs_DIR)
-- Could not find the required component 'graph_msgs'. The following CMake error indicates that you either need to install 
   the package with the same name or change your environment so that it can be found.
  CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "graph_msgs" with
  any of the following names:


I've tried installing it with rosdep install rosgraph_msgs, which says the installation was successful. However, when I run roswtf, I get the following error:

ERROR: The core ROS message libraries (std_msgs and rosgraph_msgs) have not been built.

I then tried cloning the source for the rosgraph_msgs repo from, but it doesn't provide a rosinstall file or a CMakeLists.txt file.

For further info here is the output of env | grep -i ros:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-16 14:33:26 -0500

gvdhoorn gravatar image

updated 2019-10-16 14:43:28 -0500

I've tried installing it with rosdep install rosgraph_msgs, which says the installation was successful.

The package you're looking for is not rosgraph_msgs, but graph_msgs. Those are two different packages.

You should be able to install the latter with:

sudo apt install ros-melodic-graph-msgs

Please also note that rosdep install deals with package dependencies. Not packages themselves directly.

Use apt to install packages, or build them in your workspace (but don't do the latter, unless absolutely necessary). See also #q320046.

edit flag offensive delete link more


Ah ok, I noticed the repository here but I figured it couldn't be it as it seemed to have very little activity ha. Thanks so much for the help!

toblorone gravatar image toblorone  ( 2019-10-16 14:41:56 -0500 )edit

I'm also wondering why you're building MoveIt from sources, but that is a different question.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-16 14:44:06 -0500 )edit

I was following the tutorial here. It seems to have me clone several repos into my catkin workspace /src/ folder, then run catkin_make.

toblorone gravatar image toblorone  ( 2019-10-16 14:53:59 -0500 )edit

Have you seen the notice at the top of the page:

This is the latest version, which is actively developed. For beginners, we recommmend the stable Melodic tutorials. If you are still running a Kinetic release, please use the Kinetic tutorials.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-16 14:56:12 -0500 )edit

Question Tools

1 follower


Asked: 2019-10-16 13:54:40 -0500

Seen: 1,223 times

Last updated: Oct 16 '19