genericroboticarm.control.graph_manager module¶
- class genericroboticarm.control.graph_manager.GraphManager(name: str)[source]¶
Bases:
object
- add_intermediates(from_pos: str, to_pos: str, num: int, name_generator: Callable[[int], str])[source]¶
Adds a specified number of intermediate positions between two specified positions. The new positions will be equidistant points on a straight line between the two positions. You need to add a name generator function. This function will receive the number of the intermediate position as an integer starting at 0. The intermediate positions will be enumerated starting near the ‘from_pos’ position. :return:
- change_position(identifier: str, pos: Dict[str, float])[source]¶
- Parameters:
identifier
pos
- Returns:
- dist: Callable[[Dict[str, float], Dict[str, float]], float]¶
- g: Graph¶