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.
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...
Related questions
Question
Python code
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY