Skip to content

Commit

Permalink
fix: changed if to assert in imu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustDG committed Dec 7, 2024
1 parent 184bfef commit 0708d72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/sensors/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def get_raw_data(self) -> IMUData:
}

def _update_data(self) -> None:
if not self._is_constructed:
return
assert self._is_constructed, "IMU not constructed: tried to update data!"

# from: https://github.com/isaac-sim/IsaacLab/pull/619/files#diff-44fe42c247de7301a3ce18a10d2b8c9045d58d42fc8440a7221b458d0712e83d

Expand Down

0 comments on commit 0708d72

Please sign in to comment.