Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please implement this exercise using python code in jupyter notebook. The information is below. Can you show the answer/example with a plot as well for
Please implement this exercise using python code in jupyter notebook. The information is below. Can you show the answer/example with a plot as well for the 2 robots? %matplotlib inline import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import sympy sympy.init_printing() from scipy import optimizeRobots: Jupyter notebook/Python3 For this exercise, using a Jupyter notebook. Include any source code, comments and plots as you see fit to answer the questions below and show how you arrived at your answer. The objective is to convince me that the answers you obtain have a basis to it (programmatic and/or visual) and are justified. You have been assigned to be a developer on a team to create an autonomous robot. However, a second team has also been created and you must help your team build a better robot! Both teams use the same playing field to test their robots. The first phase of development involves designing and building the robot, then programming it to move forward for a time of 10 seconds. After building and coding this, both robots demonstrate their work simultaneously on the playing field. However, due to design/build errors the robots, the robots don't go straight! They both veer off course. You have been tasked to determine if and when the robots might collide with each other! NOTE: for purposes of this exercise, assume your robots are very small and can be treated as a single point. The details are shown below: WRITE A CODE PYTHON3 IN JUPYTER THAT SPECIFES THE DETAILS BELOW . Playing Field o 20 feet wide by 18 feet tall o (0, 0) represents the lower left corner of the playing field o (20, 18) represents the upper right corner of the playing field . Your Robot o Velocity: Vo-1 ft/sec o Starting location (x 0, yo 12) o x(t)- xo + (Vat) Other Robot o Velocity: Vo 3 ft/sec o Starting location:(x 20, yo 6) o x(t)-Xo (0.8 Vo t) Then answer the following questions 1. 2. 3. Will any of the robots hit a wall on the playing field? If so, at what location? Do the robot paths intersect and if so, at what location on the playing field do they intersect at? Will the robots collide with each other or will they not collide? If they collide, at what time will the collide in seconds? Which robot veered the furthest from their straight path they were supposed to take? What distance apart are the robots after 10 seconds from there they were supposed to be? 4. Robots: Jupyter notebook/Python3 For this exercise, using a Jupyter notebook. Include any source code, comments and plots as you see fit to answer the questions below and show how you arrived at your answer. The objective is to convince me that the answers you obtain have a basis to it (programmatic and/or visual) and are justified. You have been assigned to be a developer on a team to create an autonomous robot. However, a second team has also been created and you must help your team build a better robot! Both teams use the same playing field to test their robots. The first phase of development involves designing and building the robot, then programming it to move forward for a time of 10 seconds. After building and coding this, both robots demonstrate their work simultaneously on the playing field. However, due to design/build errors the robots, the robots don't go straight! They both veer off course. You have been tasked to determine if and when the robots might collide with each other! NOTE: for purposes of this exercise, assume your robots are very small and can be treated as a single point. The details are shown below: WRITE A CODE PYTHON3 IN JUPYTER THAT SPECIFES THE DETAILS BELOW . Playing Field o 20 feet wide by 18 feet tall o (0, 0) represents the lower left corner of the playing field o (20, 18) represents the upper right corner of the playing field . Your Robot o Velocity: Vo-1 ft/sec o Starting location (x 0, yo 12) o x(t)- xo + (Vat) Other Robot o Velocity: Vo 3 ft/sec o Starting location:(x 20, yo 6) o x(t)-Xo (0.8 Vo t) Then answer the following questions 1. 2. 3. Will any of the robots hit a wall on the playing field? If so, at what location? Do the robot paths intersect and if so, at what location on the playing field do they intersect at? Will the robots collide with each other or will they not collide? If they collide, at what time will the collide in seconds? Which robot veered the furthest from their straight path they were supposed to take? What distance apart are the robots after 10 seconds from there they were supposed to be? 4
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