問題一:在創建工作空間時,在運行$catkin_make後出現:
CMake Error at/opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/cookie/dev/catkin_ws/build/catkin_generated/env_cached.sh
"/usr/bin/python""/usr/bin/empy" "--raw-errors" "-F"
"/home/cookie/dev/catkin_ws/build/catkin_generated/order_packages.py""-o"
"/home/cookie/dev/catkin_ws/build/catkin_generated/order_packages.cmake"
"/opt/ros/indigo/share/catkin/cmake/em/order_packages.cmake.em")returned
error code 1
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/em_expand.cmake:25(safe_execute_process)
/opt/ros/indigo/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
CMakeLists.txt:63 (catkin_workspace)
-- Configuring incomplete, errors occurred!
See also"/home/cookie/dev/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also"/home/cookie/dev/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking"cmake" failed
解決辦法:
卸載ros:
http://blog.csdn.net/yeluohanchan/article/details/75578268
重新安裝:
http://wiki.ros.org/cn/indigo/Installation/Ubuntu
重新建立工作目錄:
http://wiki.ros.org/cn/ROS/Tutorials/InstallingandConfiguringROSEnvironment
mkdir -p ~/[工作目錄路徑][如/dev/catkin_ws/src]
cd ~/dev/catkin_ws/src[到新建的目錄下]
catkin_init_workspace
新建端口
source ~/dev/catkin_ws/devel/setup.bash
echo "source ~/dev/catkin_ws/devel/setup.bash">> ~/.bashrc
cd ~/dev/catkin_ws[到工作空間文件夾]
catkin_make
若顯示:
-- +++ processing catkin package:'chapter2_tutorials'
-- ==>add_subdirectory(chapter2_tutorials)
-- Configuring done
-- Generating done
-- Build files have been written to:/home/cookie/dev/catkin_ws/build
####
#### Running command: "make -j8-l8" in "/home/cookie/dev/catkin_ws/build"
####
cookie@cookie909:~/dev/catkin_ws$ sourcedevel/setup.bash
則說明編譯完成
檢查:新端口下
cat ~/.bashrc
顯示
source /opt/ros/indigo/setup.bash
source ~/catkin_ws/devel/setup.bash
source ~/dev/catkin_ws/devel/setup.bash
成功添加環境變量
問題二:運行roslaunch時出現
[start_demo.launch] is neither a launchfile in package [learning_tf] nor is [learning_tf] a launch file name
The traceback for the exception was writtento the log file
解決辦法:
在之前將devel文件至於當前環境變量中,即
$cd ~/catkin_ws
$source devel/setup.bash
問題三:
$rosrunxacro xacro.py `rospack /robots/pr2.urdf.xacro > pr2.urdf
出現
rospkg.common.ResourceNotFound:pr2_description
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/cookie/catkin_ws/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks
解決:此xacro不在ROS_PACKAGE_PATH路徑中可看到
問題:http://blog.csdn.net/ppp2006/article/details/21456469
問題四:在運行catkin_make,後出現:
you either need to install the package withthe same name or change your environment so that it can be found.\
Could not find a package configuration fileprovided by "convex_decomposition" with any of the following names:
Add the installation prefix of"convex_decomposition" to CMAKE_PREFIX_PATH or set"convex_decomposition_DIR" to a directory containing one of the abovefiles. If"convex_decomposition" provides a separate development package or SDK, be sure it has beeninstalled.
Specifies a path which will be used by theFIND_XXX() commands. It contains the “base” directories, the FIND_XXX()commands append appropriate subdirectories to the base directories. SoFIND_PROGRAM() adds /bin to each of the directories in the path, FIND_LIBRARY()appends /lib to each of the directories, and FIND_PATH() and FIND_FILE() append/include . By default it is empty, it is intended to be set by the project. Seealso CMAKE_SYSTEM_PREFIX_PATH, CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH,CMAKE_PROGRAM_PATH.\
解析:無法找到具有以下任何名稱的“convex_decomposition”提供的程序包配置文件:
可能原因:不小心刪除了urdf_tutoorial 下的launch文件,導致某型包無法調用,也可能是使用了rosdep安裝了包,查閱網上有以下說法:
不要使用rosdep來安裝你感興趣的包。這不是它的目的。它只處理依賴關係。
解決辦法:安裝對應的包
$sudo apt-get installros-indigo-convex-decomposition
後顯示缺少ivcon包,
$sudo apt-get install ros-indigo-ivcon
顯示編譯成功,
問題五:
在catkin_ws下編譯
$catkin_make
顯示:Linking CXX executable /home/cookie/catkin_ws/devel/lib/beginner_tutorials/talker
Linking CXX executable/home/cookie/catkin_ws/devel/lib/beginner_tutorials/listener
Linking CXX executable/home/cookie/catkin_ws/devel/lib/testbot_description/parser
解決辦法:
在編譯前運行:
$source devel/setup.bash
解決問題
問題六.
運行control.launch時出現
[ WARN] [1521073681.464035103]: The rootlink base_stander has an inertia specified in the URDF, but KDL does notsupport a root link with an inertia. Asa workaround, you can add an extra dummy link to your URDF.