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

ROS Graph Messages Build

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

toblorone gravatar image

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

Evgeny gravatar image

Hi,

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:

   graph_msgsConfig.cmake

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 https://github.com/ros/ros_comm_msgs, 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:

PATH=/home/ttt/anaconda3/envs/py27/bin:/opt/ros/melodic/bin:/home/ttt/anaconda3/bin:/home/ttt/anaconda3/condabin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
CMAKE_PREFIX_PATH=/home/ttt/Programming/ROS/rostest2/devel:/opt/ros/melodic
LD_LIBRARY_PATH=/home/ttt/Programming/ROS/rostest2/devel/lib:/opt/ros/melodic/lib
PKG_CONFIG_PATH=/home/ttt/Programming/ROS/rostest2/devel/lib/pkgconfig:/opt/ros/melodic/lib/pkgconfig
PYTHONPATH=/home/ttt/Programming/ROS/rostest2/devel/lib/python3/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages
ROS_DISTRO=melodic
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_PACKAGE_PATH=/home/ttt/Programming/ROS/rostest2/src:/opt/ros/melodic/share
ROS_PYTHON_VERSION=2
ROS_VERSION=1
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROSLISP_PACKAGE_DIRECTORIES=/home/ttt/Programming/ROS/rostest2/devel/share/common-lisp
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

gvdhoorn gravatar image

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 1,436 times

Last updated: Oct 16 '19