Spatial maths blocks

https://raw.githubusercontent.com/petercorke/bdsim/master/figs/BDSimLogo_NoBackgnd@2x.png
class roboticstoolbox.blocks.spatial.Tr2Delta(*args: Any, **kwargs: Any)[source]

Bases: FunctionBlock

TR2DELTA

Transforms to delta

Inputs:

2

Outputs:

1

States:

0

Port type

Port number

Types

Description

Input

0

SE3

\(\mathbf{T}_1\) pose.

Input

1

SE3

\(\mathbf{T}_2\) pose.

Output

0

ndarray(6)

\(\Delta\)

Difference between \(\mathbf{T}_1\) and \(\mathbf{T}_2\) as a 6-vector

Seealso:

Delta2Tr tr2delta()

__init__(**blockargs)[source]
Parameters:

blockargs (dict) – common Block options

class roboticstoolbox.blocks.spatial.Delta2Tr(*args: Any, **kwargs: Any)[source]

Bases: FunctionBlock

DELTA2TR

Delta to transform

Inputs:

1

Outputs:

1

States:

0

Port type

Port number

Types

Description

Input

0

ndarray(6)

\(\Delta\)

Output

0

SE3

\(\mathbf{T}\), pose.

6-vector spatial displacement to transform.

Seealso:

Tr2Delta delta2tr()

__init__(**blockargs)[source]
Parameters:

blockargs (dict) – common Block options

class roboticstoolbox.blocks.spatial.Point2Tr(*args: Any, **kwargs: Any)[source]

Bases: FunctionBlock

POINT2TR

Point to transform.

Inputs:

1

Outputs:

1

States:

0

Port type

Port number

Types

Description

Input

0

ndarray(3)

\(\mathit{p}\), point.

Output

0

SE3

\(\mathbf{T}\), pose.

The parameter T is an SE3 object whose translation part is replaced by the input

__init__(T=None, **blockargs)[source]
Parameters:

If T is None then it defaults to the identity matrix.

class roboticstoolbox.blocks.spatial.TR2T(*args: Any, **kwargs: Any)[source]

Bases: FunctionBlock

TR2T

Translation components of transform

Inputs:

1

Outputs:

3

States:

0

Port type

Port number

Types

Description

Input

0

SE3

\(\mathit{T}\) transform.

Output

0

float

\(x\) component of translation.

Output

1

float

\(y\) component of translation.

Output

2

float

\(z\) component of translation.

Seealso:

transl()

__init__(**blockargs)[source]
Parameters:

blockargs (dict) – common Block options