timor.utilities.errors
Custom error messages for robotics applications
Exceptions
This can be raised whenever a duplicate value is added to a container. |
|
This can be raised when an assembly of modules should be created that's not valid |
|
Raised when a rotation matrix is not orthogonal |
|
Raised when a rotation matrix is not volume preserving |
|
Raised when a time step t can not be found in a trajectory, solution, etc. that is indexed at this time t. |
|
Can be thrown whenever a spatial input (point, rotation, transformation) has the wrong input shape |
|
This error can be raised whenever a values, such as an ID or name should be unique, but isn't |
Functions
Checks whether the input can be interpreted as a point in cartesian space |
|
Stronger assertion on points in cartesian space |
|
Checks for shape, valid rotation matrix and last row |
|
Checks whether a 3x3 matrix is a valid rotation (orthonormal) |
Module Contents
- exception timor.utilities.errors.DuplicateValueError

This can be raised whenever a duplicate value is added to a container.
Containers, such as a list, set, that allows unique values only.
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.InvalidAssemblyError

This can be raised when an assembly of modules should be created that’s not valid
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.NonOrthogonalRotationError

Raised when a rotation matrix is not orthogonal
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.RotationVolumeError

Raised when a rotation matrix is not volume preserving
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.TimeNotFoundError

Raised when a time step t can not be found in a trajectory, solution, etc. that is indexed at this time t.
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.UnexpectedSpatialShapeError

Can be thrown whenever a spatial input (point, rotation, transformation) has the wrong input shape
Initialize self. See help(type(self)) for accurate signature.
- exception timor.utilities.errors.UniqueValueError

This error can be raised whenever a values, such as an ID or name should be unique, but isn’t
Initialize self. See help(type(self)) for accurate signature.
- timor.utilities.errors.assert_has_3d_point(p)
Checks whether the input can be interpreted as a point in cartesian space
- Raises:
UnexpectedSpatialShapeError
- Parameters:
p (numpy.ndarray)
- timor.utilities.errors.assert_is_3d_point(p)
Stronger assertion on points in cartesian space
- Raises:
UnexpectedSpatialShapeError
- Parameters:
p (numpy.ndarray)
- timor.utilities.errors.assert_is_homogeneous_transformation(T)
Checks for shape, valid rotation matrix and last row
- Raises:
UnexpectedSpatialShapeError, AssertionError
- Parameters:
T (numpy.ndarray)
- timor.utilities.errors.assert_is_rotation_matrix(R)
Checks whether a 3x3 matrix is a valid rotation (orthonormal)
- Raises:
AssertionError
- Parameters:
R (numpy.ndarray)