MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / get_observation_components

Method get_observation_components

dm_control/suite/dog.py:296–308  ·  view source on GitHub ↗

Returns the observations for the Stand task.

(self, physics)

Source from the content-addressed store, hash-verified

294 physics.data.act[actuator_id] = self.random.uniform(*ctrlrange)
295
296 def get_observation_components(self, physics):
297 """Returns the observations for the Stand task."""
298 obs = collections.OrderedDict()
299 obs['joint_angles'] = physics.joint_angles()
300 obs['joint_velocites'] = physics.joint_velocities()
301 obs['torso_pelvis_height'] = physics.torso_pelvis_height()
302 obs['z_projection'] = physics.z_projection().flatten()
303 obs['torso_com_velocity'] = physics.torso_com_velocity()
304 obs['inertial_sensors'] = physics.inertial_sensors()
305 obs['foot_forces'] = physics.foot_forces()
306 obs['touch_sensors'] = physics.touch_sensors()
307 obs['actuator_state'] = physics.data.act.copy()
308 return obs
309
310 def get_observation(self, physics):
311 """Returns the observation, possibly adding reward factors."""

Callers 2

get_observationMethod · 0.95

Calls 9

torso_pelvis_heightMethod · 0.80
z_projectionMethod · 0.80
torso_com_velocityMethod · 0.80
inertial_sensorsMethod · 0.80
foot_forcesMethod · 0.80
joint_anglesMethod · 0.45
joint_velocitiesMethod · 0.45
touch_sensorsMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected