<< Click to Display Table of Contents >> Path decomposer |
Cuts a subpath out of a path. A path consists of a list of poses.
Index |
Pose |
1 |
p1 |
2 |
p2 |
... |
|
N |
pN |
The inputs Start and Length specify the initial pose and the length of the decomposed path. Start must be in [1;N]. If Start < 1, value 1 is used internally. If Start > the length of the path, the result will be an empty path. Length must be in [0;N-Start+1]. If Length <= 0 the result will be an empty path. If Length > N-Start+1, the result will be the subpath starting at index Start.
Examples:
Path = p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
Start = 3
Length = 5
Subpath = p3, p4, p5, p6, p7
Path = p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
Start = 0
Length = 1
Subpath = p1
Path = p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
Start = 11
Length = 1
Subpath = empty path
Path = p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
Start = 1
Length = 0
Subpath = empty path
Path = p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
Start = 2
Length = 20
Subpath = p2, p3, p4, p5, p6, p7, p8, p9, p10
Inputs |
Type |
Default |
Description |
Path |
path |
empty path |
The path to decompose. |
Start |
int |
1 |
The pose at index Start of the path becomes the first pose of the decomposed path. |
Length |
int |
1 |
The decomposed path consists of Length poses starting at the pose at index Start of the path to decompose. |
Outputs |
|||
Subpath |
path |
empty path |
The resulting path begins with the pose at index Start and consists of Length poses. |