Skip to content

Commit

Permalink
Update 25_BUILDING_starting_containers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahriander committed Jul 30, 2019
1 parent d5acab8 commit dc62a30
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Starting the Containers {#autocharging-starting-containers status=Beta}

TODO
Here you can find instructions on how to run the containers in order to bring the autocharging station into action.

## Instructions for CSLAM
1) Clone the github repository for CSLAM:

laptop $ git clone https://github.com/duckietown/duckietown-cslam.git
laptop $ git clone https://github.com/duckietown/duckietown-cslam.git
lapotp $ cd duckietown-cslam/scripts

2) The way how CSLAM is used is the following:
Since the apriltag poses are needed on the device, one has to set the ROS_MASTER to the particular device. Therefore,
change lines in the script _watchtowers-setup.sh_ as follows:

```
ROS_MASTER_HOSTNAME=watchtower22
ROS_MASTER_HOSTNAME=watchtower22
ROS_MASTER_IP=192.168.1.176
array=(watchtower22)
Expand Down Expand Up @@ -64,7 +64,7 @@ After starting the container, make sure it is running. You have to see logs in C
## For Module 1:

### Start the CSLAM Container
> TODO CSLAM container explanation
Start the CSLAM container according to the instructions above.

### Start the Charging Manager Container for Module 1

Expand All @@ -85,9 +85,9 @@ First clone the github repository for TCP server and then change the YAML file i
Now change the IP address in default.yaml.
Then build, push and run the tcp_server container

laptop $ docker build --rm -f "Dockerfile" -t IMAGE_NAME
laptop $ docker push IMAGE_NAME
laptop $ laptop $docker -H HOSTNAME.local pull IMAGE_NAME
laptop $ docker build --rm -f "Dockerfile" -t IMAGE_NAME
laptop $ docker push IMAGE_NAME
laptop $ laptop $docker -H HOSTNAME.local pull IMAGE_NAME
laptop $ docker -H hostname.local run -it --net host --memory="800m" --memory-swap="1.8g" --privileged -v /data:/data --name CONTAINER_NAME IMAGE_NAME


Expand All @@ -97,7 +97,8 @@ laptop $ docker -H ![HOSTNAME].local run -it --net host --memory="800m" --memory

### Doorkeeper

#### Start the CSLAM Container
#### Start the CSLAM Container
Start the CSLAM container according to the instructions above.

#### Start the TCP Client Container

Expand All @@ -115,7 +116,7 @@ Then build, push and run the tcp_server container
laptop $ docker -H hostname.local run -it --net host --memory="800m" --memory-swap="1.8g" --privileged -v /data:/data --name CONTAINER_NAME IMAGE_NAME


#### Start the Doorkeeper Container
#### Start the Doorkeeper Container
Use the doorkeeper container you have run for setting up the reference tags

laptop $ docker -H ![HOSTNAME].local run -it --net host --memory="800m" --memory-swap="1.8g" --privileged -v /data:/data --name doorkeeper ![CONTAINTER_NAME]

0 comments on commit dc62a30

Please sign in to comment.