forked from MatteoFrascarelli/rosbot_humble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
go_onboard.sh
executable file
·30 lines (25 loc) · 866 Bytes
/
go_onboard.sh
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
#!/bin/bash
# xhost +local:docker > /dev/null
# XSOCK=/tmp/.X11-unix
# XAUTH=/tmp/.docker.xauth-n
# touch $XAUTH
# xauth nlist "$DISPLAY" | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
current_dir=`pwd -P`
script_dir="$( cd "$(dirname "$0")" ; pwd -P )"
# container_id=`cat "${script_dir}/docker_id"`
# last lines https://github.com/jacknlliu/ros-docker-images/issues/7
docker run -it --rm \
--ipc="host" \
--network host \
--privileged \
--env TERM=xterm-256color \
--env HUSARION_ROS_BUILD=hardware \
--volume ./config:/config \
--volume ./maps:/maps \
--volume ./ros2_ws/ws:/home/nuctella/ros2_ws/ws \
--volume ./my_ros2_ws:/home/nuctella/my_ros2_ws \
--group-add tty --group-add dialout --group-add uucp \
-v /dev:/dev \
--name rosbot-ros2-container \
husarion/arm64:humble
# husarion/rosbot-xl-gazebo:humble-0.3.0-20230204