Installing Hector_Navigation and Ceres_Catkin

asked 2020-11-05 15:55:35 -0500

KennyxD gravatar image

Hi! I am trying to create a robot car that can autonomously drive using RPLidar A1 and Hector Slam. I have installed both packages and read that people are using the hector_navigation package to have their robot car autonomously drive to a destination goal. (https://github.com/tu-darmstadt-ros-p...)

I tried to clone the hector_navigation repository (noetic devel) but got an error when I did the catkin_make command. The error was that I was missing the cere_catkin package. I was able to find the ceres_catkin package at this link: https://github.com/tu-darmstadt-ros-p....

I once again clone this repository and use the catkin_make command. However, I got another error stating that I was missing the simple_catkin package. I was able to find the simple_catkin package at this link: https://github.com/catkin/catkin_simple.

Again, I clone this repository and used catkin_make command. This time, everything looked like it worked! So I went back and clone the ceres_catkin repository and used catkin_make command. However, I ran into another error during the process. The error was:

Invoking "make -j2 -l2" failed

Could anyone please help me to figure out how to get the hector_navigation package? I feel like I am currently in a goose chase. Thank you!!!

In case anyone needs the full code from my terminal here it is:

kenny@kenny-virtual-machine:~/catkin_ws$ catkin_make
Base path: /home/kenny/catkin_ws
Source space: /home/kenny/catkin_ws/src
Build space: /home/kenny/catkin_ws/build
Devel space: /home/kenny/catkin_ws/devel
Install space: /home/kenny/catkin_ws/install
####
#### Running command: "cmake /home/kenny/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/kenny/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/kenny/catkin_ws/install -G Unix Makefiles" in "/home/kenny/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/kenny/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/kenny/catkin_ws/devel;/opt/ros/noetic
-- This workspace overlays: /home/kenny/catkin_ws/devel;/opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.5", minimum required is "3") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/kenny/catkin_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.5") 
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.8
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 16 packages in topological order:
-- ~~  - catkin_simple
-- ~~  - ceres_catkin
-- ~~  - hector_slam (metapackage)
-- ~~  - hector_slam_launch
-- ~~  - hector_map_tools
-- ~~  - hector_nav_msgs
-- ~~  - hector_geotiff
-- ~~  - hector_geotiff_plugins
-- ~~  - hector_marker_drawing
-- ~~  - hector_compressed_map_transport
-- ~~  - rplidar_ros
-- ~~  - hector_imu_attitude_to_tf
-- ~~  - hector_imu_tools
-- ~~  - hector_map_server
-- ~~  - hector_trajectory_server
-- ~~  - hector_mapping
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'catkin_simple'
-- ==> add_subdirectory(catkin_simple)
-- +++ processing catkin package: 'ceres_catkin'
-- ==> add_subdirectory(ceres_catkin)
-- +++ processing catkin metapackage: 'hector_slam'
-- ==> add_subdirectory(hector_slam/hector_slam)
-- +++ processing catkin package: 'hector_slam_launch'
-- ==> add_subdirectory(hector_slam/hector_slam_launch)
-- +++ processing catkin package: 'hector_map_tools'
-- ==> add_subdirectory(hector_slam/hector_map_tools)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- +++ processing catkin package: 'hector_nav_msgs'
-- ==> add_subdirectory(hector_slam/hector_nav_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- hector_nav_msgs: 0 messages, 5 services
-- +++ processing catkin package: 'hector_geotiff'
-- ==> ...
(more)
edit retag flag offensive close merge delete

Comments

Running into the same problem. Were you able to fix it? If so, can you please share the solution?

hunterlineage1 gravatar image hunterlineage1  ( 2023-01-18 17:21:09 -0500 )edit