Closed maxspahn closed 7 months ago
In mujoco, a raycast returns -1 if no body is hit by the ray, see https://mujoco.readthedocs.io/en/stable/XMLreference.html#sensor-rangefinder.
Therefore, this implementation is causing an issue in open spaces. It should instead return self._ray_length in case sensordata = -1.
self._ray_length
sensordata = -1
https://github.com/maxspahn/gym_envs_urdf/blob/d1691dbd933a672b8212aac00305893e9fe6534f/urdfenvs/sensors/physics_engine_interface.py#L168-L169
In mujoco, a raycast returns -1 if no body is hit by the ray, see https://mujoco.readthedocs.io/en/stable/XMLreference.html#sensor-rangefinder.
Therefore, this implementation is causing an issue in open spaces. It should instead return
self._ray_length
in casesensordata = -1
.https://github.com/maxspahn/gym_envs_urdf/blob/d1691dbd933a672b8212aac00305893e9fe6534f/urdfenvs/sensors/physics_engine_interface.py#L168-L169