- gnome-session-properties
-
添加一行, 举例pixracer_connection
pixracer_connection.sh如下
- #!/bin/bash
- ### BEGIN INIT INFO
- # Provides: CIUS
- # Short-Description: CIUS
- # Description:
- # Required-Start: $remote_fs $local_fs
- # Required-Stop: $remote_fs $local_fs
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- ### END INIT INFO
- source /opt/ros/melodic/setup.bash
- source /home/nvidia/catkin_ws/devel/setup.bash
- roslaunch mavros px4.launch
- exit 0
-
目前只能在一个终端中,实现roslaunch运行. 若要开多个终端,会出现开不起来的情况,会失败.