啓動運行.launch報錯[robot_launch.launch] is neither a launch file in package nor is a launch file name

完整的錯誤是:
[robot_launch.launch] is neither a launch file in package [kinova_gazebo] nor is [kinova_gazebo] a launch file name
The traceback for the exception was written to the log file
報錯說明ros系統中,並沒有安裝相對應的package。在這種情況下,進入工程文件的最頂層,使用catkin_make命令對文件進行編譯。如果此時再執行,還是會報錯的,那麼還要再加上一條語句:

source devel/setup.bash

將devel/setup.bash添加到系統,之後再運行就可以了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章