(self, physics)
return float(physics.hinge_velocity() <= -_SPIN_VELOCITY)
Returns a sparse reward.
Returns a sparse reward.
Returns a sparse reward .
def get_reward(self, physics):
    """Returns a sparse reward."""
    return float(physics.hinge_velocity() <= -_SPIN_VELOCITY)
def get_reward ( self , physics ) : return float ( physics . hinge_velocity ( ) <= - _SPIN_VELOCITY )