dRRT

class discopygal.solvers.rrt.drrt.dRRT(num_landmarks, prm_num_landmarks, prm_k, bounding_margin_width_factor=2, nearest_neighbors=None, prm_nearest_neighbors=None, metric=None, sampler=None)

Bases: TensorSolver

Implementation of the dRRT algorithm for multi-robot motion planning. This is done by generating PRMs for each robot seperatly, and then running RRT where we only add valid vertices and edges in the tensor roadmap generated by the tensor product of the individual roadmaps.

Parameters:
  • num_landmarks (int) – number of landmarks to sample in the tensor roadmap

  • prm_num_landmarks (int) – number of landmarks to sample in each robot’s PRM

  • prm_k (int) – number of nearest neighbors to connect for PRM

  • nearest_neighbors (NearestNeighbors or None) – a nearest neighbors algorithm for the tensor roadmap. if None then use sklearn implementation

  • prm_nearest_neighbors (NearestNeighbors or None) – a nearest neighbors algorithm for the PRM. if None then use sklearn implementation

  • metric (Metric or None) – a metric for choosing best edge, can be different then the nearest_neighbors metric! If None then use euclidean metric

  • sampler (Sampler) – sampling algorithm/method. if None then use uniform sampling

static from_arguments(d)

Get a dictionary of arguments and return a solver. Should be overridded by solvers.

Parameters:

d (dict) – arguments dict

static get_arguments()

Return a list of arguments and their description, defaults and types. Can be used by a GUI to generate fields dynamically. Should be overridded by solvers.

Returns:

arguments dict

Return type:

dict