diff --git a/.gitignore b/.gitignore
index 8fdf038142..07e4e54e73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
#auto_saved_files
-#__pycache__/
+__pycache__/
*.swp
-__*__.*
diff --git a/webots/controllers/controller/.gitignore b/attic/webots/controller/.gitignore
similarity index 100%
rename from webots/controllers/controller/.gitignore
rename to attic/webots/controller/.gitignore
diff --git a/webots/controllers/controller/Makefile b/attic/webots/controller/Makefile
similarity index 79%
rename from webots/controllers/controller/Makefile
rename to attic/webots/controller/Makefile
index fa1dccc6a7..f8f742c652 100644
--- a/webots/controllers/controller/Makefile
+++ b/attic/webots/controller/Makefile
@@ -12,11 +12,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-# Command-line variables; e.g. make run world=maze ---------------------------
+# Command-line variable; e.g. make run world=twoexit ------------------------
world = simple
-poselogname = poselog.csv
-setpointlogname = setpointlog.csv
-# ----------------------------------------------------------------------------
EXE = $(shell basename "`pwd`")
@@ -42,12 +39,14 @@ USE_C_API = true
VERBOSE = 1
-run:
- sed 's/#physics/physics/' $(WORLDS_DIR)/$(world).wbt > $(WORLDS_DIR)/tmp.wbt
- webots $(WORLDS_DIR)/tmp.wbt &
- /usr/local/webots/webots-controller --stdout-redirect $(EXE) $(world) \
- $(poselogname) $(setpointlogname)
+# https://stackoverflow.com/a/49524393
+.EXPORT_ALL_VARIABLES:
+WEBOTS_WORLD = $(world)
+WEBOTS_PATH = $(shell pwd)
+run:
+ webots $(WORLDS_DIR)/$(world).wbt &
+ /usr/local/webots/webots-controller --stdout-redirect $(EXE) $(world)
edit:
vim main.cpp
diff --git a/webots/controllers/controller/main.cpp b/attic/webots/controller/main.cpp
similarity index 93%
rename from webots/controllers/controller/main.cpp
rename to attic/webots/controller/main.cpp
index 653a501004..8674384211 100644
--- a/webots/controllers/controller/main.cpp
+++ b/attic/webots/controller/main.cpp
@@ -16,10 +16,13 @@
along with this program. If not, see .
*/
-// C/C++
+// C
#include
#include
+#include
#include
+
+// C++
#include