Skip to content

Commit 1452e87

Browse files
authoredJul 22, 2017
Add files via upload
1 parent 70b2a21 commit 1452e87

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
 

‎robot_launch.service

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+

‎robot_launch.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

0 commit comments

Comments
 (0)
Please sign in to comment.