needed skills -- python and math. I have a robot and several boundary devices. The vitual connection of the boundary devices enclose a working area for robot to move around. The robot is able to measure its distances to boundary devices when it is moving, for example, at a first position p1, robot measures the first set of distance data to all boundary devices, then robot travels to next position p2, it measures the distance data again (2nd set of distance data), robot travels again to p3 and measure the distance data again (3rd set of distance data), ... the procedure continues. Please note that robot is only able to measure the distances but it does not know the angles or direcitons of boundary devices. in this regard, robot needs to analyze the change of distance data to know its position with respect to the boundary devices. In order to define robot's position, as you can image, robot may need to move or rotate 2 or 3 times to collect a few sets of distance data? right? I need:
-- a script command robot to move and to cover entire working area. You may image the working area is a room, and i need to robot to travel and to cover entire working area of the room.
-- please do not focus on hardware, since you do not have the hardware.
-- for robot to move, you can just write for example,
forward_5_inch, reverse_6_inch, rotate_right_degrees, ...
and i will tranlate your text to machine language
-- i have the hardware and i am able to collect the distance data, as robot travels inside the working area
-- ideally, i need you to use matplot to plot the moving route, the position of robot with repsect to boundary devices, during each step.
-- while robot is traveling inside the working area, i do not believe you need to store all sets of the distance data, but i do beleive you need to store at least a few sets of distance data,
-- i believe, the keys are (1) how to use a few sets of distance data to define the next move. you shall alwasy use the updated sets of distance data to define the next move (2) how to come out an algorithm to cover entire working area. Robot needs to know what area is already being covered, and what area is not yet visited (3) the plotting so we have visual view of what is going on.
-- i also attach a sample code of mine, and distance data for you to take a look. I write the distance data to a file so I can show you. For your code, you do not need to output the distance data to a file