Open takashi-suehiro opened 2 years ago
Describe the bug The sim.data.get_sensor(sensor_name) function only returns the data of the sensor's id location, not the correct value of the sensor.
Desktop (please complete the following information):
Additional context I think it is better to rewrite this function as follows.
def get_sensor(i) : return sim.data.sensordata[model.sensor_adr[i]:model.sensor_adr[i]+model.sensor_dim[i]]
(sorry, this is not a method of MjSim.)
Describe the bug The sim.data.get_sensor(sensor_name) function only returns the data of the sensor's id location, not the correct value of the sensor.
Desktop (please complete the following information):
Additional context I think it is better to rewrite this function as follows.
def get_sensor(i) : return sim.data.sensordata[model.sensor_adr[i]:model.sensor_adr[i]+model.sensor_dim[i]]
(sorry, this is not a method of MjSim.)