首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代做ELEE 4200、MATLAB程序语言代写
项目预算:
开发周期:
发布时间:
要求地区:
ELEE 4200/5200: Autonomous Mobility Robotics
Term I, 2023
Homework 2: Open-Loop & Closed-Loop Driving
Note:
• The broad goals of this assignment are:
o To implement a basic closed-loop control algorithm, which requires the use of a
feedback loop directly monitoring the variable to be controlled.
o To compare results with a corresponding open-loop implementation of the same task.
• Guidelines:
o Due date: Monday, October 2, 2023, by 12 Noon.
o If you are an undergraduate student, you are permitted to work in groups of no more
than two students. However, if you prefer to work on your own, that is fine too!
o Submit the report by responding to this assignment posting in Blackboard.
o Each group must work on its own in completing this assignment! Feel free to consult
with others in developing solution ideas, but the final code implemented must be your
work product alone. Refer to the Syllabus, where the policy on academic integrity is
outlined, our classroom discussions on this topic, and consult with me and/or the GTA if
you have any questions!
Background:
In Homework 1 we drove the robot using velocity commands that were either fixed entirely
or fixed over driving segments (the ‘6’ & ‘9’ patterns). In all cases, the program did not
incorporate the right feedback, even as we implemented a control system! This is because we
were not monitoring the proper variable as the robot drove. The aim of this assignment is to go
one step further by driving the robot using the proper feedback to guide it.
Let us take the circle path of HW1 as an example. We set the velocity of the robot and then
drove it for the estimated time it would take to travel a distance equal to the circumference of
the circle. However, this strategy assumes that the robot achieves the desired velocity
immediately, even though it is starting from a stationary position. This would obviously not be
true in practice. In fact, we can prove it would not by getting the robot to trace a full circle after
it has had time to reach the target velocity. The circle would be slightly different in this
situation.
Furthermore, even if the robot achieves the commanded velocity instantaneously, typically
the ground is non-uniform in terms of its friction characteristics as well as flatness. So, in
practice velocities are not constant all the time. The vehicle’s internal speed control system
tries to maintain the commanded velocities, but it cannot achieve this instantaneously. That is,
the velocity fluctuates from moment to moment, just like when we drive a car.
2
We can in a sense say that in HW1 we implemented an open-loop control system, because
we did not monitor the correct target quantity of distance traveled. Instead, we monitored
drive time, which is inherently based on the assumption that the velocity will hold steady. In
this homework we will monitor distance traveled instead, which is downstream from time of
travel, and is not dependent on the assumption of a steady velocity. It is a better indicator of
whether we have traveled as far as we want. In fact, we will do both so that you can compare
the results obtained.
Figure 1: Desired Triangular Robot Path
C
B
A
AB = 3 meters
Angle A = 60
0
Angle B = 60
0
x
y
NOT TO SCALE!
3
Tasks:
1. Drive the robot counterclockwise around the triangular path shown in Figure 1 from the
assumed starting position of the origin of the World Frame. First, do it with an open-loop
strategy as follows:
a. Drive the robot straight at a chosen fixed forward velocity ‘v’ for the estimated time to
complete the first side of the triangle. For this part set 𝜔 = 0.
b. Then, stop the robot at the corner reached and rotate it in place for the estimated time
to point to the next vertex, based on a chosen rotational rate ‘’. This is known as a
stop-turn-go strategy.
c. Similarly, navigate the rest of the triangle.
d. Plot the path of the robot using odometry values.
Note:
• You will use the standard equations of motion for estimating the time for driving
straight and for turning in place:
∆𝑠 = 𝑣 ∗ ∆𝑡
(driving straight)
∆𝜃 = 𝜔 ∗ ∆𝑡
(turn in place)
• This can be considered as an open-loop control strategy since you are not focusing on
specifically driving a desired distance or turning through a desired angle, but using drive
time to achieve these indirectly.
• In fact, the ideal situation would be to have the objective of making it to the next vertex.
However, that would involve simultaneously driving forward and turning (if needed)
towards the next vertex of the triangle. We will not do that right now because we are
not ready yet.
• Do not attempt to tune the driving time based on how the path looks on a particular
trial and re-running the experiment. That is, if the side of the triangular path is too long
or too short, or the turn angles are less than or greater than the desired angle, leave it
alone! Because such a strategy is not practical! Additionally, if the completed path is not
a closed triangle, do not attempt to close it. The idea is to assess the disadvantages of
an open-loop driving strategy, not to fix it through iteration, because again, that is
impractical!
2. Repeat the above task, this time using a closed-loop driving strategy. That is, monitor the
distance the robot travels using odometry, to know when you have completed each side of the
triangle. Similarly, monitor the angle of turn accomplished at each corner, before stopping
the turn. Plot path of the robot using odometry values.
3. Repeat Tasks 1 & 2, this time using the ‘model state’ topic for feedback instead of odometry.
4
Related Information:
• Reading time within your MATLAB programming environment – done in HW1!
• Important - use “reset model poses” between trial runs!
• Angles need to be handled in a special manner – they need to be “unwrapped”. More on this
in a separate video!
Important general advice:
• In any assignment there are always parts whose details are not exactly specified. I am not
referring here to missing information that should have been provided – you must have that
information! I am talking about missing details in the solution strategy, where you need to
use your creativity to find the answers. This is how you develop your own abilities! There is
no process for which every step is fully laid out!
• When you are writing or debugging an algorithm, being calm helps! During the debugging
process, when the program does not work, you can check the code. However, typically it is
better to look at the intermediate results at appropriate points in the program to guide you
on which part of the code you should check for correctness! When you check code, you are
checking inputs. It is possible you discover errors this way, but it is more productive to check
what the code is producing as outputs and then backtrack from there.
• To complete this homework, you might find it useful to build on the code you generated in
response to the requirements for Homework 1. Building on something from before is always
more efficient than starting from the beginning again! In addition, I am providing sample
code that illustrates the basic concept. You can then extend that to complete the work.
Learning Involved:
• What is the difference between open-loop and closed-loop control strategies?
• Why will the robot path (going around the triangle) be open even if we implement a strategy
that specifically calls for returning to the initial robot position?
• What changes need to be made in your program if we wanted to go around the triangle in the
clockwise direction instead?
• Why is angle-unwrapping needed?
• What is the difference between Odometry and GPS?
• Why is it that Odometry eventually fails to track position if we drive long enough?
• The algorithm you are developing can be made more efficient if you use functions. For
example, there are two basic robot moves – go straight and turn-in-place. Therefore, it would
help to write two MATLAB functions that execute these moves, so that you can call them
repeatedly rather than copying the code multiple times. I am not requiring this here but keep
it in mind as a step to improve program efficiency.
5
What to submit
When you respond to the requirements of this homework, focus narrowly on the following
items (and use the numbering scheme for responses!):
1. Task 1: Drive open-loop around triangle
I. Plot of path using odometry. [3]
II. Plot of path using model state. [3]
III. MATLAB code + explanation of algorithm. [4]
2. Task 3: Drive closed-loop around triangle
I. Plot of path using odometry. [3]
II. Plot of path using model state. [3]
III. MATLAB code + explanation of algorithm. [4]
TOTAL: 20
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!