linux bash shell run ros launch file and multi_node

 #!/bin/bash
#source /opt/ros/melodic/setup.bash #source /home/pi/catkin_ws/devel/setup.bash #ROS_PACKAGE_PATH=~/catkin_ws/src:$ROS_PACKAGE_PATH
#ROS_WORKSPACE=~/catkin_ws/src cd catkin_ws source devel/setup.bash
sudo chmod /dev/ttyUSB0
roslaunch imu_driver imu_node.launch &
sleep sudo chmod /dev/ttyUSB1
roslaunch rplidar_ros rplidar.launch &
sleep source install_isolated/setup.bash
roslaunch cartographer_ros rplidar_slam2.launch
上一篇:kettle获取系统时间


下一篇:ROS大型工程学习(二) 怎么阅读大型工程