Shop OBEX P1 Docs P2 Docs Learn Events
Visually interacting with a simulated robot controlled by a Propeller — Parallax Forums

Visually interacting with a simulated robot controlled by a Propeller

HannoHanno Posts: 1,130
edited 2009-04-28 20:26 in Propeller 1
I'm making progress adding an exciting new feature to ViewPort: a simulated world controlled by a program running on the Propeller. The screenshot shows a model of my dancebot being simulated in this "dreamworld". Friction, gravity, and all other physical effects are accurately modeled and are even accelarated by certain graphic cards. Code running on the propeller receives inputs from the simulated world and uses that to control the robot- for example, changing the motor's speed. This helps people improve their real robots by experimenting in a simulated world- with their real control code. In addition, the robot is steered by the position of my face- if I'm in the left side of the window the robot turns left.
A nice way to think about it is that you can either have your robot's code control a real robot or a virtual one- the inputs and outputs should be the same...

I'll demo this at my talk at the Silicon Valley HomeBrew Club this Wednesday (4-29) and at my tech talk at Google in 2 weeks (5-12).
817 x 740 - 177K

Comments

  • simonlsimonl Posts: 866
    edited 2009-04-28 20:26
    Cool! Let me know when you've got a R/C helicopter in the simulation, then I can do hardware-in-the-loop of a Propeller autopilot! (Only slightly kidding!). Well done Hanno.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    You'll always have as many take-offs as landings, the trick is to be sure you can take-off again wink.gif
Sign In or Register to comment.