Skip to content

Commit 1c94b8b

Browse files
omichelygoumaz
andauthored
Fixed compilation on macOS (#5289)
* Fixed compilation, echo output on macOS * Fixed echo -e * Set JAVA_HOME automatically * remove codesign from Makefile.include * Update Makefile * Update Makefile * Compiles fixes for arm64 * Fixed compilation on arm64 * Update changelog-r2022.md * Update changelog-r2022.md * Got rid of aseba * Removed aseba dependency * Removed aseba documentation * removed python brew * Fixed mac distro on arm64 Co-authored-by: Yannick Goumaz <[email protected]>
1 parent b90ab4d commit 1c94b8b

File tree

40 files changed

+63
-1804
lines changed

40 files changed

+63
-1804
lines changed

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
[submodule "src/glm"]
22
path = src/glm
33
url = https://github.com/g-truc/glm.git
4-
[submodule "projects/robots/mobsya/thymio/libraries/dashel-src"]
5-
path = projects/robots/mobsya/thymio/libraries/dashel-src
6-
url = https://github.com/aseba-community/dashel.git
7-
[submodule "projects/robots/mobsya/thymio/controllers/thymio2_aseba/aseba"]
8-
path = projects/robots/mobsya/thymio/controllers/thymio2_aseba/aseba
9-
url = https://github.com/aseba-community/aseba.git
104
[submodule "src/stb"]
115
path = src/stb
126
url = https://github.com/nothings/stb.git

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ install:
164164

165165
help:
166166
@+echo
167-
@+echo -e "\033[32;1mWebots Makefile targets:\033[0m"
167+
@+$(ECHO) "\033[32;1mWebots Makefile targets:\033[0m"
168168
@+echo
169-
@+echo -e "\033[33;1mmake -j$(THREADS) release\033[0m\t# compile with maximum optimization (default)"
170-
@+echo -e "\033[33;1mmake -j$(THREADS) debug\033[0m \t# compile with gdb debugging symbols"
171-
@+echo -e "\033[33;1mmake -j$(THREADS) profile\033[0m\t# compile with gprof profiling information"
172-
@+echo -e "\033[33;1mmake -j$(THREADS) distrib\033[0m\t# compile in release mode & create distribution package"
173-
@+echo -e "\033[33;1mmake -j$(THREADS) clean\033[0m \t# clean-up the compilation output"
174-
@+echo -e "\033[33;1mmake -j$(THREADS) cleanse\033[0m\t# deep clean-up (dependencies are also removed)"
175-
@+echo -e "\033[33;1mmake help\033[0m\t\t# display this message and exit"
169+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) release\033[0m\t# compile with maximum optimization (default)"
170+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) debug\033[0m \t# compile with gdb debugging symbols"
171+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) profile\033[0m\t# compile with gprof profiling information"
172+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) distrib\033[0m\t# compile in release mode & create distribution package"
173+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) clean\033[0m \t# clean-up the compilation output"
174+
@+$(ECHO) "\033[33;1mmake -j$(THREADS) cleanse\033[0m\t# deep clean-up (dependencies are also removed)"
175+
@+$(ECHO) "\033[33;1mmake help\033[0m\t\t# display this message and exit"
176176
@+echo
177-
@+echo -e "\033[32;1mNote:\033[0m You seem to have a processor with $(NUMBER_OF_PROCESSORS) virtual cores,"
178-
@+echo -e " hence the \033[33;1m-j$(THREADS)\033[0m option to speed-up the compilation."
177+
@+$(ECHO) "\033[32;1mNote:\033[0m You seem to have a processor with $(NUMBER_OF_PROCESSORS) virtual cores,"
178+
@+$(ECHO) " hence the \033[33;1m-j$(THREADS)\033[0m option to speed-up the compilation."
-35.8 KB
Binary file not shown.

docs/guide/thymio2.md

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ More information about the Thymio II is available from its official [website](ht
99

1010
Webots contains an accurate model of the Thymio II robot.
1111
Almost all the Thymio II devices have been modeled and calibrated.
12-
Moreover Aseba studio and VPL for Thymio II can be connected on the simulated model allowing you to program the simulated robot using Aseba.
13-
Many Aseba examples are working directly with the simulated robot.
1412
Finally several objects related to the Thymio II are available, including a pen which can draw on any 3D object.
1513

1614
### Thymio II Model
@@ -67,8 +65,8 @@ Thymio2 {
6765
SFVec3f translation 0 0 0
6866
SFRotation rotation 0 0 1 0
6967
SFString name "Thymio II"
70-
SFString controller "thymio2_aseba"
71-
MFString controllerArgs "port=33333"
68+
SFString controller "thymio2_demo"
69+
MFString controllerArgs []
7270
SFString customData ""
7371
SFBool supervisor FALSE
7472
SFBool synchronization TRUE
@@ -89,31 +87,8 @@ Thymio2 {
8987

9088
- `bodySlot`: Extends the robot with new nodes in the body slot.
9189

92-
### Connect Aseba to the Thymio II Model
90+
### Robot Window
9391

94-
The default controller of the Thymio II PROTO is the `thymio2_demo` controller.
95-
It should be changed to `thymio2_aseba` to allow the connection to Aseba programming environment.
96-
However, most world files including the Thymio II robot are already configured to use `thymio2_aseba` as a controller for the Thymio II robot.
97-
Technically, `thymio2_aseba` creates a TCP/IP server on which Aseba can be connected, and it wraps the Aseba API with the Webots API.
98-
99-
Here is how to proceed to connect Aseba to the Thymio II model in Webots.
100-
Make sure that the simulation is running (the controller has started) and that the controller of the Thymio II robot is `thymio2_aseba`.
101-
You can check this from the Webots scene tree, by opening the Thymio2 node.
102-
Aseba Studio or VPL for Thymio II can then be started.
103-
From the Aseba target selection dialog (see the [figure](#aseba-studio-and-vpl-target-selection-dialog).), select the `Network TCP/IP` option with the following parameters: `Host = localhost` and `Port = 33333`.
104-
Then just click on the `Connect` button.
105-
106-
In case of a simulation containing several Thymio II, the TCP/IP port of the `thymio2_aseba` controller should be unique for each robot instance.
107-
This value can be modified by editing the `Thymio2::controllerArgs` field.
108-
109-
%figure "Aseba Studio and VPL target selection dialog"
110-
111-
![aseba_target_selection.png](images/robots/thymio2/aseba_target_selection.png)
112-
113-
%end
114-
115-
The Thymio II window (see the [figure](#thymio-ii-robot-window)) can help you to raise some events easily.
116-
These events are mainly useful when using the VPL for Thymio II software.
11792
To open the Thymio II window, select the "Show Robot Window" option in the robot [context menu](the-3d-window.md#context-menu).
11893

11994
%figure "Thymio II robot window"

lib/controller/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66
/python38
77
/python39
88
/python310
9-
/python37_brew
10-
/python38_brew
11-
/python39_brew
12-
/python310_brew
139
/*.so.*

projects/default/controllers/ros/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ endif
3838
PYTHON_COMMAND ?= python3
3939
ifeq (, $(ROS_DISTRO))
4040
release debug profile clean:
41-
@echo "# \033[0;33mROS not installed or 'ROS_DISTRO' not defined\033[0m"
41+
@$(ECHO) "# \033[0;33mROS not installed or 'ROS_DISTRO' not defined\033[0m"
4242
else
4343
ifeq (2, $(ROS_VERSION))
4444
release debug profile clean:
45-
@echo "# \033[0;33mROS_DISTRO should not be a ROS2 distribution\033[0m"
45+
@$(ECHO) "# \033[0;33mROS_DISTRO should not be a ROS2 distribution\033[0m"
4646
else
4747
CXX_SOURCES = $(wildcard *.cpp)
4848
CXX_SOURCES += $(wildcard highlevel/*.cpp)

projects/default/libraries/vehicle/java/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ LIB += -L"$(WEBOTS_CONTROLLER_LIB_PATH)" -lCppController -lCppCar -lCppDriver
6464
# rules
6565
ifeq ($(SWIG_EXISTS),)
6666
all release debug profile:
67-
@echo -e "# \033[0;33mSWIG not installed, skipping Java API\033[0m"
67+
@$(ECHO) "# \033[0;33mSWIG not installed, skipping Java API\033[0m"
6868
else ifeq ($(JAVA_HOME),)
6969
all release debug profile:
70-
@echo -e "# \033[0;33mJava not installed or 'JAVA_HOME' not set, skipping Java API\033[0m"
70+
@$(ECHO) "# \033[0;33mJava not installed or 'JAVA_HOME' not set, skipping Java API\033[0m"
7171
else
7272
all release debug profile: $(JAR) $(LIBRARY)
7373

projects/robots/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
LIBRARIES=robotis/darwin-op/libraries.Makefile \
1616
neuronics/ipr/libraries.Makefile \
17-
mobsya/thymio/libraries.Makefile \
1817
kuka/youbot/libraries.Makefile
1918

2019
CONTROLLERS=\
@@ -96,8 +95,6 @@ robotis/darwin-op/controllers.Makefile robotis/darwin-op/plugins/robot_windows.M
9695

9796
neuronics/ipr/controllers.Makefile: neuronics/ipr/libraries.Makefile
9897

99-
mobsya/thymio/controllers.Makefile: mobsya/thymio/libraries.Makefile
100-
10198
kuka/youbot/controllers.Makefile: kuka/youbot/libraries.Makefile
10299

103100
%.Makefile:

projects/robots/mobsya/thymio/controllers/Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@
1313
# limitations under the License.
1414
TARGETS = thymio2_demo.Makefile
1515

16-
ifneq (,$(wildcard ../libraries/dashel/dashel/dashel.h))
17-
ADD_THYMIO2_ASEBA = 1
18-
endif
19-
20-
ifeq ($(MAKECMDGOALS),clean)
21-
ADD_THYMIO2_ASEBA = 1
22-
endif
23-
24-
ifdef ADD_THYMIO2_ASEBA
25-
TARGETS += thymio2_aseba.Makefile
26-
endif
27-
2816
.PHONY: release debug profile clean
2917

3018
release debug profile clean: $(TARGETS)

projects/robots/mobsya/thymio/controllers/thymio2_aseba/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)