forked from Riley-Tuckett/SRT-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·31 lines (28 loc) · 913 Bytes
/
run.sh
File metadata and controls
executable file
·31 lines (28 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Make sure you have a controller plugged in
# Allow X11 forwarding for GUI tools
xhost +local:docker 2>/dev/null || true
echo "=========================================="
echo "Starting Rover Ground Control System"
echo "=========================================="
echo ""
echo "Make sure your controller is plugged in!"
echo "Press Ctrl+C to stop all nodes"
echo ""
# In order, this command:
# Enables container interactive mode,
# Sets the container to remove itself once it exits,
# Sets the container name,
# Sets the container network,
# Sets the container level of privilege,
# Sets environment variables,
# Binds X11 unix socket to container,
# Specifies the image file
docker run -it --rm \
--name rover_ground_control \
--network host \
--privileged \
--env DISPLAY=$DISPLAY \
--env LAUNCH_MODE=integrated \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
swinroverteam/srt-ros:latest