File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =Robot Launching Servive <see /usr/local/bin/robot_launch.sh>
3
+ Requires =network-online.target
4
+ Wants =network-online.target
5
+ After =network-online.target
6
+
7
+ [Service]
8
+ ExecStart =/usr/local/bin/robot_launch.sh
9
+ ExecStop =/usr/local/bin/robot_launch.sh -1
10
+ StandardOutput =console
11
+ KillMode =process
12
+
13
+ [Install]
14
+ WantedBy =multi-user.target
15
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ iwconfig wlan0 power off
4
+ chronyc -a makestep
5
+ source /home/native/catkin_ws/devel/setup.bash
6
+ source /home/native/.bashrc
7
+ export ROS_HOSTNAME=razpi
8
+ export ROS_MASTER_URI=http://mikes-desk:11311
9
+ export ROBOT_NAME=roomba
10
+ export CAMERA=hd_cam
11
+ if [ $# -eq 0 ]
12
+ then
13
+ roslaunch grbils launch_with_env_variables.launch
14
+ else
15
+ rosnode kill -a
16
+ fi
17
+
18
+ # roslaunch ca_driver create_1.launch
19
+
You can’t perform that action at this time.
0 commit comments