Question

In: Computer Science

A robot equipped with a differential drive starts at the position ?=1.0?, ?=2.0?x=1.0m, y=2.0m,  with a pose...

A robot equipped with a differential drive starts at the position ?=1.0?, ?=2.0?x=1.0m, y=2.0m,  with a pose (heading) of ?=90∘=?2θ=90∘=π2radians. The aim is for it to move to the position ?=1.5?, ?=2.0?x=1.5m, y=2.0m with a pose of ?=90∘=?2θ=90∘=π2. The distance between the wheels is ?=0.5?l=0.5m. The movement of the vehicle is described by the parameters of the velocity of the left wheel ??vl, the right wheel ??vr and the driving time ?t.

Assuming that the robot may have to execute a sequence of moves to get from the initial location to the target location, what is the minimum number of moves required to move the vehicle to the desired target location? Include in your answer the values of the parameters (??,??,?)(vl,vr,t) for each move.

What is the length of the shortest trajectory (i.e. path or distance travelled along the trajectory) given the sequence of moves in part A.

Solutions

Expert Solution

1.For minimum number of Moves

In general each command of a differential drive only allows us to follow a portion of a circular trajectory so having a chance to reach the second location (x, y) with a single half-circle,otherwise no chance  to do so with the correct orientation.

Atleast two commands are required to reach it. One way is to follow two half-circles, one with diameter u, the other with diameter v, such that their sum equals the distance between the poses,

i.e. u + v = d = 0.5m.

Remember that this is valid even when setting u = 0 or v = 0 .

2.To find the length of shortest trajectory

Two half-circles to be performed by robo, one with diameter u and arc length s1 and one with diameter v and arc length s2. Choose the diameters arbitrarily, as long as they add up to d.

s1 = π u / 2

s2 = π v / 2

u + v =d

The length of the trajectory is the sum of the arc lengths of both half-circles

s = s1 + s2 = π u / 2 + π v /2 = π(u + v) /2 = π d /2 = π /4

The trajectory length is independent of chosen u ,v.

For example after reaching position x = 1.5m, y = 2.0m, and θ = π 2 the robot executes the following sequence of moves.

c1 = (vl = 0.3m/s, vr = 0.3m/s, t = 3s)

c2 = (vl = 0.1m/s, vr = −0.1m/s, t = 1s)

c3 = (vl = 0.2m/s, vr = 0m/s, t = 2s)

The resulting poses are:

(1.500000,2.900000,1.570796)

(1.500000,2.900000,1.170796)

(1.639676,3.035655,0.370796)

The length of the shortest trajectory is euclidean distance between the two poses i.e 0.5m.


Related Solutions

Cell x y Demand Fabrication 1.0 4.0 12 Paint 1.0 2.0 24 Subassembly 1 2.5 2.0...
Cell x y Demand Fabrication 1.0 4.0 12 Paint 1.0 2.0 24 Subassembly 1 2.5 2.0 13 Subassembly 2 3.0 5.0 7 Assembly 4.0 4.0 17 Let us consider again the data from the LaRosa tool bin location problem discussed in Section 14.3. Suppose we know the average number of daily trips made to the tool bin from each production station. The average number of trips per day are 12 for fabrication, 24 for Paint, 13 for Subassembly 1, 7...
On a graph, there are 7 positive charges (each being +1 nC). The position are all along the x-axis (y=0) at x=-1.5m, -1.0m, -0.5m, 0m, 0.5m, 1.0m, and 1.5m.
On a graph, there are 7 positive charges (each being +1 nC). The position are all along the x-axis (y=0) at x=-1.5m, -1.0m, -0.5m, 0m, 0.5m, 1.0m, and 1.5m. Meanwhile, a sensor (aka point P) is above the charges at position (0, 0.5m). Draw the electric field using Coulomb's Law at point P (the sensor). The sensor is 69.4 V/m and direction is 90 degrees.
Design a class named Robot. The Robot class has three private data fields: position x, position...
Design a class named Robot. The Robot class has three private data fields: position x, position y, and the direction (east, south, west, and north). Assume that positive x points to the east and positive y points to the south, and initially x = 0, y = 0, direction = "east". Create a no-arg constructor and another constructor which sets the three data fields. Create the accessors and mutators for the three data fields. Create a method named forward that...
Solve differential equation: y'+y=sin(x)
Solve differential equation: y'+y=sin(x)
Solve the differential equation y'''+y''+y'+y=sinx+e^x+e^{-x}
Solve the differential equation y'''+y''+y'+y=sinx+e^x+e^{-x}
Determine the solutions for y = y(x) for the differential  equation cos x − x sin x...
Determine the solutions for y = y(x) for the differential  equation cos x − x sin x + y 2 + 2 x y dy/dx= 0.
Find the general solution to the differential equation. y'=xy/x−4 y(x)=C⋅ ...
Find the general solution to the differential equation. y'=xy/x−4 y(x)=C⋅ ...
Find the general solution of the differential equations. A: cos(x)y′(x) + y(x) sin(x) = 0 B:...
Find the general solution of the differential equations. A: cos(x)y′(x) + y(x) sin(x) = 0 B: 2xy + (x2 + y2)y′ = 0 C: (4x3 +2xy2 +1)dx+(2x2y−1)dy=0. D: x(4x3 +2xy2 +1)dx+x(2x2y−1)dy=0 with steps please.
Solve the differential equation by variation of parameters. y''+ y = sin^2(x)
Solve the differential equation by variation of parameters. y''+ y = sin^2(x)
We got for x > 0 given a differential equation y’ = 1-y/x, with start value...
We got for x > 0 given a differential equation y’ = 1-y/x, with start value y(2)= 2 Find the Taylor polynomial of first and second degree for y(x) at x =2. Show that y(x) =x/2 +2/x solves the given equation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT