|
|
|
@ -146,7 +146,12 @@ class UnityRobotController(RobotController):
|
|
|
|
cos_angle = float(np.dot(z_axis_map, down))
|
|
|
|
cos_angle = float(np.dot(z_axis_map, down))
|
|
|
|
cos_thresh = np.cos(self._max_tilt)
|
|
|
|
cos_thresh = np.cos(self._max_tilt)
|
|
|
|
|
|
|
|
|
|
|
|
self._FALL = cos_angle >= cos_thresh
|
|
|
|
fall = cos_angle >= cos_thresh
|
|
|
|
|
|
|
|
if not self._FALL and fall:
|
|
|
|
|
|
|
|
self._FALL = fall
|
|
|
|
|
|
|
|
self._register_fall(self.get_relative_time())
|
|
|
|
|
|
|
|
self.pub_status()
|
|
|
|
|
|
|
|
self._FALL = fall
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|