1 ImportError: No module named future
Traceback (most recent call last):
File "/home/b/MMC_ArduPilot/modules/mavlink/pymavlink/tools/mavgen.py", line 16, in <module>
from pymavlink.generator import mavgen
File "/home/b/MMC_ArduPilot/modules/mavlink/pymavlink/generator/mavgen.py", line 12, in <module>
from future import standard_library
ImportError: No module named future
解决方法:
手动安装缺少依赖,sudo pip install future
from:https://blog.csdn.net/hanjuefu5827/article/details/81868431
2 在运行ROS-GAZEBO的时候: roslaunch mbot_gazebo view_mbot_gazebo_play_ground.launch
Traceback (most recent call last):
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 308, in main
p.start()
full_path = _get_executable_path(rp.get_path(args[0]), path)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 207, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: gazebo_ros
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/wang/catkin_ws/src/mav_comm/mav_comm
ROS path [17]=/opt/ros/kinetic/share
解决方法:sudo apt-get install ros-kinetic-gazebo-ros
3 not find a package configuration file provided by “gazebo_ros_control“
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"gazebo_ros_control" with any of the following names:
gazebo_ros_controlConfig.cmake
gazebo_ros_control-config.cmake
Add the installation prefix of "gazebo_ros_control" to CMAKE_PREFIX_PATH or
set "gazebo_ros_control_DIR" to a directory containing one of the above
files. If "gazebo_ros_control" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
mbot_gazebo/CMakeLists.txt:10 (find_package)
1.安装解决:sudo apt-get install -y libgazebo7-dev
https://blog.csdn.net/weixin_39059031/article/details/84036479
4 ROS运行rosdep init错误
$ rosdep init
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
解决方法:https://blog.csdn.net/c417469898/article/details/106382727/
5 ubuntu16.04安装 catkin_tools
https://blog.csdn.net/anlaiji6783/article/details/101122956
6 在ROS编译过程中经常会遇到找不到ROS包的情况,如下所示
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package
):
Could not find a package configuration file provided by "gazebo_plugins"
with any of the following names:
gazebo_pluginsConfig.cmake
gazebo_plugins-config.cmake
Add the installation prefix of "gazebo_plugins" to CMAKE_PREFIX_PATH or set
"gazebo_plugins_DIR" to a directory containing one of the above files. If "gazebo_plugins" provides a separate development package or SDK, be sure it has been installed.
http://www.360doc.com/content/18/0824/20/40416686_780948485.shtml
7 fatal error: ignition/math/Inertial.hh: No such file or directory解决方法
/usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: No such file or directory
原因:升级gazebo后缺少依赖库
解决:sudo apt-get install libignition-math2-dev
https://blog.csdn.net/qq_32115419/article/details/82744653
8 some warning
This looks like just a warning; it shouldn't prevent your code from compiling and running.
The warning in question is telling you that you're asking it to print an unsigned type with a signed format string:
warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘std::queue<int>::size_type {aka long unsigned int}’
Instead of using the %d
type specifier, you should use an unsigned specifier like %ud
, or the dedicated specifier for size_t
: %zd
9 Gazebo和Protobuf版本冲突
/usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: No such file or directory
原因:升级gazebo后缺少依赖库
解决:sudo apt-get install libignition-math2-dev
https://zhuanlan.zhihu.com/p/116013599
10 旋翼飞行器 ROS - Gazebo 仿真环境搭建
11 Asctec 四轴飞行器 Gazebo 仿真
https://blog.csdn.net/junshen1314/article/details/53348096