lecture2_program_fundamentals - Programming Fundamentals...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
9/27/2010 1 Ò Programming Fundamentals Thinking About Programming Ò Roles of the programmer and the robot Ò Programmer: responsible for identifying the task, planning out a solution, then explaining to the robot what it needs to do to reach the goal Ò Robot: responsible for following the instructions it is given and carrying out the plan. the robot only follows the program, it does not think for itself Ò How do we make the robot do what we want? Ò Humans use programming languages to communicate with the robots. Instructions written with these languages are called programs Ò We are using RobotC Planning and Behaviors Ò Begin thinking about the robot’s actions in terms of behaviors Ò First, formulate a plan for the robot to reach the goal Ò Then, translate that plan into a program that the robot can follow Ò The plan will be the sequence of behaviors that the robot needs to follow. The program will be these behaviors translated into a program using the programming language Ò Examine problem Ò Make a broad solution Ò Try to see what the robot needs to do to accomplish the goal Ò Break solution into smaller behaviors Ò Eventually, you’ll reach commands that you can express directly in the programming language
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
9/27/2010 2 Planning and Behaviors Ò Because the steps are still written in English, they
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern