Question
Write a program using Matlab for Bug-2 (Robot): Robot goes towards the goal until it hits an obstacle. The line from the start point to
Write a program using Matlab for Bug-2 (Robot): Robot goes towards the goal until it hits an obstacle. The line from the start point to the goal point is called m-line. When an obstacle is encountered, the robot encircles the obstacle until it hits m-line. If the encountered point on m-line is nearer to the goal than the point that the robot starts following the obstacle then it stops following and starts moving towards the goal. The algorithm is terminated when the goal is reached.
There are several obstacles but here is one of them:
1.obstacle1.txt:
1 4 -8.052000 -6.720000 4.576000 7.933333 1.408000 8.353333 -11.000000 -5.040000 3 1 2 3 0 1
The numbers in the .txt files are obstacles that are given for this project. The robot needs to run successfully for every different obstacle. For more information and to get access to the obstacles' files please check (Project1: Bug Algorithms) http://www.robotmotionplanning.org/TeachingRobotics.html#Project1Bug
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started