Skip to content

Commit 6d4bbbf

Browse files
author
Aart Stuurman
committed
Squash of complete experiment/heritability branch into one superheavy black whole megacommit
1 parent ef809fe commit 6d4bbbf

File tree

212 files changed

+12310
-2812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+12310
-2812
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- run: git submodule update --init
1010

1111
- setup_remote_docker:
12-
docker_layer_caching: true
12+
# docker_layer_caching: true
1313

1414
- restore_cache:
1515
keys:
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- setup_remote_docker:
48-
docker_layer_caching: true
48+
# docker_layer_caching: true
4949

5050
- restore_cache:
5151
keys:
@@ -69,7 +69,7 @@ jobs:
6969

7070
steps:
7171
- setup_remote_docker:
72-
docker_layer_caching: true
72+
# docker_layer_caching: true
7373

7474
- restore_cache:
7575
keys:

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.git/
2+
/.hgignore
3+
/.hgreview
4+
5+
/build/
6+
/cmake-build-*/
7+
/.venv/
8+
9+
__pycache__/
10+
11+
.idea/
12+
.vscode/
13+
/experiments/*/data/

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ __pycache__/
1010
.Python
1111
env/
1212
/build/
13-
/cmake-build-*/
13+
cmake-build-*/
14+
cmake-multineat-*/
1415
/output*/
1516
develop-eggs/
1617
dist/
@@ -75,4 +76,9 @@ Pipfile.lock
7576

7677
# Revolve related
7778
*.sdf
78-
*.urdf
79+
*.urdf
80+
src/
81+
82+
# OS crap
83+
.DS_Store
84+
.directory

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "thirdparty/limbo"]
22
path = thirdparty/limbo
33
url = https://github.com/resibots/limbo.git
4+
[submodule "thirdparty/MultiNEAT"]
5+
path = thirdparty/MultiNEAT
6+
url = https://github.com/ci-group/MultiNEAT.git

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
1111
libcairo2-dev \
1212
graphviz \
1313
libeigen3-dev \
14-
libnlopt-dev && \
14+
libnlopt-dev \
15+
libboost-python-dev \
16+
libboost-numpy-dev &&\
1517
apt-get clean && \
1618
rm -rf /var/lib/apt/lists/*
1719

1820
ADD . /revolve
21+
RUN /revolve/docker/build_install_multineat.sh
1922
RUN /revolve/docker/build_revolve.sh

check_running_experiments.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
for i in exp*log; do echo -n "$i "; value=$(grep "Exported snapshot" $i|tail -n1|sed -E "s/\[(.*),.*Exported snapshot ([0-9]+).*/\2 -> \1/g"); echo $value; done

cpprevolve/revolve/brains/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ find_package(Boost REQUIRED COMPONENTS system)
1818
# Find Eigen3 - A lightweight C++ template library for vector and matrix math
1919
find_package(Eigen3 REQUIRED)
2020

21+
find_package(MultiNEAT REQUIRED)
22+
2123
# Find NLOpt - Non Linear Optimization
2224
pkg_check_modules(NLOpt REQUIRED nlopt>=2.4)
2325

@@ -40,6 +42,9 @@ target_include_directories(revolve-learners
4042
target_include_directories(revolve-learners
4143
PUBLIC ${NLOpt_LIBRARY_DIRS})
4244

45+
target_link_libraries(revolve-controllers
46+
MultiNEAT::MultiNEAT)
47+
4348
install(TARGETS revolve-controllers revolve-learners
4449
RUNTIME DESTINATION bin
4550
LIBRARY DESTINATION lib)

cpprevolve/revolve/brains/controller/Controller.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class Controller
2323
virtual ~Controller() {}
2424

2525
virtual void update(
26-
const std::vector< std::unique_ptr< Actuator > > &_actuators,
27-
const std::vector< std::unique_ptr< Sensor > > &_sensors,
26+
const std::vector<std::shared_ptr<Actuator>> &_actuators,
27+
const std::vector<std::shared_ptr<Sensor>> &_sensors,
2828
const double _time,
2929
const double _step
3030
) = 0;

0 commit comments

Comments
 (0)