Skip to content

Commit

Permalink
Merge pull request #456 from realdealneil/model_pr_426
Browse files Browse the repository at this point in the history
Model pr 426 Update
  • Loading branch information
acschang authored Jun 11, 2020
2 parents 6a11751 + 37ef025 commit 656b10b
Show file tree
Hide file tree
Showing 231 changed files with 160,707 additions and 10,150 deletions.
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Prerequisites
*.d
*.orig
*.swp

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

subt_ign/worlds/cave_circuit_practice_02.dat
8 changes: 0 additions & 8 deletions .hgignore

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DARPA SubT Virtual Competition Software

Please visit the [wiki](https://bitbucket.org/osrf/subt/wiki/Home) for more information
Please visit the [wiki](https://github.com/osrf/subt/wiki) for more information
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Each subdirectory contains a Dockerfile for a particular use case.
### `cloudsim_sim`

This is the docker image that will run a simulation instance in the
same way as CloudSim. Refer to: https://bitbucket.org/osrf/subt/wiki/cloudsim_architecture.
same way as CloudSim. Refer to: https://github.com/osrf/subt/wiki/Cloudsim%20Architecture.

This image should be used in conjunction with `cloudsim_bridge`.

Expand All @@ -31,7 +31,7 @@ This image should be used in conjunction with `cloudsim_bridge`.
### `cloudsim_bridge`

This is the docker image that with run the cloudsim bridge. Refer to:
https://bitbucket.org/osrf/subt/wiki/cloudsim_architecture.
https://github.com/osrf/subt/wiki/Cloudsim%20Architecture.

This image should be used in conjunction with `cloudsim_sim`.

Expand Down
6 changes: 1 addition & 5 deletions docker/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@ fi
user_id=$(id -u)
image_name=$(basename $1)
image_plus_tag=$image_name:$(date +%Y_%b_%d_%H%M)
# mercurial adds a + symbol if there are uncomitted changes in the repo
# that will break docker tag syntax
hg_id=$(hg id -i | tr -d '+')

shift

docker build --rm -t $image_plus_tag --build-arg user_id=$user_id "$@" -f $DIR/$image_name/Dockerfile .
docker tag $image_plus_tag $image_name:latest
docker tag $image_plus_tag $image_name:$hg_id

echo "Built $image_plus_tag and tagged as $image_name:latest and $image_name:$hg_id"
echo "Built $image_plus_tag and tagged as $image_name:latest"
4 changes: 2 additions & 2 deletions docker/cloudsim_bridge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y -qq \
build-essential \
bwm-ng \
atop \
cmake \
cppcheck \
gdb \
Expand All @@ -24,7 +25,6 @@ RUN apt-get update -qq \
libspnav-dev \
libusb-dev \
lsb-release \
mercurial \
python3-dbg \
python3-empy \
python3-numpy \
Expand Down Expand Up @@ -102,7 +102,7 @@ RUN rosdep update
# docker is run
RUN mkdir -p subt_ws/src \
&& cd subt_ws/src \
&& hg clone https://bitbucket.org/osrf/subt
&& git clone https://github.com/osrf/subt

WORKDIR /home/$USERNAME/subt_ws

Expand Down
5 changes: 4 additions & 1 deletion docker/cloudsim_bridge/run_bridge.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ echo "log4j.logger.ros.roscpp.cached_parameters=INFO" >> /home/developer/.ros/co
echo "log4j.logger.ros.roscpp=DEBUG" >> /home/developer/.ros/config/rosconsole.config

# https://wiki.ros.org/rosconsole#Force_line_buffering_for_ROS_logger
# See also https://bitbucket.org/osrf/subt/issues/204
# See also https://github.com/osrf/subt/issues/204
export ROSCONSOLE_STDOUT_LINE_BUFFERED=1

# atop process monitoring
atop -R -w /home/developer/.ros/atop_log &

ign launch cloudsim_bridge.ign -v 4 $@
4 changes: 2 additions & 2 deletions docker/cloudsim_sim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y -qq \
build-essential \
bwm-ng \
atop \
cmake \
cppcheck \
gdb \
Expand All @@ -24,7 +25,6 @@ RUN apt-get update -qq \
libspnav-dev \
libusb-dev \
lsb-release \
mercurial \
python3-dbg \
python3-empy \
python3-numpy \
Expand Down Expand Up @@ -107,7 +107,7 @@ RUN rosdep update
# docker is run
RUN mkdir -p subt_ws/src \
&& cd subt_ws/src \
&& hg clone https://bitbucket.org/osrf/subt
&& git clone https://github.com/osrf/subt

# Download the public models
COPY download_models.sh ./
Expand Down
3 changes: 3 additions & 0 deletions docker/cloudsim_sim/run_sim.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ FILE=/tmp/ign/logs/network_traffic.csv
echo "unix timestamp;iface_name;bytes_out/s;bytes_in/s;bytes_total/s;bytes_in;bytes_out;packets_out/s;packets_in/s;packets_total/s;packets_in;packets_out;errors_out/s;errors_in/s;errors_in;errors_out" > $FILE
bwm-ng -o csv -c 0 -t 1000 -T rate -I eth0 >> $FILE &

# atop process monitoring
atop -R -w /tmp/ign/logs/atop_log &

ign launch -v 4 $@
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This setup replicates the cloud simulation setup for the SubT Virtual
# Testbed.
#
# See also: https://bitbucket.org/osrf/subt/wiki/cloudsim_architecture
# See also: https://github.com/osrf/subt/wiki/Cloudsim%20Architecture
#
# Usage:
#
Expand Down
Loading

0 comments on commit 656b10b

Please sign in to comment.