linux bash shell run ros launch file and multi_node
1 #!/bin/bash 2 #source /opt/ros/melodic/setup.bash 3 4 #source /home/pi/catkin_ws/devel/setup.bash 5 6 #ROS_PACKAGE_PATH=~/catkin_ws/src:$ROS_PACKAGE_PATH 7 #ROS_WORKSPACE=~/catkin_ws/src 8 9 cd catkin_ws 10 11 source devel/setup.bash 12 sudo chmod 666 /dev/ttyUSB0 13 roslaunch imu_driver imu_node.launch & 14 sleep 15 15 16 sudo chmod 666 /dev/ttyUSB1 17 roslaunch rplidar_ros rplidar.launch & 18 sleep 15 19 20 source install_isolated/setup.bash 21 roslaunch cartographer_ros rplidar_slam2.launch