版权声明:本文为博主原创文章,转载请注明来源。
1.
ERROR: cannot launch node of type [arbotix_python/arbotix_driver]: arbotix_python
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/yangyao/catkin_rrt/src
ROS path [2]=/opt/ros/kinetic/share
solution:
未安装 arbotix_python,找不到节点arbotix_python
sudo apt-get install ros-kinetic-arbotix
2.
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
xacro.py is deprecated; please use xacro instead
solution:
笔者是从indigo 上面拷贝到kinetic上出现这个问题,估计是版本的原因
<arg name="urdf_file" default="$(find xacro)/xacro.py '$(find rbx1_description)/urdf/litterg_2.urdf.xacro'" />
<arg name="urdf_file" default="$(find xacro)/xacro --inorder '$(find rbx1_description)/urdf/litterg_2.urdf.xacro'" />
3.
- ==> add_subdirectory(rbx1/rbx1_nav)
-- +++ processing catkin package: 'rbx1_description'
-- ==> add_subdirectory(rbx1/rbx1_description)
-- +++ processing catkin package: 'costmap_2d'
-- ==> add_subdirectory(navigation/costmap_2d)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- chrono
-- atomic
-- regex
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
先安装先面的包
sudo apt-get install libproj-dev
然后找到在那个包下面出现这个问题,笔者这个是在/costmap_2d下面出来,就在其cmakelists.txt最后添加如下命令
list (REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
4.
CMake Error at navigation/teb_local_planner/cmake_modules/FindSUITESPARSE.cmake:131 (MESSAGE):
Unable to find SuiteSparse
Call Stack (most recent call first):
navigation/teb_local_planner/CMakeLists.txt:32 (find_package)
sudo apt-get install libsuitesparse-dev
5.
CMake Error at navigation/teb_local_planner/cmake_modules/FindG2O.cmake:85 (message):
Could not find libg2o!
Call Stack (most recent call first):
navigation/teb_local_planner/CMakeLists.txt:33 (find_package)
sudo apt-get install ros-kinetic-libg2o
6、
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
这个问题是本人在安装anaconda是遇到ros和anconda,不兼容。使用下面命令即可解决
pip install -U rosinstall msgpack empy defusedxml netifaces
备注
使用上面的命令可能遇到如下问题
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/yangyao/anaconda3/lib/python3.7/site-packages/vcstools-0.1.40.dist-info'
Consider using the `--user` option or check the permissions.
You are using pip version 10.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
安装依赖(如果依赖可以安装无需升级pip)
pip install --user -U rosinstall msgpack empy defusedxml netifaces (在install 后面添加--user)
升级pip
pip install --user --upgrade pip 不成功的话在(在install 后面添加--user)
在安装依赖
pip install --user -U rosinstall msgpack empy defusedxml netifaces (在install 后面添加--user)
7、在本人在ubuntu16.04上装qt不能输入中文,在这里记录一下
先安装 sudo apt-get install fcitx-frontend-qt5
在复制库文件 sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
/home/yangyao/QtCreator/latest/lib/Qt/plugins/platforminputcontexts
将usr下面libfcitxplatforminputcontextplugin.so复制到qt安装的目录下
8、error: invalid new-expression of abstract class type return new C;
本人在使用插件的时候遇到这个问题,这个是因为我们自己写的插件是派生类,都是继承nav::core,所示在要提前实例化里面的函数
9、The program 'roscore' is currently not installed. You can install it by typing:
sudo apt install python-roslaunch
先进行 source /opt/ros/kinetic/setup.bash
10、Ubuntu18.04网络图标不见了,解决办法
1、删除NetworkManager缓存文件
service NetworkManager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
service NetworkManager start
2、修改/etc/NetworkManager/NetworkManager.conf
managed=true
3、重启NetworkManager
sudo service network-manager restart
11 调试导航包的问题出现如下问题
1)None of the 0 first of 0 (0) points of the global plan were in the local costmap and free
2)Off Map -9.558478, 0.298699
解决方式:forward_point_distance_设置成合适的大小
12、 Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
解决方式 sudo apt-get install libsdl-image1.2-dev
13、 Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
解决方式 sudo apt-get install qt4-default
14、问题描述:程序可以编译完成,但是运行的时候遇到这个问题symbol lookup error: /home/e64/qt_project/ucar_project_motion/devel/lib//libastar_planner.so: undefined symbol: _ZN7distmap16DistanceMapClassC1Ev