Solving the problem of ROS robot car coding and compilation

1.Could not find the required component ‘uuid_msgs’.
sudo apt-get install ros-melodic-uuid-msgs

2.Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
sudo apt-get install libsdl-dev

3.Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES
SDL_IMAGE_INCLUDE_DIRS)
sudo apt-get install libsdl-image1.2-dev

4.Could not find a package configuration file provided by “libuvc” with any
of the following names:
git clone https://github.com/libuvc/libuvc
cd libuvc
mkdir build
cd build
cmake …
make && sudo make install

5.CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message):
Project ‘cv_bridge’ specifies ‘/usr/include/opencv’ as an include dir,
which is not found.

CMake Error at /opt/ros/melodic/share/image_geometry/cmake/image_geometryConfig.cmake:113 (message):
Project ‘image_geometry’ specifies ‘/usr/include/opencv’ as an include dir,
which is not found.

Just modify the cv_bridgeconfig.cmke and image_geometryConfig.cmake files in the above path,
and change the two opencvs near line 100 to opencv4 (note that you only need to change a single opencv, and the opencv with a hyphen in front does not need to be changed)

6.CMake Error at realsense-ros-development/realsense2_camera/CMakeLists.txt:47 (message):
sudo apt-get install ros-melodic-realsense2-camera

7.Checking for module ‘orocos-bfl’
– No package ‘orocos-bfl’ found
sudo apt-get install ros-melodic-bfl

8.Could not find the required component ‘serial’.
sudo apt-get install ros-melodic-serial

9.Could NOT find tf2_sensor_msgs
sudo apt-get install ros-melodic-tf2-sensor-msgs

10.Could not find the required component ‘move_base_msgs’
sudo apt-get install ros-melodic-move-base-msgs

11.Could NOT find costmap_converter
sudo apt-get install ros-melodic-costmap-converter

12.Could not find a package configuration file provided by “mbf_costmap_core”
sudo apt-get install ros-melodic-mbf-costmap-core

13.Could not find a package configuration file provided by “mbf_msgs” with any
of the following names:
sudo apt-get install ros-melodic-mbf-msgs

14.Unable to find SuiteSparse
sudo apt-get install libsuitesparse-dev

15.Could not find libg2o!
sudo apt-get install ros-melodic-libg2o

16.Could NOT find async_web_server_cpp
sudo apt-get install ros-melodic-async-web-server-cpp

17.Could not find a package configuration file provided by “joy” with any of
the following names:
sudo apt-get install ros-melodic-joy

18.Could not find a package configuration file provided by “ZED” (requested
version 3) with any of the following names:
Not yet resolved, temporarily delete the zed-ros-wrapper-master folder

19./home/zsq/catkin_ws/src/ldlidar_14/src/cmd_interface_linux.cpp:11:10: fatal error: libudev.h: No such file or directory
sudo apt-get install libudev-dev

20./usr/bin/ld: cannot find -lmsc
sudo cp src/xf_mic_asr_offline/lib/arm64/libmsc.so /usr/lib/

21.error "OpenCV 4.x+ requires enabled C++11 support"
has not been resolved yet, temporarily delete the darknet_ros folder

22.camera_driver.cpp:(.text+0xd00): undefined reference to `uvc_free_frame'Add
two statements below find_package(libuvc REQUIRED) in the CmakeList.txt file of ros_astra_camera (modify according to the address of your libuvc installation)
set(libuvc_INCLUDE_DIRS " /home/zsq/catkin_ws/libuvc/build/include/libuvc”)
set(libuvc_LIBRARIES “/home/zsq/catkin_ws/libuvc/build/libuvc.so”)

23.c++: internal compiler error: Killed (program cc1plus)
sudo dd if=/dev/zero of=/swapfile bs=64M count=32
#The size of count is the size of the increased swap space, 64M is the block size, So the space size is bs*count=2048MB
sudo mkswap /swapfile
#Format the space just now into swap format
chmod 0600 /swapfile
sudo swapon /swapfile
#Use the swap space just created

During the process of releasing the space command
swapoff -a
, you can use the free -m command to check the swap space usage.

24.执行rosrun turn_on_wheeltec_robot wheeltec_robot_node报
wheeltec_robot can not open serial port,Please check the serial port cable!

Create an alias for the serial port
https://blog.csdn.net/zong596568821xp/article/details/78579734
You need to re-plug the USB
/dev/wheeltec_controller and change it to /dev/ttyUSB0
chmod 777 /dev/ttyUSB0
—————————— ——————
Copyright Statement: This article is an original article by CSDN blogger "~Born to Win~" and follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement when reprinting.
Original link: https://blog.csdn.net/zsq122021821/article/details/128316043

Guess you like

Origin blog.csdn.net/weixin_46658531/article/details/130805751