You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(2025-11-04 19:53:15.353) [debug] [SystemManager.cc:80] Loaded system [ArduPilotPlugin] for entity [43]
220
+
...
221
+
(2025-11-04 19:53:15.980) [info] [ArduPilotPlugin.cc:1147] Found IMU sensor with name [iris_with_standoffs::imu_link::imu_sensor]
222
+
(2025-11-04 19:53:15.980) [debug] [ArduPilotPlugin.cc:1161] Computed IMU topic to be: world/runway/model/iris_with_ardupilot_1/model/iris_with_standoffs/link/imu_link/sensor/imu_sensor/imu
223
+
```
224
+
225
+
secondary
226
+
227
+
```bash
228
+
SocketUDP Bind failed: Address already in use
229
+
(2025-11-04 19:53:15.877) [error] [ArduPilotPlugin.cc:1282] [iris_with_ardupilot_1] failed to bind with 127.0.0.1:9002 aborting plugin.
230
+
...
231
+
(2025-11-04 19:53:16.598) [warning] [ArduPilotPlugin.cc:1568] Incorrect protocol magic 255 should be 18458
232
+
```
233
+
234
+
Sockets are going to present a problem - we cannot load a model twice using the same port. The binding occurs at model load, even though the entity is not loaded, the plugin is bound.
235
+
236
+
Need to seek an alternative approach...
237
+
238
+
- Use a proxy model to load the plugin, but assign outputs to the actual model.
239
+
- Still have the same problem - the model is loaded into all `gz sim instances`
240
+
- unless we also have two separate worlds, one with the proxy, and one without
241
+
- issue is that the entity ids will then be different - so inconsistent.
242
+
243
+
- Alternative settings for UDP sockets?
244
+
- Can use `SO_REUSEPORT` and allow multiple sockets to bind to the same port, however this causes other errors at runtime, as processes where the entity is unloaded continue to send (invalid) data.
245
+
- Can we check if an entity is loaded, and disable the plugin if that is the case?
246
+
- Or use an entirely gz-transport based approach (c.f. PX4).
0 commit comments