Compiling workspace files failing for cmake error

asked 2019-07-13 23:58:11 -0500

BV_Pradeep gravatar image

Hi All,

I am trying to work on Hector SLAM using rosbot simulation in gazebo. I have ROS Kinetic installed in Ubuntu 16.04 LTS.

I have cloned the required repositories for hector slam. rplidar and rosbot from github into the source folder.

After that I installed all the dependencies required using following command in catkin_workspace.

rosdep install --from-paths src --ignore-src -r -y

which results in

executing command [sudo -H apt-get install -y gazebo7]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gazebo7 : Depends: libgazebo7 (= 7.15.0-1~xenial) but it is not going to be installed
           Depends: libsdformat4 but it is not going to be installed
           Depends: gazebo7-common (= 7.15.0-1~xenial) but it is not going to be installed
           Recommends: gazebo7-plugin-base
E: Unable to correct problems, you have held broken packages.
executing command [sudo -H apt-get install -y libgazebo7-dev]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgazebo7-dev : Depends: libsdformat4-dev but it is not going to be installed
                  Depends: libgazebo7 (= 7.15.0-1~xenial) but it is not going to be installed
                  Depends: gazebo7-common (= 7.15.0-1~xenial) but it is not going to be installed
                  Depends: gazebo7-plugin-base (= 7.15.0-1~xenial)
E: Unable to correct problems, you have held broken packages.
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y gazebo7] failed
  apt: command [sudo -H apt-get install -y libgazebo7-dev] failed
  apt: Failed to detect successful installation of [gazebo7]
  apt: Failed to detect successful installation of [libgazebo7-dev]

After this I invoke catkin_make which is resulting in cmake errors.

catkin_make --only-pkg-with-deps rplidar_ros hector_slam

This results in

Base path: /home/rnd415/catkin_workspace
Source space: /home/rnd415/catkin_workspace/src
Build space: /home/rnd415/catkin_workspace/build
Devel space: /home/rnd415/catkin_workspace/devel
Install space: /home/rnd415/catkin_workspace/install
Whitelisted packages: hector_compressed_map_transport, hector_geotiff, hector_geotiff_plugins, hector_imu_attitude_to_tf, hector_map_server, hector_map_tools, hector_mapping, hector_marker_drawing, hector_nav_msgs, hector_slam, hector_slam_launch, hector_trajectory_server, rplidar_ros
####
#### Running command: "cmake /home/rnd415/catkin_workspace/src -DCATKIN_DEVEL_PREFIX=/home/rnd415/catkin_workspace/devel -DCMAKE_INSTALL_PREFIX=/home/rnd415/catkin_workspace/install -DCATKIN_WHITELIST_PACKAGES=hector_compressed_map_transport;hector_geotiff;hector_geotiff_plugins;hector_imu_attitude_to_tf;hector_map_server;hector_map_tools;hector_mapping;hector_marker_drawing;hector_nav_msgs;hector_slam;hector_slam_launch;hector_trajectory_server;rplidar_ros -G Unix Makefiles" in "/home/rnd415/catkin_workspace/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/rnd415/catkin_workspace/devel
-- Using CMAKE_PREFIX_PATH: /home/rnd415/catkin_workspace/devel;/opt/ros/kinetic
-- This workspace overlays: /home/rnd415/catkin_workspace/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy ...
(more)
edit retag flag offensive close merge delete

Comments

I have sourced the ros environment using

source /home/rnd415/catkin_workspace/devel/setup.bash
BV_Pradeep gravatar image BV_Pradeep  ( 2019-07-14 00:14:13 -0500 )edit