pyrobot.algorithms.base_planner.
BasePlanner
(configs, world, ros_launch_manager=None, robots={}, sensors={}, algorithms={})[source]¶Bases: pyrobot.algorithms.algorithm.Algorithm
Base class of Base Planner algorithms.
Specifically, this algorithm handles generating base trajectory and execute the trajectory.
__init__
(configs, world, ros_launch_manager=None, robots={}, sensors={}, algorithms={})[source]¶Initialize self. See help(type(self)) for accurate signature.
check_cfg
()[source]¶This function checks required configs shared by all base planner instances in constructor.
The base planner algorithm handles one robot, and one robot only
The robot has a base
with customized algorithm config checks after calling this function using super().check_cfg()
get_plan_absolute
(x, y, theta)[source]¶and generate a plan as a list of poses in the world frame
x: desired translation along x-axis in world frame. Unit: meters. y: desired translation along y-axis in world frame. Unit: meters. theta: desired orientation in world frame. Unit: radius.
each of the point would take form that point.pose.position.x, point.pose.position.y, point.pose.position.theta denotes x, y, t position of each point in world frame.
If a plan cannot be generated, this function should raise an error.
move_to_goal
(x, y, theta)[source]¶compute a plan as a list of poses in the world frame, and move the base to the desired pose following the plan
x: desired translation along x-axis in world frame. Unit: meters. y: desired translation along y-axis in world frame. Unit: meters. theta: desired orientation in world frame. Unit: radius.
status: bool. True if the base gets to the target xyt pose; False otherwise.
If a plan cannot be generated or the generated plan cannot be executed, this function should raise an error.