总结学习ros中遇到的一些错误
(1)cmake:11(message):
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/ccl/ros_ws/build/catkin_generated/env_cached.sh
“/usr/bin/python” “/opt/ros/kinetic/share/catkin/cmake/order_paths.py”
“/home/ccl/ros_ws/build/ROS-Academy-for-Beginners/navigation_sim_demo/catkin_generated/ordered_paths.cmake”
“–paths-to-order” “/opt/ros/kinetic/include” “/usr/include”
“/opt/ros/kinetic/share/xmlrpcpp/cmake/…/…/…/include/xmlrpcpp”
“–prefixes” “/home/ccl/ros_ws/devel” “/home/ccl/ros_ws/src”
“/home/ccl/ros_ws/devel” “/home/ccl/ros_ws/src” “/opt/ros/kinetic”)
returned error code 1
删除掉工作空间src里面的一个package后再catkin_make就出现这个错误
解决: pip install catkin_pkg.
You probably need to install other required Python packages like nose. Then remove the build folder, as the Python PATH seems to be cached there rm -rf ./build 再重新catkin_make c
(2) cmake:83(find package)
安装缺的包可以解决
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y
serialConfig :sudo apt-get install ros-kinetic-serial
https://blog.csdn.net/qq_40213457/article/details/81021562
火狐浏览器安装百度云插件
https://addons.mozilla.org/zh-CN/firefox/addon/baidu-pan-exporter/
添加完插件后重启火狐浏览器,再百度网盘下载界面会出现导出下载,点击文本导出,复制文本框内的下载链接,打开一个终端,粘贴回车后(可能要安装aria2)开始下载。下载目录就在链接的开头部分。
sudo chmod 777 目录 可以修改只读文件夹的权限,之后就可以复制文件进去
得重新source ~/ros_ws/devel/setup.bash 后才能找到,尽管已经添加进.bashrc文件,这也可能是之前roscore,提示roscore未安装的原因, 得重新source /opt/ros/kinetic/setup.bash
https://www.jianshu.com/p/c4946024b946
ubuntu下 ~/.bash_profile 环境变量配置是 vim ~/.profile
https://blog.csdn.net/AI_Fanatic/article/details/83904929
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
因为提示可以automove一些没用到的包,导致一些ros包被删了
cmake时报错
(1)
Could not find a package configuration file provided by “diagnostic_updater” with any of the following names:
diagnostic_updaterConfig.cmake
diagnostic_updater-config.cmake
sudo apt-get install ros-kinetic-diagnostics
(2)Could not find a package configuration file provided by "industrial_msgs"
sudo apt-get install ros-kinetic-industrial-core
(3)Could not find a package configuration file provided by "interactive_markers"
apt-get install ros-kinetic-interactive-markers
(4),居然rviz和moveit都被删了
sudo apt-get install rviz
sudo apt-get install ros-kinetic-moveit
https://blog.csdn.net/asdli/article/details/91978069