一、新建xxx.sh文件,将以下文件复制,需要根据自己的工作空间修改
###gmapping with abot###
gnome-terminal --window -e 'bash -c "source ~/cwkj_ws/devel/setup.bash;roslaunch robot_bringup px4.launch; exec bash"' \
--tab -e 'bash -c "sleep 4; source ~/cwkj_ws/devel/setup.bash; roslaunch usb_cam usb_cam-test.launch; exec bash"' \
--tab -e 'bash -c "sleep 4; source ~/cwkj_ws/devel/setup.bash; roslaunch robot_vision ar_track_camera.launch; exec bash"' \
--tab -e 'bash -c "sleep 3; source ~/cwkj_ws/devel/setup.bash; rosrun v2_ar_track_landing v2_ar_track_landing; exec bash"' \
二、给与sh文件777权限
sudo chmod 777 xxx.sh
三、搜索自启动程序,直接添加即可
1、找到自启动
2、添加自启动脚本,保存后重启