roslaunch turtlebot_rviz_launchers view_navigation.launch --screen
[view_navigation.launch] is neither a launch file in package [turtlebot_rviz_launchers] nor is [turtlebot_rviz_launchers] a launch file name
The traceback for the exception was written to the log file
解決:
cd turtlebot
source devel/setuo.bash
這個方法不能徹底解決,有時候需要source兩次或更多。
穩定解決方法:
編輯
/home/isi/turtlebot/src/turtlebot_interactions/turtlebot_rviz_launchers/launch/view_navigation.launch
内容如下:
<!--
Used for visualising the turtlebot while building a map or navigating with the ros navistack.
-->
<launch>
<node name="rviz" pkg="rviz" type="rviz" respawn="true" args="-d $(find turtlebot_rviz_launchers)/rviz/navigation.rviz"/>
</launch>
然後如果出現啟動失敗,打開新終端單獨運作:
roslaunch turtlebot_rviz_launchers view_navigation.launch
說明:
respawn="true"
在一個launch檔案中的節點,
1.要求重生(request respawning)
開啟所有nodes後,roslaunch會監視每個node,記錄那些仍然活動的nodes。對于每個node,當其終止後,我們可以要求roslaunch重新開機該node,通過使用respawn屬性。
respawn=”true”
2.必需的nodes
required屬性與respawn相反,不能同時對同一個node使用。
required=”true”
當一個required node終止後,所有其他的nodes都會終止,并退出。這種指令有時很有用。比如,當一個很重要的node失敗後,整個會話都會被扔掉,那些加上了respawn屬性的nodes也會停止。