1、[rospack] Error: package 'test' not found
沒有找到ros功能包,原因是沒有爲功能包配置系統環境,可以利用source運行工作空間中devel目錄下的setup.bash配置文件並使配置立即生效。setup.bash腳本的作用是讓一些ros* 開頭的命令可以使用,同時還能夠創建一些ROS開頭的環境變量eg:ROS_PACKAGE_PATH。在命令行中可以使用echo在~/.bashrc文件中追加以下內容:echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
2、Could not find a package configuration file provided by "moveit_ros_planning" with any of the following names:
moveit_ros_planningConfig.cmake
moveit_ros_planning-config.cmake
沒有安裝moveit,可以使用sudo apt-get install ros-kinetic-moveit-full命令來安裝。
3、[robot_spawn.launch] is neither a launch file in package [robot_sim_demo] nor is [robot_sim_demo] a launch file name
The traceback for the exception was written to the log file
不能識別ros功能包中的launch文件,原因是沒有修改系統中存放ros功能包路徑的環境變量。可以使用如下命令添加路徑:
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:[path of your ros package]
(export命令修改環境變量的方式也能用來解決source覆蓋機制)
4、to be continued...