bigdayangyu / kobuki_navigation

ROS2 demo for kobuki robot navigation
1 stars 1 forks source link

kobuki driver error during colcon build in ROS foxy #1

Open AdroitBit opened 2 years ago

AdroitBit commented 2 years ago

I'm trying to make kobuki work with ROS foxy so I create a new workspace, src folder, install packages, and clone repositories. By running these commands :

mkdir -p ~/kobuki_foxy_ws/src
cd ~/kobuki_foxy_ws/src

git clone https://github.com/kobuki-base/kobuki_ros
git clone https://github.com/kobuki-base/kobuki_ros_interfaces
sudo apt-get -y install ros-foxy-ecl-*
sudo apt-get -y install ros-foxy-diagnostic-* 
sudo apt-get -y install ros-foxy-kobuki-core ros-foxy-kobuki-*

git clone https://github.com/bigdayangyu/kobuki_navigation

When I run $ vcs import src <kobuki_demo.repos according to README.md I get these messages :

....E........E
=== src/cartographer_ros (git) ===

Already on 'dashing'
Your branch is up to date with 'origin/dashing'.
=== src/kobuki_gazebo_demo (git) ===

Already on 'master'
Your branch is up to date with 'origin/master'.
=== src/kobuki_navigation (git) ===

Already on 'master'
Your branch is up to date with 'origin/master'.
=== src/ros-drivers/urg_c (git) ===

Already on 'ros2-devel'
Your branch is up to date with 'origin/ros2-devel'.
=== src/ros-drivers/urg_node (git) ===
Could not checkout ref 'ros2-devel': fatal: invalid reference: ros2-devel
=== src/ros-drivers/urg_node_msgs (git) ===

Already on 'master'
Your branch is up to date with 'origin/master'.
=== src/ros-perception/laser_proc (git) ===

Already on 'ros2-devel'
Your branch is up to date with 'origin/ros2-devel'.
=== src/ros/diagnostics (git) ===
Cloning into '.'...
=== src/stonier/ecl_core (git) ===

Already on 'fix_include_directories'
Your branch is up to date with 'origin/fix_include_directories'.
=== src/stonier/ecl_lite (git) ===

Already on 'fix_include_directories'
Your branch is up to date with 'origin/fix_include_directories'.
=== src/stonier/ecl_tools (git) ===

Already on 'devel'
Your branch is up to date with 'origin/devel'.
=== src/yujinrobot/kobuki (git) ===
Could not checkout ref 'ros2': fatal: invalid reference: ros2
=== src/yujinrobot/kobuki_core (git) ===
Cloning into '.'...
=== src/yujinrobot/kobuki_msgs (git) ===

Already on 'fix_ros2'
Your branch is up to date with 'origin/fix_ros2'.

Seeing the word 'dashing' makes me a little nervous. I go ahead and run $ colcon build then I receive this error.

Starting >>> kobuki_ros_interfaces
Starting >>> kobuki_description
Starting >>> kobuki_navigation
Finished <<< kobuki_description [0.47s]
--- stderr: kobuki_navigation
CMake Error at CMakeLists.txt:24 (find_package):
  By not providing "Findkobuki_driver.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "kobuki_driver", but CMake did not find one.

  Could not find a package configuration file provided by "kobuki_driver"
  with any of the following names:

    kobuki_driverConfig.cmake
    kobuki_driver-config.cmake

  Add the installation prefix of "kobuki_driver" to CMAKE_PREFIX_PATH or set
  "kobuki_driver_DIR" to a directory containing one of the above files.  If
  "kobuki_driver" provides a separate development package or SDK, be sure it
  has been installed.

---
Failed   <<< kobuki_navigation [1.26s, exited with code 1]
Aborted  <<< kobuki_ros_interfaces [1.36s]

Summary: 1 package finished [1.67s]
  1 package failed: kobuki_navigation
  1 package aborted: kobuki_ros_interfaces
  1 package had stderr output: kobuki_navigation
  7 packages not processed

Which gives me an error. So. how to solve this error? Is there a workaround to what I'm trying to do? I check something a bit. And I suspect that kobuki_driver is referred as kobuki_core

AnOrdinaryUsser commented 1 year ago

Hi,

Did you find any solution to build this repo and then use it?