

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CS685 - Homework 5, due Oct 28th, Jana Koˇseck´a
x˙ = v cos(θ) y˙ = v sin(θ) θ˙ = ω
Given an initial configuration of the robot [x 0 , y 0 , θ 0 ]T^ and the desired position [xd, yd]T develop a simulation in Matlab which implements following a feedback control law based 1. Compute at each instance of time the desired velocity xd = [ ˙xd, y˙d]T^ which will be proportional to the distance from the goal. 2. Compute at each instance the desired v and ω, by projecting the current velocity vector v, (which is in the direction of robot’s heading) to the direction of desired velocity x and making the linear velocity proportional to the angle between the current heading and the desired heading, i.e.
v = kp( ˙xd cos θ + ˙yd sin θ) (1) ω = kθ(atan2( ˙yd, x˙d) − θ) (2)
Hand in the Matlab code and plot the of the trajectories. For example pick 20 positions at random in the interval [-100, 100] and make the point [0, 0] to be the desired goal.
Uatt(q) =
kattρ(q, qgoal)^2 and Uatt(q) = kattρ(q, qgoal)
where ρ(q, qgoal) is a Euclidean distance between q and qgoal. The potential function associated with an obstacle qi is defined as:
Urepi =
2 krep(^
1 ρi(q) −^
1 δ )^ if^ ρi(q)^ ≤^ δ 0 if ρi(q) > δ
Implement the goal reaching behavior in the absence and presence of obstacles using potential field method outlined in class.
q˙ = −∇U (q)
where ∇U (q) = ∇Uatt(q) +
i ∇Urepi (q). Plot and submit the trajectory of the robot from the initial to the final configuration and discuss the choice of constants katt and krep used.