




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、autonomous robot obstacle avoidance using a fuzzy logic control schemewilliam martinsubmitted on december 4, 2009cs311 - final project1. introductionone of the considerable hurdles to overcome, when trying to describe a real-world control scheme with first-order logic, is the strong ambiguity found
2、in both semantics and evaluations. although one option is to utilize probability theory in order to come up with a more realistic model, this still relies on obtaining information about an agents environment with some amount of precision. however, fuzzy logic allows an agent to exploit inexactness i
3、n its collected data by allowing for a level of tolerance. this can be especially important when high precision or accuracy in a measurement is quite costly. for example, ultrasonic and infrared range sensors allow for fast and cost effective distance measurements with varying uncertainty. the propo
4、sed applications for fuzzy logic range from controlling robotic hands with six degrees of freedom1 to filtering noise from a digital signal.2 due to its easy implementation, fuzzy logic control has been popular for industrial applications when advanced differential equations become either computatio
5、nally expensive or offer no known solution. this project is an attempt to take advantage of these fuzzy logic simplifications in order to implement simple obstacle avoidance for a mobile robot. 2. physical robot implementation2.1. chassis and sensorsthe robotic vehicles chassis was constructed from
6、an excalibur ei-msd2003 remote control toy tank. the device was stripped of all electronics, gears, and extraneous parts in order to work with just the empty case and two dc motors for the tank treads. however, this left a somewhat uneven surface to work on, so high-density polyethylene (hdpe) rods
7、were used to fill in empty spaces. since hdpe has a rather low surface energy, which is not ideal for bonding with other materials, a propane torch was used to raise surface temperature and improve bonding with an epoxy adhesive. three sharp gp2d12 infrared sensors, which have a range of 10 to 80 cm
8、, were used for distance measurements. in order to mount these appropriately, a 2.5 by 15 cm piece of aluminum was bent into three even pieces at 135 degree angles. this allows for the ir sensors to take three different measurements at 45 degree angles (right, middle, and left distances). this senso
9、r mount was then attached to an hdpe rod with mounting tape and the rod was glued to the tank base with epoxy. since the minimum distance that can be reliably measured with these sensors is 10 cm, the sensors were placed about 9 cm from the front of the vehicle. this allowed measurements to be taken
10、 very close to the front of the robot.2.2. electronicsin order to control the speed of each motor, pulse-width modulation (pwm) was used to drive two l2722 op amps in open loop mode (fig. 1). the high input resistance of these ics allow for the motors to be powered with very little power draw from t
11、he pwm circuitry. in order to isolate the motors power supply from the rest of the electronics, a 9.6 v nicad battery was used separately from a standard 9 v that demand on the op amps led to a small amount of overheating during continuous operation. this was remedied by adding small heat sinks and
12、a fan to the forcibly disperse heat. fig. 1. the control circuit used for driving each dc motor. note that the pwm signal was between 0 and 5 v.2.3. microcontrollercomputation was handled by an arduino duemilanove board with an atmega328 microcontroller. the board has low power requirements and modi
13、fications. in addition, it has a large number of prototyping of the control circuit and based on the wiring language. this board provided an easy and low-cost platform to build the robot around.3. fuzzy control scheme forin order to apply fuzzy logic to the robot to interpret measured distances. whi
14、le the final algorithm depended critically on the geometry of the robot itself and how it operates, some basic guidelines were followed. similar research projects provided both simulation results and ideas for implementing fuzzy control.3,4,53.1. membership functionsthree sets of membership function
15、s were created to express degrees of membership for distances, translational speeds, and rotational speeds. this made for a total of two input membership functions and eight output membership functions (fig. 2). triangle and trapezoidal functions were used exclusively since they are quick to compute
16、 and easy to modify. keeping computation time to a minimum was essential so that many sets of data could be analyzed every second (approximately one every 40 milliseconds). the distance membership functions allowed the distances from the ir sensors to be quickly fuzzified, while the eight speed memb
17、ership functions converted fuzzy values back into crisp values.3.2.rule baseonce the input data was fuzzified, the eight defined fuzzy logic rules (table i) were executed in order to assign fuzzy values for translational speed and rotation. this resulted in multiple values for the each of the fuzzy
18、output components. it was then necessary to take the maximum of these values as the fuzzy value for each component. finally, these fuzzy output values were defuzzified using the max-product technique and the result was used to update each of the motor speeds.(a)(b)(c)fig. 2. the membership functions
19、 used for (a) distance, (b) translation speed, and (c) rotational speed. these functions were adapted from similar work done in reference 3.4. resultsthe fuzzy control scheme allowed for the robot to quickly respond to obstacles it could detect in its environment. this allowed it to follow walls and
20、 bend around corners decently without hitting any obstacles. however, since the ir sensors measurements depended on the geometry of surrounding objects, there were times when the robot could not detect obstacles. for example, when the ir beam hit a surface with oblique incidence, it would reflect aw
21、ay from the sensor and not register as an object. in addition, the limited number of rules used may have limited the dynamics of the robots responses. some articles suggest as many as forty rules6 should be used, while others tend to present between ten and twenty. since this project did not explore
22、 complex kinematics or computational simulations of the robot, it is difficult to determineexactly how many rules should be used. however, for the purposes of testing fuzzy logic as a navigational aide, the eight rules were sufficient. despite the many problems that ir and similar ultrasonic sensors
23、 have with reliably obtaining distances, the robustness of fuzzy logic was frequently able to prevent the robot from running into obstacles.5. conclusionthere are several easy improvements that could be made to future iterations of this project in order to improve the robots performance. the most dr
24、amatic would be to implement the ir or ultrasonic sensors on a servo so that they could each scan a full 180 degrees. however, this type of overhaul may undermine some of fuzzy logics helpful simplicity. another helpful tactic would be to use a few types of sensors so that data could be taken at mul
25、tiple ranges. the ir sensors used in this experiment had a minimum distance of 10 cm, so anything in front of this could not be reliably detected. similarly, the sensors had a maximum distance of 80 cm so it was difficult to react to objects far away. ultrasonic sensors do offer significantly increa
26、sed ranges at a slightly increased cost and response time. lastly, defining more membership functions could help improve the rule base by creating more fine tuned responses. however, this would again increase the complexity of the system.thus, this project has successfully implemented a simple fuzzy
27、 control scheme for adjusting the heading and speed of a mobile robot. while it is difficult to determine whether this is a worthwhile application without heavily researching other methods, it is quite apparent that fuzzy logic affords a certain level of simplicity in the design of a system. further
28、more, it is a novel approach to dealing with high levels of uncertainty in real-world environments.6. references1 ed. m. jamshidi, n. vadiee, and t. ross, fuzzy logic and control: software and hardware applications, (prentice hall: englewood cliffs, nj) 292-328.2 ibid, 232-261.3 w. l. xu, s. k. tso,
29、 and y. h. fung, fuzzy reactive control of a mobile robot incorporating a real/virtual target switching strategy, robotics and autonomous systems, 23(3), 171-186 (1998).4 v. peri and d. simon, “fuzzy logic control for an autonomous robot,” 2005 annual meeting of the north american fuzzy information
30、processing society, 337-342 (2005).5 a. martinez, e. tunstel, and m. jamshidi, fuzzy-logic based collision-avoidance for a mobile robot, robotica, 12(6) 521527 (1994).6 w. l. xu, s. k. tso, and y. h. fung, fuzzy reactive control of a mobile robot incorporating a real/virtual target switching strateg
31、y, robotics and autonomous systems, 23(3), 171-186 (1998).采用模糊逻辑控制使自主机器人避障设计william martin 威廉马丁submitted on december 4, 2009 提交于2009年12月4日cs311 - final project cs311 -最终项目1. 1 introduc引言 one of the considerable hurdles to overcome, when trying to describe a real-world 其中一个很大的障碍需要克服,当试图用控制逻辑一阶来描述一个真实
32、世界设计在发现在这两个语义evaluations.评价中control scheme with first-order logic, is the strong ambiguity found in both semantics and设计设计设计是个强大的模糊区。although one option is to utilize probability theory in order to come up with a mo虽然一个方案是利用概率论,以便得到一个更realistic model, this still relies on obtaining information about
33、 an agents environment with some现实的模型,这种获得信息的方法的精度仍然依赖于外部环境amount of precision.。然而,在其收集data by allowing for a level of tolerance.数据的公差允许的范围内,模糊逻辑允许利用不精确的间接方法来实现。在需要高精度or accuracy in a measurement is quite costly.测量时它是相当昂贵的。例如,超声波和红外线传感器在其距离内allow for fast and cost effective distance measurements wit
34、h varying uncertaint允许快速和有效的测量但其测量结果存在很大的不确定性。模糊逻辑控制的应用范围从利用六自由度1控制机器人手臂到从数字信号2中过滤噪音。2due to its easy implementation, fuzzy logic control has由于其易于实现,模糊逻辑控制been popular for industrial applications when advanced differential equations become either一直流行在工业应用中,尤其是高级微分方程computationally expensive or offer
35、 no known solution.计算复杂或难以解决时。这个项目企图利用advantage of these fuzzy logic simplifications in order to implement simple obstacle avoidance简化模糊逻辑,以实现移动机器人的简单避障for a mobile robot.。2. 2 机器人具体实现 2.1. 2.1 底盘和传感器 the robotic vehicles chassis was constructed from an excalibur ei-msd2003 remote 机器人汽车的底盘由excalibur
36、 msd2003远程control toy tank.控制玩具坦克构成。该装置去除了所有电子,齿轮和其他多余的部分,只留下了个空架和两个带动坦克履带的直流电动机。然而,这使得它的表面somewhat uneven surface to work on, so high-density polyethylene (hdpe) rods were used to有些不平滑,所以用高密度聚乙烯(hdpe)棒来fill in empty spaces.填补空白处。由于高密度聚乙烯具有较低的表面能,当与其他材料粘接时它并不理想,所以用一丙烷棒与环氧粘合剂来提高表面温度,提高易焊接能力。three sha
37、rp gp2d12 infrared sensors, which have a range of 10 to 80 cm, were used for 三夏普gp2d12红外传感器用于测量距离,其测量范围是10至80厘米,分别。为了更好安装,将一块2.5*15厘米铝被弯曲成3个135度角的小块。用户既可以将红外传感器采取三种(右,中,左)不同的测量距离分别是45度角。这种传感器通过安装带和高密度聚乙烯棒安装到坦克的底部。由于可靠地最小测量距离是10厘米,传感器放置在距离小车前面约9厘米处。这使得measurements to be taken very close to the front
38、of the robot.测量点非常接近机器人的前面。2.2. 2.2 电子器件in order to control the speed of each motor, pulse-width modulation (pwm) was used to 为了控制电机的速度,脉冲宽度调制(pwm)用来驱动两个l2722运算放大器以使其工作在开环模式(图1)。ic的高输入电阻使马达从供电的pwm电路中得到非常小功率。为了使电机的供电与其他器件的供电相分开,专门一个9.6 v镍镉电池为电机供电,而其余的电子器件用一个标准的9伏的电源供电。这样运算放大器在持续工作时就产生了很少的过热。这部分热通过一个小
39、热槽和一个散热风扇使其保持平衡。fig. 图1.控制电路用于驱动每个直流电动机注:pwm信号电压在 between 0 and 5 v.0至5v之间。 2.3. 2.3 微控制器 computation was handled by an ardu 计算是由arduino duemilanove板和atmega328微控制器完成的。该电路板具有低功耗和支持原始pwm信号的特点。此外,它还有一个适应快速变化的输入端。arduino的编程语言具有c语言的形式。这个电路板提供了简易低成本的机器人开发电路。3. 3 避障的模糊控制方案 in order to apply fuzzy logic to
40、the rob 为了将模糊逻辑应用于机器人运作,而开发了一个诠释测量距离的设计。虽然最终的算法在很大程度上取决于of the robot itself and how it operates, some basic guidelines were followed.该机器人本身以及它如何运作,但还是要遵循一些基本准则的。类似的研究项目既提供模拟结果及模糊控制的执行方法。3,4,53,4,53.1. 3.1 附属功能 three sets of membership functions were created to express degrees of membership for 由此引出了
41、三种附属功能,它们分别是测量distances, translational speeds, and rotational speeds.距离,平移速度和旋转速度。 this made for a total of two input 他们由2各输入隶属函数和8个输出隶属函数(图2)组成。三角形和梯形函数是专用的,因为它们计算速度快,易于修改。保持计算时间到最低限度是必要的,以便多组数据每秒(大约每40毫秒/个)都可以得到分析。距离隶属函数可以使来自距离红外传感器的距离信息迅速“模糊化”,而8速模糊值函数将其转换回准确的数值。 3.2.rule base 3.2 基本规则once the in
42、put data was fuzzified, the eight defined fuzzy logic rules (table i) were 一旦输入数据模糊化,模糊逻辑定义的8个规则(表一)就被执行,以便将模糊值分配给平移速度和旋转速度。这导致每个组件的模糊输出有多个值。 it was then necessary to take the 因此有必要采用每个组件的最大值作为模糊值。最后,通过最大输出技术将这些模糊输出值“解模糊”,其结果是用来更新每个马达的速度。 5 (a) (一) (b) (二) (c) (三) fig. 图2.附属函数分别用来测量(1)距离,(二)翻译速度,以及(
43、c)转动速度。 these functions were adapted from similar work done in reference 3. 这些函数从参考文献3类似的内容中借鉴而来。 6 table i. the fuzzy logic rule base used for the control scheme 表1 用于控制的模糊逻辑规则库 4. 4 结果 the fuzzy control scheme allowed for the robot to quickly respond to obstacles it could 该设计使模糊控制的机器人能够迅速回应检测到的障碍。
44、这使得它能沿着墙壁和角落行动而不会撞击到任何障碍物。然而,由于红外传感器的尺寸取决于周围物体几何形状,很多时候机器人也无法检测到障碍物。例如,当红外线光束击中地面的倾斜处事,则反映出远离传感器和不认为是一个障碍对象。此外,使用有限数量的规则可能限制机器人的一些反应。有些文章建议多达40条规则应加以使用,而另一些倾向于10和20条之间。由于该项目不探索复杂的机器人运动学或模拟计算,以至于它是难以确定exactly how many rules should be used到底有多少规则应该被使用。但是,作为一个模糊逻辑的宗旨测试导航助手,八个规则就足够了。尽管有许多相似的问题,ir和超声波传感器的距离有可靠地获取途径,鲁棒性模糊逻辑通常是能够能防止机器人跑向障碍物。5.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年企业战略变革试题及答案
- 伪随机数生成考试考题及答案
- 抖音双十一活动策划方案
- 2025年云计算应用考试试题及答案
- 计算机技术员考试试题及答案概述
- 项目合同协议书
- 新疆出入境边防检查总站所属事业单位2025年度公开招聘笔试和合格分数线笔试历年典型考题及考点剖析附带答案详解
- 公共关系技巧的训练计划
- 行政法学的评估标准及试题及答案
- 网络问题识别与试题及答案
- 林下经济产业项目可行性研究报告
- 《深入了解中信建投》课件
- 2025年全民营养周科学实现吃动平衡健康中国营养先行课件
- 键盘采购合同协议
- 银泰证券公司融资融券业务方案设计
- 2025年高校教师岗前培训《高等教育学》考试模拟试卷及答案(共五套)
- 湖南省张家界市慈利县实验高中-奋进关键期跨越分水岭-高二下开学家长会【课件】
- 2025年湖北省建设投资集团有限公司招聘笔试参考题库含答案解析
- 2025年中国证券融资融券行业市场调查研究及投资前景预测报告
- 鱼跃前滚翻单元计划-2024-2025学年人教版体育与健康六年级上册
- DB32∕T 525-2010 学生公寓用纺织品
评论
0/150
提交评论