TX2-ros 로봇 이식 디버깅 1탄-catkin_make의 error

6914 단어 ROS
오류는 다음과 같습니다.

clbrobot 의존 패키지

-- 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 종속 패키지:

-- 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 종속 패키지:

-- 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 종속 패키지:

-- 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 패키지 중 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.헤더 파일의 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

 

좋은 웹페이지 즐겨찾기