Git Product home page Git Product logo

cozmo-movement-demo's Introduction

Cozmo-Movement-Demo

This is a demo for Cozmo movement, speech, and animations. Read through the sample code for examples of how to get Cozmo to move forward, speak, turn, and perform an animation. Once you understand the code, think about how to accomplish the various challenges. In class on Thursday, you will break up into groups, and either fork this repository (and name your fork based on the variation you are working on) or create a new repository and include information on your challenge. These variations are designed to demonstrate ways to control Cozmo's movement, and may be useful in projects.

  1. Speech, Movement and Animation a. Sample Code: i. Move forward ii. Turn 90 degrees (left and right) iii. Spin in a circle iv. Perform a behavior

    b. Challenges (students form 5 groups...when you write your programs, be sure to document what "one unit" is!):

    i.	Variation 1:
        1.  Cozmo is at (0,0) and moves to (x,y) moving vertically, then horizontally, and then performs an animation
        2.  Cozmo is at (a,b) and moves to (x,y) moving vertically, then horizontally, and then performs an animation
    ii. Variation 2:
        1.	Cozmo is at (0,0) and moves to (x,y) moving horizontally, then vertically, and then performs an animation
        2.	Cozmo is at (a,b) and moves to (x,y) moving horizontally, then vertically, and then performs an animation            
    iii.	Variation 3:
        1.	Cozmo is at (0,0) and moves to (x,y) alternating one unit vertically and then one unit horizontally until it can only move  vertically or horizontally, and then performs an animation
        2.	Cozmo is at (a,b) and moves to (x,y) alternating one unit vertically and then one unit horizontally until it can only move vertically or horizontally, and then performs an animation
        
    iv.	Variation 4:
        1.	Cozmo is at (0,0) and moves to (x,y) alternating one unit horizontally and then one unit vertically until it can only move vertically or horizontally, and then performs an animation
        2.	Cozmo is at (a,b) and moves to (x,y) alternating one unit horizontally and then one unit vertically until it can only move vertically or horizontally, and then performs an animation
        
    v.	Variation 5 (we will try to do the math, and recognize the problems with generalizing this idea…):
        1.	Cozmo moves in a circle of radius r clockwise once, and then performs an animation
        2.	Cozmo moves in a circle of radius r clockwise k times, and then performs an animation
        3.	Cozmo moves in a circle of radius r counter-clockwise once, and then performs an animation
        4.	Cozmo moves in a circle of radius r counter-clockwise k times, and then performs a behavior
    

cozmo-movement-demo's People

Contributors

hekemp avatar szecsei avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.