Bota Dynamics is a robotic company that develops robots as well as software for robots. They are developing a robot with automatic control that can move the robot to a location automatically based on given target movement location data. In order to provide such movement, a program that can calculate the turning angle and travel distance based on the robot current location and target location from point to point is required. You have been assigned by Bota Dynamics to develop such programs using a sample of coordinate data in Figure 1. Target location Target location Target location (2,2) art location (4,3) (3,1) (0,0) Target location (2,-2) Target location (4,-2) Figure 1 Robot Path Planning By importing any appropriate mathematical library in Python. The equation to help you develop the program is below: r = sqrt( (xtarget — xcurrent)² + (ytarget — ycurrent)²) - 0 = tan ((ytarget - ycurrent)/(xtarget - xcurrent)) For the angle (0), use function atan2 in mathematical library. Your program would require the user to key in the current and target movement locations and should calculate the robot action instruction steps (turning angle and travel distance). The target location alternately will be the current location if the next movement to another location will be made. Based on the given descriptions, you are required to build a program by applying modular programming, repetition statements and any other related techniques based on the above requirement. You are required to use separate functions for calculations and output. Figure 2 shows a part of the expected input and output for the program execution.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Python code
Bota Dynamics is a robotic company that develops robots as well as software for robots. They
are developing a robot with automatic control that can move the robot to a location automatically
based on given target movement location data. In order to provide such movement, a program
that can calculate the turning angle and travel distance based on the robot current location and
target location from point to point is required. You have been assigned by Bota Dynamics to
develop such programs using a sample of coordinate data in Figure 1.
Target location
(4,3)
Target location
Target location
(2,2)
(3,1)
Start location
(0,0)
Target location
(2,-2)
Target location
(4,-2)
Figure 1 Robot Path Planning
By importing any appropriate mathematical library in Python.
The equation to help you develop the program is below:
r = sqrt((xtarget - xcurrent)² + (ytarget - ycurrent))
-1
e = tan ((ytarget - ycurrent)/(xtarget xcurrent))
For the angle (0), use function atan2 in mathematical library. Your program would require the
user to key in the current and target movement locations and should calculate the robot action
instruction steps (turning angle and travel distance). The target location alternately will be the
current location if the next movement to another location will be made. Based on the given
descriptions, you are required to build a program by applying modular programming,
repetition statements and any other related techniques based on the above requirement. You are
required to use separate functions for calculations and output. Figure 2 shows a part of the
expected input and output for the program execution.
Transcribed Image Text:Bota Dynamics is a robotic company that develops robots as well as software for robots. They are developing a robot with automatic control that can move the robot to a location automatically based on given target movement location data. In order to provide such movement, a program that can calculate the turning angle and travel distance based on the robot current location and target location from point to point is required. You have been assigned by Bota Dynamics to develop such programs using a sample of coordinate data in Figure 1. Target location (4,3) Target location Target location (2,2) (3,1) Start location (0,0) Target location (2,-2) Target location (4,-2) Figure 1 Robot Path Planning By importing any appropriate mathematical library in Python. The equation to help you develop the program is below: r = sqrt((xtarget - xcurrent)² + (ytarget - ycurrent)) -1 e = tan ((ytarget - ycurrent)/(xtarget xcurrent)) For the angle (0), use function atan2 in mathematical library. Your program would require the user to key in the current and target movement locations and should calculate the robot action instruction steps (turning angle and travel distance). The target location alternately will be the current location if the next movement to another location will be made. Based on the given descriptions, you are required to build a program by applying modular programming, repetition statements and any other related techniques based on the above requirement. You are required to use separate functions for calculations and output. Figure 2 shows a part of the expected input and output for the program execution.
Insert x coordinate for Current Location: 0
Insert y coordinate for Current Location: 0
Location Coordinate Input
===
Insert x coordinate for Target Location: 2
Insert y coordinate for Target Location: 2
Robot Insruction Step
=====
Forward: 2.83
Turn : 0.79
Would you like to move to next location ? Yes=1, No=0:1
Location Coordinate Input
Insert x coordinate for Target
Location: 2
Insert y coordinate for Target Location: -2
Robot Insruction Step
===
Forward: 4.0
Turn
: -1.57
Would you like to move to next location ? Yes=1, No=0:
Note: Highlighted in blue are inputs
Figure 2: Expected Input and Output Format
Transcribed Image Text:Insert x coordinate for Current Location: 0 Insert y coordinate for Current Location: 0 Location Coordinate Input === Insert x coordinate for Target Location: 2 Insert y coordinate for Target Location: 2 Robot Insruction Step ===== Forward: 2.83 Turn : 0.79 Would you like to move to next location ? Yes=1, No=0:1 Location Coordinate Input Insert x coordinate for Target Location: 2 Insert y coordinate for Target Location: -2 Robot Insruction Step === Forward: 4.0 Turn : -1.57 Would you like to move to next location ? Yes=1, No=0: Note: Highlighted in blue are inputs Figure 2: Expected Input and Output Format
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY