timor.utilities.errors

Custom error messages for robotics applications

Exceptions

DuplicateValueError

This can be raised whenever a duplicate value is added to a container.

InvalidAssemblyError

This can be raised when an assembly of modules should be created that's not valid

NonOrthogonalRotationError

Raised when a rotation matrix is not orthogonal

RotationVolumeError

Raised when a rotation matrix is not volume preserving

TimeNotFoundError

Raised when a time step t can not be found in a trajectory, solution, etc. that is indexed at this time t.

UnexpectedSpatialShapeError

Can be thrown whenever a spatial input (point, rotation, transformation) has the wrong input shape

UniqueValueError

This error can be raised whenever a values, such as an ID or name should be unique, but isn't

Functions

assert_has_3d_point(p)

Checks whether the input can be interpreted as a point in cartesian space

assert_is_3d_point(p)

Stronger assertion on points in cartesian space

assert_is_homogeneous_transformation(T)

Checks for shape, valid rotation matrix and last row

assert_is_rotation_matrix(R)

Checks whether a 3x3 matrix is a valid rotation (orthonormal)

Module Contents

exception timor.utilities.errors.DuplicateValueError
Inheritance diagram of 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
Inheritance diagram of 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
Inheritance diagram of 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
Inheritance diagram of 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
Inheritance diagram of 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
Inheritance diagram of 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
Inheritance diagram of 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)