ROS-Rtabmap:linux shell运行多个shell(运行多个程序)
生活随笔
收集整理的這篇文章主要介紹了
ROS-Rtabmap:linux shell运行多个shell(运行多个程序)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在linux中開(kāi)啟多個(gè)窗口,需要切換,比較麻煩,可以寫入到一個(gè)腳本中,可以同時(shí)打開(kāi)多個(gè)console/shell。
shell代碼如下:
#!/bin/bash # by wishchin 2020-05-12 version 1.0 ## # Option “-x” is deprecated and might be removed in a later version of gnome-terminal. ## Use “-- ” to terminate the options and put the command line to execute after it.#start source ~/catkin_ws/devel/setup.bash { #python service...... gnome-terminal -t "python_trans" -x bash -c "python2 point_2_image2.py;exec bash" }&sleep 3s { #roscore gnome-terminal -t "roscore" -x bash -c "roscore;exec bash" }&sleep 3s { #cloud process! gnome-terminal -t "rtab_cloud_pro" -x bash -c "rosrun nlink rtab_cloud_pro;exec bash" }&sleep 5s { #rs_rtabmap.launch gnome-terminal -t "rs_rtabmap" -x bash -c "cd ~/catkin_ws;roslaunch src/realsense-ros/realsense2_camera/launch/rs_rtabmap.launch ;exec bash" }&#end結(jié)果:在一個(gè)shell中打開(kāi)多個(gè)tab,依次運(yùn)行!
?一個(gè)對(duì)齊四個(gè)坐標(biāo)系統(tǒng)的c重建與導(dǎo)航系統(tǒng):
?
總結(jié)
以上是生活随笔為你收集整理的ROS-Rtabmap:linux shell运行多个shell(运行多个程序)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 贴贴怎么删照片(贴贴是什么梗)
- 下一篇: Linux:ubuntu设置交换分区