mathworks-robotics / mujoco-simulink-blockset

Blocks for accessing MuJoCo physics engine within Simulink
Other
49 stars 6 forks source link

Fixed sensorbus adressing issue #12

Closed heyomer closed 3 months ago

heyomer commented 7 months ago

Since the sensors are read sequentially from the .xml file and the sensor addresses also increase sequentially, the part responsible for fetching sensor addresses in getSensorInterface() within mj.cpp has been removed. Instead, all d->sensordata values in getSensor() have been updated to be copied directly to the sensorData vector, and the output is written directly in mj_sfun.cpp.