OpTaS  1.0.7
An optimization-based task specification library for trajectory optimization and model predictive control.
Namespaces | Functions
optas Namespace Reference

Namespaces

 builder
 The optimization builder class is defined.
 
 models
 Several Model classes are defined.
 
 optimization
 
 solver
 
 spatialmath
 This is a partial port to Python/CasADi, with some modifications and additions, of the Spatial Math Toolbox for MATLAB.
 
 sx_container
 Definition of the SXContainer class.
 
 templates
 
 visualize
 Visualizer class implementation.
 

Functions

Union[cs.DM, cs.SX] deg2rad (ArrayType x)
 Convert degrees to radians. More...
 
Union[cs.DM, cs.SX] rad2deg (ArrayType x)
 Convert radians to degrees. More...
 
Union[cs.DM, cs.SX] clip (ArrayType x, Union[float, ArrayType] lo, Union[float, ArrayType] hi)
 Clip (limit) the values in an array. More...
 

Function Documentation

◆ clip()

Union[cs.DM, cs.SX] optas.clip ( ArrayType  x,
Union[float, ArrayType]  lo,
Union[float, ArrayType]   hi 
)

Clip (limit) the values in an array.

Parameters
xArray containing elements to clip.
loMinimum value.
hiMaximum value.
Returns
An array with the elements of x, but where values < lo are replaced with lo, and those > hi with hi.

◆ deg2rad()

Union[cs.DM, cs.SX] optas.deg2rad ( ArrayType  x)

Convert degrees to radians.

Parameters
xAn array containing angles in degrees.
Returns
An array containing angles in radians.

◆ rad2deg()

Union[cs.DM, cs.SX] optas.rad2deg ( ArrayType  x)

Convert radians to degrees.

Parameters
xAn array containing angles in radians.
Returns
An array containing angles in degrees.