Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 b ) Closed - Loop Control: Pure Pursuit Algorithm One of the most powerful ideas in robotic control is feedback. In this next part,

2b) Closed-Loop Control: Pure Pursuit Algorithm
One of the most powerful ideas in robotic control is feedback. In this next part, we will implement a controller that measures the system's state
at each step and uses that measurement to compute an action. This way, if the system ended up in a slightly different state than was expected
from the simple model, the measurement will contain information about this discrepancy. Feedback control is often a great way to compensate
for imperfect knowledge of the system you are working with.
Your job is to implement the PurePursuitController class with a get_action method that takes in the current obs and the env.goal
coordinate (expressed in the global frame), and outputs one action =[v,]. This get_action method will be called at each step, so there is
no need to calculate a whole sequence of actions. The controller that you implement should be capable of driving the system to the goal.
[] class PurePursuitController:
def_init_(self, L=3.):
""'"Store any hyperparameters here.""'"
self.L = L
def get_action(self, obs: np.ndarray, goal: np.ndarray) np.ndarray:
"""'Your implementation goes here""""
raise NotImplementedError()
return np.array([linear_speed, angular_speed])
This validation function may come in handy for debugging/testing your controller in some random scenarios
( def validation(controller, motion_model=Unicycle, sensor_model=StateFeedbackWrapper, plot=False, num_runs=100, max_num_steps_per_rur
success_per_run = np. empty num_runs,
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

suggest a range of work sample exercises and design them

Answered: 1 week ago