Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

result for the first set of data should be: The robot should turn -80.56 degrees with a magnitude of 0.98) This is a programming assignment.

image text in transcribed

result for the first set of data should be: The robot should turn -80.56 degrees with a magnitude of 0.98)

This is a programming assignment. Given a robot equipped with 6 Infrared sensors as shown in the picture below (0=45, 02 = 30, 0;=-30, 6:=-45. Os=-130,&=130%), write a Python program that computes the magnitude of drive and direction of turn of the robot movement based on sensor readings. The sensor readings for three consecutive time steps are given in a data file: readings.dat. (You may download the data file from the course page). For each set of 6 sensor readings, your program should output the turn direction and magnitude in the form: the robot should turn-25 degrees with a magnitude of 0.35). Use linear magnitude profile for the potential fields implemented for the motor schema. MAX DISTANCE of the sensor is set to D=10 cm. Name your program pfield.py. Your program should include comments for logically related code segments. It should also have program heading at the beginning of the program which includes information such as the name of the programmer, due date, description of this program. IR6 IRI IR2 front back IR3 IRS IR4 readings.dat content: 5 25 20 28 25 2 564 8 28 25 45 20 28 8 12 This is a programming assignment. Given a robot equipped with 6 Infrared sensors as shown in the picture below (0=45, 02 = 30, 0;=-30, 6:=-45. Os=-130,&=130%), write a Python program that computes the magnitude of drive and direction of turn of the robot movement based on sensor readings. The sensor readings for three consecutive time steps are given in a data file: readings.dat. (You may download the data file from the course page). For each set of 6 sensor readings, your program should output the turn direction and magnitude in the form: the robot should turn-25 degrees with a magnitude of 0.35). Use linear magnitude profile for the potential fields implemented for the motor schema. MAX DISTANCE of the sensor is set to D=10 cm. Name your program pfield.py. Your program should include comments for logically related code segments. It should also have program heading at the beginning of the program which includes information such as the name of the programmer, due date, description of this program. IR6 IRI IR2 front back IR3 IRS IR4 readings.dat content: 5 25 20 28 25 2 564 8 28 25 45 20 28 8 12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

=+Have they changed the way employees view IP?

Answered: 1 week ago