Skip to content

Commit

Permalink
added exceptions for force torque error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ichumuh committed Jun 24, 2024
1 parent 6e0690b commit c3c4e9a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/giskardpy/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,24 @@ class ExecutionSucceededPrematurely(ExecutionException):
@GiskardException.register_error_code(GiskardError.BEHAVIOR_TREE_ERROR)
class BehaviorTreeException(GiskardException):
pass


# %% force torque exceptions
@GiskardException.register_error_code(GiskardError.FORCE_TORQUE_MONITOR_ERROR)
class ForceTorqueExceptions(GiskardException):
pass


@GiskardException.register_error_code(GiskardError.FORCE_TORQUE_MONITOR_GRASPING_MISSED_OBJECT)
class ForceTorqueMonitorGraspsingMissedObjectExceptions(GiskardException):
pass


@GiskardException.register_error_code(GiskardError.FORCE_TORQUE_MONITOR_TRANSPORTING_LOST_OBJECT)
class ForceTorqueTransportingLostObjectExceptions(GiskardException):
pass


@GiskardException.register_error_code(GiskardError.FORCE_TORQUE_MONITOR_PLACING_MISSED_PLACING_LOCATION)
class ForceTorquePlacingMissedPlacingLocationExceptions(GiskardException):
pass

0 comments on commit c3c4e9a

Please sign in to comment.