7006c7a182a991b9409c206c56abc121eaffafb5,gym/envs/robotics/hand/manipulate_touch_sensors.py,ManipulateTouchSensorsEnv,_get_obs,#ManipulateTouchSensorsEnv#,75

Before Change


                value = 1.0 if self.sim.data.sensordata[touch_sensor_id] != 0.0 else 0.0
                touch_values.append(value)
        elif self.touch_get_obs == "log":
            for touch_sensor_id, site_id in self._touch_sensor_id_site_id:
                value = self.sim.data.sensordata[touch_sensor_id]
                touch_values.append(value)
            if len(touch_values) > 0:
                touch_values = np.log(np.array(touch_values) + 1.0)
        observation = np.concatenate([robot_qpos, robot_qvel, object_qvel, touch_values, achieved_goal])

After Change


        elif self.touch_get_obs == "boolean":
            touch_values = self.sim.data.sensordata[self._touch_sensor_id] > 0.0
        elif self.touch_get_obs == "log":
            touch_values = np.log(self.sim.data.sensordata[self._touch_sensor_id] + 1.0)
        observation = np.concatenate([robot_qpos, robot_qvel, object_qvel, touch_values, achieved_goal])

        return {
            "observation": observation.copy(),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: openai/gym
Commit Name: 7006c7a182a991b9409c206c56abc121eaffafb5
Time: 2019-04-02
Author: andrew.melnik.git@gmail.com
File Name: gym/envs/robotics/hand/manipulate_touch_sensors.py
Class Name: ManipulateTouchSensorsEnv
Method Name: _get_obs


Project Name: leftthomas/SRGAN
Commit Name: 3b13f1e6b5f5ac19511cb80f8107d4a1e077beca
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: train.py
Class Name:
Method Name:


Project Name: CamDavidsonPilon/lifelines
Commit Name: b46c893e2c0f9cd505b597c2ff215a0df04b6050
Time: 2020-05-19
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/npmle.py
Class Name:
Method Name: log_likelihood