duburcqa / jiminy

Jiminy: a fast and portable Python/C++ simulator of poly-articulated robots with OpenAI Gym interface for reinforcement learning
https://duburcqa.github.io/jiminy
MIT License
228 stars 26 forks source link

[python] Full support of EngineMultirobot in Python. #246

Open duburcqa opened 3 years ago

duburcqa commented 3 years ago

Simulator should be modified to support both Engine and EngineMultirobot. The same goes for Viewer.

In the current implementation of Engine, some base methods are explicitly forbidden, which is a bad practice. Instead, it should be overloaded to raise an exception when appropriate, so that the API remains compatible. In this way, it should be possible to use indifferently Engine or EngineMultirobot in simulator, addSystem instead of initialized...

Once this limitation would be alleviated for Simulator, it should be suite straightfoward to adapt Viewer to support it, even though it is not clear how to deal with multiple robot. Looping over systems coule be done as an inner loop or an outer loop. Indeed, at replay, a multi-robots system is just a set of Independent single-robot systems.

duburcqa commented 5 months ago

The only feature that it is missing at the time being is multi-robot replay.