TX2-ros机器人移植调试第一弹——catkin_make的error

报错如下:

clbrobot的依赖package

-- Could not find the required component 'rosserial_python'. 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/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_p                                                                                        ackage):
  Could not find a package configuration file provided by "rosserial_python"
  with any of the following names:

    rosserial_pythonConfig.cmake
    rosserial_python-config.cmake

  Add the installation prefix of "rosserial_python" to CMAKE_PREFIX_PATH or
  set "rosserial_python_DIR" to a directory containing one of the above
  files.  If "rosserial_python" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):

 解决方法(https://blog.csdn.net/qq_16775293/article/details/81022602):

nvidia@tegra-ubuntu:~/catkin_ws$ sudo apt-get install ros-kinetic-rosserial-python -y

frontier_exploration的依赖package:

-- Could not find the required component 'costmap_2d'. 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/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "costmap_2d" with
  any of the following names:

    costmap_2dConfig.cmake
    costmap_2d-config.cmake

  Add the installation prefix of "costmap_2d" to CMAKE_PREFIX_PATH or set
  "costmap_2d_DIR" to a directory containing one of the above files.  If
  "costmap_2d" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):

 解决方法(https://blog.csdn.net/qq_16775293/article/details/81022602):

sudo apt install ros-kinetic-costmap-2d -y

robot_localization的依赖package:

-- Could not find the required component 'geographic_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/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "geographic_msgs"
  with any of the following names:

    geographic_msgsConfig.cmake
    geographic_msgs-config.cmake

  Add the installation prefix of "geographic_msgs" to CMAKE_PREFIX_PATH or
  set "geographic_msgs_DIR" to a directory containing one of the above files.
  If "geographic_msgs" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  robot_localization/CMakeLists.txt:4 (find_package)

 解决方法(https://blog.csdn.net/qq_16775293/article/details/81022602):

nvidia@tegra-ubuntu:~/catkin_ws$ sudo apt install ros-kinetic-geographic-msgs -y

 frontier_exploration的依赖package:

-- Could not find the required component 'move_base_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/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "move_base_msgs"
  with any of the following names:

    move_base_msgsConfig.cmake
    move_base_msgs-config.cmake

  Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
  "move_base_msgs_DIR" to a directory containing one of the above files.  If
  "move_base_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  clbrobot_project/frontier_exploration/CMakeLists.txt:4 (find_package)

 解决方法(https://blog.csdn.net/qq_16775293/article/details/81022602): 

nvidia@tegra-ubuntu:~/catkin_ws$ sudo apt install ros-kinetic-move-base-msgs -y

 cfg文件的can‘t execute:

/home/nvidia/catkin_ws/build/clbrobot_project/riki_pid/setup_custom_pythonpath.sh: 5: exec: /home/nvidia/catkin_ws/src/clbrobot_project/riki_pid/cfg/rikiPID.cfg: Permission denied
clbrobot_project/riki_pid/CMakeFiles/riki_pid_gencfg.dir/build.make:63: recipe for target '/home/nvidia/catkin_ws/devel/include/riki_pid/rikiPIDConfig.h' failed
make[2]: *** [/home/nvidia/catkin_ws/devel/include/riki_pid/rikiPIDConfig.h] Error 126
CMakeFiles/Makefile2:4820: recipe for target 'clbrobot_project/riki_pid/CMakeFiles/riki_pid_gencfg.dir/all' failed
make[1]: *** [clbrobot_project/riki_pid/CMakeFiles/riki_pid_gencfg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

解决方法:find -name *.cfg 文件并且一一chmod +x cfg文件

clbrobot package中riki_msgs/Velocities.h文件的missing:

In file included from /home/nvidia/catkin_ws/src/clbrobot_project/clbrobot/src/riki_base.cpp:4:0:
/home/nvidia/catkin_ws/src/clbrobot_project/clbrobot/include/riki_base.h:5:34: fatal error: riki_msgs/Velocities.h: No such file or directory
compilation terminated.
clbrobot_project/clbrobot/CMakeFiles/riki_base.dir/build.make:62: recipe for target 'clbrobot_project/clbrobot/CMakeFiles/riki_base.dir/src/riki_base.cpp.o' failed
make[2]: *** [clbrobot_project/clbrobot/CMakeFiles/riki_base.dir/src/riki_base.cpp.o] Error 1
CMakeFiles/Makefile2:10336: recipe for target 'clbrobot_project/clbrobot/CMakeFiles/riki_base.dir/all' failed
make[1]: *** [clbrobot_project/clbrobot/CMakeFiles/riki_base.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

解决方法:从源工程copy Velocities.h文件过去。

 

 camera_umd的libv412.h头文件的missing:

In file included from /home/nvidia/catkin_ws/src/camera_umd/uvc_camera/include/uvc_camera/camera.h:3:0,
                 from /home/nvidia/catkin_ws/src/camera_umd/uvc_camera/src/nodelets.cpp:7:
/home/nvidia/catkin_ws/src/camera_umd/uvc_camera/include/uvc_cam/uvc_cam.h:26:21: fatal error: libv4l2.h: No such file or directory
compilation terminated.

解决方法(https://answers.ros.org/question/287589/missing-libv4l2h-file-during-compilation):  

nvidia@tegra-ubuntu:~/catkin_ws$ sudo apt install libv4l-dev -y

 

 

评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值