cmds=( "ros2 launch rm_urdf_ff display_launch.py" "ros2 launch livox_ros_driver2 msg_MID360_launch.py" "ros2 launch linefit_ground_segmentation_ros segmentation.launch.py" "ros2 launch fast_lio mapping.launch.py" "ros2 launch imu_complementary_filter complementary_filter.launch.py" "ros2 launch pointcloud_to_laserscan pointcloud_to_laserscan_launch.py" "ros2 launch plc_bringup bringup_launch.py" "ros2 launch rm_serial_driver serial_driver.launch.py" "ros2 topic echo /cmd_vel") for cmd in "${cmds[@]}"; do echo Current CMD : "$cmd" echo 'hfut' | sudo -S chmod 777 /dev/ttyACM0 gnome-terminal -- bash -c "cd $(pwd);source install/setup.bash;$cmd;exec bash;" sleep 0.2 done