mujoco-simulink-blockset
mujoco-simulink-blockset copied to clipboard
Fixed sensorbus adressing issue
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.