You need to guide a robot from the red dot on the left to the green dot on the right, avoiding the blue walls along the way. To do this, you must feed it a series of commands of the form "turn_ degrees and move units forward". Angles are measured in degrees, with positive angles turning counterclockwise, and negative angles turning clockwise. All turns are relative to the robot's current direction when it turns. The grid marks 1 unit squares. From the red starting dot, with the robot facing directly to the right, issue your commands: (all commands should be given as decimal values) Move 1: Turn degrees and move units forward Move 2: Turn degrees and move units forward Move 3: Turn degrees and move units forward Move 4: Turn degrees and move units forward To be successful, your robot must end up within the green ending dot, and not collide with any walls.

icon
Related questions
Question

I'm confused with this exercise. my topic is vectors and angles. i supposed this exercise must provide the angles and units to move the red dot across the picture. it must give the different angles and units the red dot must complete in order to get to the other side

You need to guide a robot from the red dot on the left to the green dot on the right, avoiding the
blue walls along the way.
To do this, you must feed it a series of commands of the form "turn_degrees and move.
units forward". Angles are measured in degrees, with positive angles turning counterclockwise, and
negative angles turning clockwise. All turns are relative to the robot's current direction when it turns.
The grid marks 1 unit squares.
From the red starting dot, with the robot facing directly to the right, issue your commands: (all
commands should be given as decimal values)
Move 1: Turn
degrees and move
units forward
Move 2: Turn
degrees and move
units forward
Move 3: Turn
degrees and move
units forward
Move 4: Turn
degrees and move
units forward
To be successful, your robot must end up within the green ending dot, and not collide with any
walls.
Transcribed Image Text:You need to guide a robot from the red dot on the left to the green dot on the right, avoiding the blue walls along the way. To do this, you must feed it a series of commands of the form "turn_degrees and move. units forward". Angles are measured in degrees, with positive angles turning counterclockwise, and negative angles turning clockwise. All turns are relative to the robot's current direction when it turns. The grid marks 1 unit squares. From the red starting dot, with the robot facing directly to the right, issue your commands: (all commands should be given as decimal values) Move 1: Turn degrees and move units forward Move 2: Turn degrees and move units forward Move 3: Turn degrees and move units forward Move 4: Turn degrees and move units forward To be successful, your robot must end up within the green ending dot, and not collide with any walls.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 6 images

Blurred answer