pyrobosim.navigation.rrt.RRTPlanner
- class pyrobosim.navigation.rrt.RRTPlanner(*, bidirectional: bool = False, rrt_connect: bool = False, rrt_star: bool = False, collision_check_step_dist: float = 0.025, max_connection_dist: float = 0.25, max_nodes_sampled: int = 1000, max_time: float = 2.0, rewire_radius: float = 1.0, compress_path: bool = False)
Implements a Rapidly-exploring Random Tree (RRT) path planner.
Methods
__init__(*[, bidirectional, rrt_connect, ...])Creates an instance of an RRT planner.
extend(n_start, q_target)Grows the RRT from a specific node towards a sampled pose in the world.
Returns the graphs generated by the planner, if any.
Returns the latest path generated by the planner, if any.
plan(start, goal)Plans a path from start to goal.
reset()Resets the search trees and planning metrics.
rewire_node(graph, n_tgt)Rewires a node in the RRT by checking if switching the parent node to another nearby node will reduce its total cost from the root node.
Samples a random configuration from the world.
to_dict()Serializes the planner to a dictionary.
try_connect_until(graph, n_curr, n_tgt)Try to connect a node
n_currto a target noden_tgt.Attributes
The name of the plugin.