Introduction to Multimedia

Document Sample
Introduction to Multimedia Powered By Docstoc
					Intelligent Multimedia Technology
Lesson 5: FLEX, Toys and Robots…


Željko Obrenović
CWI, Amsterdam, zeljko.obrenovic@cwi.nl
Anton Eliëns
VU, Amsterdam, eliens@cs.vu.nl


www.cwi.nl/~obrenovi/teaching/imt/
www.cs.vu.nl/~eliens/imt/imt-07.html
                 Agenda
»   A little bit of FLEX
»   A little bit of Firefox extensions
»   A little bit of robots and toys
»   Ideas for final assignments
»   Your presentations
                          FLEX
» Some resources:
   http://www.adobe.com/devnet/flex/?navID=gettingstarted
   http://www.cs.vu.nl/~eliens/media/help-flex.html
   http://www.cs.vu.nl/~eliens/media/example-flex.html
              Firefox plugin
» XPI = ZIP file
» http://www.borngeek.com/firefox/toolbar-tutorial/
» http://www.orablogs.com/duffblog/archives/000536.html
» http://simile.mit.edu/wiki/Java_Firefox_Extension
» Whole Firefox is a plugin
    C:\Program Files\Mozilla Firefox\chrome
      » browser.jar…
                   Some more ideas:
  public class Motion implements MotionListener {
   private static int image = 1;

                    LEGO Mindstorm
   long lastPlay = 0;

   public static void main(String [] args) {
     (new Motion()).run();
import josx.platform.rcx.*;
» Some resources:
   }
public class DistributionSmokeTest {
          Robot … simple service with Bletooth and
 public static void main (String[] args) throws Exception { USB protocols
    private void run() {
      Vision.setImageSize(320, 240);
   LCD.clear();
          http://mindstorms.lego.com/
      Vision.addRectRegion(1, 0, 0, 320, 240);
   TextLCD.print ("SMOKE");
      Vision.addMotionListener(1, this);
          http://mindstorms.lego.com/Overview/
   Thread.sleep(1000); Detector");
      Vision.startViewer("Intruder
   TextLCD.print ("TEST");
    }
          http://www.oreilly.de/catalog/lmstorms/resources/index.html
   Thread.sleep(1000);
 }
 » public void motionDetected(int region) { > 1000) {
} LeJOS, Java for Mindstorm
      if ((System.currentTimeMillis() - lastPlay)
          http://lejos.sourceforge.net/
        lastPlay = System.currentTimeMillis();
===========
        Vision.snapshot("Intruder" + image++ + ".jpg");
   TextLCD.print("DRIVE");
        Vision.playSound("../../Effects/Alarm.wav");
      }
   Motor.A.forward();
    }
  }
   Button.RUN.waitForPressAndRelease();


Motor.A.forward()/backward()/stop()/travel(distance);
Sound.playTone();
        Some more ideas:
           NABAZTAG
» http://www.nabaztag.com/
    http://api.nabaztag.com/, HTTP API
   http://api.nabaztag.com/vl/FR/api.jsp?sn=00039D4022DE
    &token=112231049046144&posleft=0&posright=0&idmessa
    ge=10333&idapp=10
   http://api.nabaztag.com/vl/FR/api.jsp?.......nabcast=52&
    nabcasttitle=myttsinmynabcast&tts=the+nabcast
» http://en.wikipedia.org/wiki/Nabaztag
» http://nabaztools.sourceforge.net/
   “Hacking” IP interface to NABAZTAG
       Some more ideas:
          Sony AIBO
» http://support.sony-europe.com/aibo/
» http://en.wikipedia.org/wiki/AIBO
» APIs, protocols…