Skip to content

Compile failed #9

Description

@Li-rr

版本信息

root@716a420522b2:/workspace/ros2_ws/src# echo $ROS_DISTRO
humble

错误信息:

root@716a420522b2:/workspace/ros2_ws/src# colcon build
Starting >>> openslam_gmapping
Starting >>> imu_100d4_node
Starting >>> keyboard
Starting >>> mickrobot_bringup
Starting >>> mickrobot_cartographer
Starting >>> mickrobot_description
Starting >>> navigation_sim
Starting >>> oradar_lidar
Starting >>> path_pub
Starting >>> path_tracking
/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'gup - 0.1s] ...
  warnings.warn(msg)
/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'gup:cmake - 0.2s] ...
  warnings.warn(msg)
Finished <<< imu_100d4_node [0.33s]                                                                                                                      
Finished <<< mickrobot_cartographer [0.32s]
Finished <<< openslam_gmapping [0.35s]
Finished <<< mickrobot_description [0.34s]
Finished <<< path_pub [0.34s]
Starting >>> slam_gmapping_sim
Finished <<< oradar_lidar [0.35s]
Finished <<< navigation_sim [0.36s]
Finished <<< slam_gmapping_sim [0.05s]                                                                                                       
--- stderr: mickrobot_bringup                                                                               
MickRobot Node -- ROS2 Found. 
CMake Error at CMakeLists.txt:78 (find_package):
  By not providing "Findserial.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "serial", but
  CMake did not find one.

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

    serialConfig.cmake
    serial-config.cmake

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


---
Failed   <<< mickrobot_bringup [0.57s, exited with code 1]
Aborted  <<< path_tracking [0.72s]                                                    
Aborted  <<< keyboard [0.74s]

Summary: 8 packages finished [0.85s]
  1 package failed: mickrobot_bringup
  2 packages aborted: keyboard path_tracking
  3 packages had stderr output: keyboard mickrobot_bringup path_tracking

可以帮忙看一下,这个错误是怎么回事吗?

安装了以下两个命令还会报错
sudo apt install ros-humble-serial-driver
sudo apt install libserial-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions