maxspahn / gym_envs_urdf

URDF environments for gym
https://maxspahn.github.io/gym_envs_urdf/
GNU General Public License v3.0
43 stars 14 forks source link

Ft mujoco sensors #251

Closed maxspahn closed 5 months ago

maxspahn commented 5 months ago

Separates sensors from the physics engine to allow integration with mujoco.

Rational: In the aim of integrating mujoco as an alternative physics engine, this PR extracs the physics-engine-specifics from most of the sensor (all except for those relying on ray-casting).

Approach: In a newly created class PhysicsEngineInterface, functions for extracting poses are implemented for the two physics engines. The sensor the use that class instance to query the physics engine for information.

Example: The existing examples are not affected by this change as the default is pybullet. In the mujoco_example, the new functionality can be seen. Note that some sensors may introduces a computational overhead.