(joint)
return joint.root.sensor.add('torque', site=site, name=joint.name+'_torque')
Adds a torque sensor to a joint, returns the new MJCF element.
Adds a torque sensor to a joint, returns the new MJCF element.
Adds a torque sensor to a joint returns the new MJCF element .
def _add_torque_sensor(joint):
  """Adds a torque sensor to a joint, returns the new MJCF element."""
  site = joint.parent.add(
      'site', size=[1e-3], group=composer.SENSOR_SITES_GROUP,
      name=joint.name+'_site')
  return joint.root.sensor.add('torque', site=site, name=joint.name+'_torque')
def _add_torque_sensor ( joint ) : site = joint . parent . add ( 'site' , size = [ 1e-3 ] , group = composer . SENSOR_SITES_GROUP , name = joint . name + '_site' ) return joint . root . sensor . add ( 'torque' , site = site , name = joint . name + '_torque' )