Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the Unicycle model you implemented above, you will now command the system to reach a goal position. Start with open - loop control, i

Using the Unicycle model you implemented above, you will now command the system to reach a goal position. Start with open-loop control,
i.e., measure the intial state (returned by env. reset) and then calculate a sequence of actions to apply.
After that sequence is computed, run the simulator forward for several steps, and at each step, simply grab the corresponding control value
from that pre-computed sequence. You can use this example open_loop_control_policy implementation as a first try.
Your job is to implement a smarter open_loop_control_policy that gets the system to reach (close) to the goal.
Remember: you are only provided with the initial state, goal position, and the maximum number of steps allowed -- you can't access the
system's state once it has started moving! That would be closed-loop control, which we'll implement next
Deliverables:
Implement the open_loop_control_policy, which should produce a sequence of control commands that will lead to the goal. This can
be a very simple hard-coded policy (e.g., always send the same v,w)
Generate 1 plot that shows your open-loop controller drives the noise-free system to the goal (it only has to work for 1 test case). Include
the path taken and the start/goal coordinates in your plot.
Generate 1 plot that shows your open-loop controller running on the noisy system (it's ok if it doesn't work on this system). Include the
path taken and the start/goal coordinates in your plot.
[] def open_loop_control_policy(init_state: np.ndarray, goal: np.ndarray, num_steps: int =10) list[np.ndarray]:
## Your Implementation Here ##
raise NotImplementedError
return control_sequence
o. np.random.seed (0)
max_num_steps =200
env. unwrapped.motion_model = Unicycle(
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

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions