nav2_simple_commander.line_iterator module

This is a Python3 API for a line iterator.

It provides the ability to iterate through the points of a line.

Bases: object

LineIterator.

LineIterator Python3 API for iterating along the points of a given line

Advance to the next point in the line.

Clamp n to be between min_n and max_n.

Args

n (float): input value min_n (float): minimum value max_n (float): maximum value

Returns

n (float): input value clamped between given min and max

Get the abscissa of the current point.

Get the abscissa of the initial point.

Get the abscissa of the final point.

Get the ordinate of the current point.

Get the ordinate of the intial point.

Get the ordinate of the final point.

Get the length of the line.

Check if line is valid.