记录一个自己写的一个例子:
#!/bin/bash
gnome-terminal --window --tab -e 'bash -c "source devel/setup.bash; rosrun RoboSense getPtCloud; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun velodyne_fusion velodyne_fusion; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun ObstacleHDL ObstacleHDL; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun DrivableArea drivable_area_node; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun MapDrivableArea map_drivable_area_node; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun vlp16dataprocess vlp16dataprocess; exec bash"'
--tab -e 'bash -c "source devel/setup.bash; rosrun rfans32_pit FindPit; exec bash"'
保存后,在路径下打开终端,并执行:chmod u+x xxxx.sh给予权限,然后./xxxx.sh启动