Question: Write a code that implements a go-to-goal behavior in which the simulated vehicle as described during the Lab starts at position (30,30) and with random

Write a code that implements a go-to-goal behavior in which the simulated vehicle as described during the Lab starts at position (30,30) and with random orientation (use rand in matlab) and autonomously moves toward a goal located at (130,130). Use a sampling time dt=0.1. Assume that the vehicle has a maximum velocity v=4.5 and a maximum steering angle of pi/5. Use the shape of the robot in a. Plot the robot during the simulation. Implement a PID controller on the steering angle and a P controller on the velocity as described during lecture. Create an animation of this behavior and two plots one for the angle error and one for the velocity over time. Tune the PID appropriately.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!