ROS包编译与运行问题

文章目录

  • 1. catkin_make 编译错误
  • 2. roslaunch bulldog_driver teleop.launch 报错
  • 3. 电池包 "battery"和远程控制IO包"modbus_interface"编译缺少"yikun_msgsConfig.cmake"

1. catkin_make 编译错误

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

	*Config.cmake

	*-config.cmake

表示缺少相应的ros包,解决办法:

sudo apt install ros-[ROS版本]-*

如:

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

	ddynamic_reconfigureConfig.cmake

	ddynamic_reconfigure-config.cmake

解决办法:

sudo apt install ros-melodic-ddynamic-reconfigure

2. roslaunch bulldog_driver teleop.launch 报错

​​​​​ROS包编译与运行问题_第1张图片

原因为缺少相应的ros包,安装如下手柄包:

sudo apt install ros-melodic-joy*
sudo apt install ros-melodic-teleop*
sudo apt install ros-melodic-twist*
sudo apt install ros-melodic-interactive-marker-twist-server

3. 电池包 “battery"和远程控制IO包"modbus_interface"编译缺少"yikun_msgsConfig.cmake”

如果在同路径下,先编译"yikun_msgs"包,再编译电池包和IO包:
ROS包编译与运行问题_第2张图片

catkin_make -DCATKIN_WHITELIST_PACKAGES=“yikun_msgs”
catkin_make -DCATKIN_WHITELIST_PACKAGES=“”

你可能感兴趣的:(ROS,人工智能)