Humanoids 16-264
Robosapien
Mark Schumacher & Tristan Trtuna


Our Robosapian project has our Robosapien playing golie on a robot soccer field. Our Robosapien has three primitives to block an oncomming shot. It decides which permative to use based on wheather the ball is comming down the middle, from the left, or from the right. A USB camera is used to determine the location of the ball, as well as the timeing of when to start the permatives.
Since we were unable to get OpenCV working, we let the Robosapien know what permative to use, and when to begin the excutation of the permative.

A image of our setup.

The simpliest permative is when the ball is comming right down the center. In order to block the ball, the Robosapien simply walks forward.

Middle Block Video

The code for this without using video feedback is quite simple since its the easiest permative.
Note use in our code location 1 is the left, location 2 is the middle, and location 3 is the right. All locations are from the point of view of the picture shown above, (as if you are shooting the ball). We used this orientation since it is the same one used in the Robosapien code.

Middle Block Code

if(location==2)     // center
{
myRobosapien.sendCode(Robosapien.Walk_Forward);
Thread.sleep(300);     // wait 3 seconds
myRobosapien.sendCode(Robosapien.Stop_Code);
}

The location int is initially initialized to 0, this code assumes that the OpenCV will change the location accordingly and tell the program when to begin the permative.

When the ball is coming from the left the Robosapien leans left to block the ball, then uses the pick up command to knock it out of the way, then procedes to walk forward in case the ball is still infront.
When blocking to the right the permative is the same, except it's to the left instead of the right. On the left block video the Robosapien never walks forward because the bluetooth failed to send the command. Since the Robosapien blocked the ball, we didn't feel the need to run the test again.

Left Block Video
Right Block Video

Left Block Code

if(location==1)     //left
{
for(int i=0; i<300; i++)
{
myRobosapien.sendCode(Robosapien.Tilt_Body_Left);
Thread.sleep(1);
}
myRobosapien.sendCode(Robosapien.Left_Hand_Pickup);
Thread.sleep(100);     //wait one second
myRobosapien.sendCode(Robosapien.Walk_Forward);
Thread.sleep(100);     //wait one second
myRobosapien.sendCode(Robosapien.Stop_Code);
}

Right Block Code

if(location==3)     //right
{
for(int i=0; i<300; i++)
{
myRobosapien.sendCode(Robosapien.Tilt_Body_Right);
Thread.sleep(1);
}
myRobosapien.sendCode(Robosapien.Right_Hand_Pickup);
Thread.sleep(100);     //wait one second
myRobosapien.sendCode(Robosapien.Walk_Forward);
Thread.sleep(100);     //wait one second
myRobosapien.sendCode(Robosapien.Stop_Code);
}


(C) Mark Schumacher
B.S. Mechanical Engineering Class 2008
Carnnegie Mellon University
Email: mschumac_at_andrew.cmu.edu
xeex6652401 Ian Carey In the mix at Big City Beats (24 june 2006) Various Artists Musiche Per Sognare (Jazz edition) Various Artists Diamona Series volume 4 Afroqueens Orphea Ben Sims Remanipulator (INGOMA026) 3 Guys Never in 3 Guys Never in Vodk Sa Vodk Gen la Darko and Julez Wednesday am Thomas Dimuzio Slew Various Artists In this Cold Terrific Room 1 Careina Williams Perfect Lady 2nd Shift An Evening in the Listening Room DJ Paulette Club FG (11 august 2006) Various Artists Euro Xclusive 06-42 Snoop Dogg Vato / Candy DJ Paulette Club FG (11 august 2006) Various Artists Euro Xclusive 06-42 Snoop Dogg Vato / Candy Solid Steel Coldcut radio mix (Jun 30) Joanne Brackeen Aft Resonator Never Trust a Hipster Charlie Cruz Mas de Mi Jelle Faber Hi-Life (Skechers) Street Kingz Crown Gang Family John Johnson City EP1 The Gossip Standing in the Way of Control (remixes) Naomi Aquarium Trickski The Bat EP Lords Assistants Thoughts and Memories Claudja Barry I Will Stand Shedding Light Void Karl Frierson Soulprint Leviticus Burial Logistics remix Smith and Mighty Big World Small World Oh No not Stereo Oh No not Stereo Vinny Troia presents Jaidene Veda Flow (remixes) Newdeal Fudge Misc Goetterfunken (KLANG112) Barthezz featuring Delerium Silence on the Move Flora Purim Stories to Tell Bailey Intabeats (29 july 2007) Pete Murray See the Sun (Special edition) Da Booka Can You Feel the Rhythm (remixes) Tom Petty Highway Companion Wynton Marsalis The Midnight Blues (Standard Time volume 5) 2Pac The Prophet Returns Barraka Song to the Siren (disc 2) Bennee Gee presents Back to the Roots Trilogy Kudai Sin Despertar Boris Dlugosch In the mix (6 october 2006) The Steelheads Points of Departure Nature One Allstars Nature One Theme 98 Pete Fountain Cheek to Cheek Dan I bw Imperial Sound Army New Name Eric Clapton Live in Great Smoke Various Artists Sister Bossa volume 7 Junebug Slim Gangsta Love Westbam Live at Beach Party Robbie Williams Rudebox Natalie Dont Say Goodbye Steen1 Nottinghamin Paskasheriffi Cdrep Low Budget Magnasound DJ Fatal 2Pac Tribute mix on 100.3 the Beat Co Cain Roll Dat Shit remixes Savon Behind the Sun 2006 (I Stil Believe) Steve Morley Sacred City Robbie Rivera Dasding Plattenleger (27 august 2006) Various Artists Ritmo de Bacardi presents B Wunder Schatten und Licht Nathalie de Borah Crying Tuluyhan Ugurlu A World Capital Istanbul Infexious Let Me Fly Sunrise Festival 2006 Sound Players live (22 july 2006) Miro By Your Side (disc 1) Audio Fiction Songs in the Key of Orange Alert The Brand New Heavies I Dont Know Why I Love You (including 4 Hero remixes) 2 Bit Pie 2 Pie Island Arnold W Shim Sunset in Late Autumn Papa Roach The Paramour Sessions Mel Project featuring Tony Whistles Song Keynos vs Sticky Dubs volume 1 Riva Time is A Healer Various Artists Station Reggae 2 (Hits Compilation) John Juke Logan and Doug Macleod Live as it Gets Various Artists Funkinn Rappin Various Artists Electro Bangin volume 1 mixed by DJ Magix and DJ Johnny V Beethoven Performed by the Northstar Orchestra Conjunto Massalia Bailadora Thesis Sahib Loved Ones DJ Goombay Shake it Up Various Artists Pop Express 680p High and Mighty Color Enrai Tooku Ni Aru Akari Various Artists Systemic 02 Various Artists Euro Xclusive 06-45 9th Wonder Brooklyn in My Mind (Crooklyn Dodgers III) Moogue China Girl Terry Lee Brown Junior Karambolage Roma Tanaka Not Alone Jr Get Money Minimalistix Close Cover (including Twin Peaks Theme vocal mix) Diddy featuring Nas and Cee Lo Everything I Love Shabazz the Disciple The Passion of the Hood Christ Dave Seaman Dasding Plattenleger (8 october 2006) Stereo MCs Deep Down and dirty Various Artists Worlds Dance Music October part 2 Deep Purple Perfect Strangers Various Artists CD Pool Dance November 06 Da Rittler Platinum Street Muzic Nancy Linder My Favorite Hebrew Songs Sanproject Whatever (Crystal Clear) Popnoname I Want You for Popnoname DJ Tiesto Suburban Train (us mixes) Kammerflimmer Kollektief Remixed Seven Star Alternate Invention Ultra 5 featuring J.Cee Potion The Bangles Live in Alhambra Malcom B Dancefloor Session (22 september 2006) Satoshi Tomiie Live at Sonar (14 june 2006) Barbara Solis and Kevin The Mystical Music of Andalucia Kate Simko Strumm EP Sun Gone (including Ralphi Rosario dub mix) Sunday Club Healing Dream Al.Ka. Project Stop to the Drug (MKN004) En-Motion Getting Away with it (including Thrillseekers remix) Miki Ndoye Tuki Various Artists Fargo Records Glass Candy Yes Music Pastaboys Limit EP Han Jung Min My Tronica Recall IV Aesthetic EP volume 1 Aquagen The Pipes are Calling (promo CDR) Black Code Honey Baby (GRC061) Dub TAO Season dub Luciano teen of A King Slow Train Soul Santimanitay Various Artists DJ Kaoris Inmix II Chris Aidy Connected volume 1 Tomte Live at Fritz radio Berlin (26 january 2006) Markus Schaper Lounge (13 august 2006) Groundation Upon the Bridge Quivah Break the Hold Kreeps All I Wanna Do is Break Some Hearts William Hawk Say Good Bye Phase Encoder Fusion Paragod Fever Transponder vs Mic E-Infinity Winston Francis bw Joseph Cotton and Earl Heptones Lets Go to Zion Roots Hi-Tek Players featuring Crispy Horns Section Jah Warning Nashville Ravers Indischer Tanz Sterling Void featuring Paris Brightledge Its Alright Various Artists Fusion Jazz Rock and Groove Rapid Eye Circa Antillas featuring Clannad I Will Find You Y-Decibel Calix EP Various Artists Universal radio Delivery 58 808 State Lift (Open Your Mind) Anonamas Truth Thru Fiction Havannah Its Gonna Be Benjamin Franklin One Day We Love Jose Manuel El Sonido de Pamela Djjaysx-Drum Attack The First Trip Plus 44 When Your Heart Stops Beating Patrice Deceuninck The Ring Bearer 1 Ollie Embden Ministry of Sound Session (21 july 2006) The Official Goliath 8 Anthem The Judgement Day The Elation The Elation Astroline Close My Eyes Africando Ketukuba Kingdom Any Chance to Win Strong Like Sam The Honest Love Mcaffer and Hosford Untitled Ame Rej Wally Lopez remix DJ Hidden The Dust Element Liquid Breeze State of Mind Lws A Forest Yung Sean Laid Back (Dior Shades) Redshirt Theory Getting Massive Various Artists African Chill Pjd Rumours Saian Supa Crew Angela / Hey Yo My Man featuring Roots Manuva Various Artists X-MIX Urban Series 76 Dumode vs. Lange Memory vinyl Damien Jurado And Now that Im in Your Shadow The Collectors Galapagos Mtf Running Razoof Lounge (7 august 2006) Various Artists Nu Funk volume 2 DJ Rob Psychic Wipeout mix Inperfektion Evilution Solomonic Sound Come Fi Mash it C64 Back in Time Southern All Stars Dirty Old Man Greed Strange World Nels Cline Trio Ground Endif Meta Matteo Spedicati Weekend at Pisanos Kyau vs Albert Outside Vibekingz (featuring Maliq) Like the Wind DJ Cutkiller Live at Skyrock (190806) South Up Close and Personal Seema Devils in My Head (SC008) Various Artists Campari Lounge Iri Kane Le Prochain Sur la Liste Sha Jaja Tyken featuring Awa Every Word Jan Driver Set the Engine on Fire Corcobado Editor de Suenos All Star Starlitos Way Socalled Ghetto Blaster OST Over the Rainbow Alan Vega Ben Vaughn E-Life and Postmen In Doubt 99Ritmo Profundo Alegria Tal Farlow The Return of Tal Farlow The Mind Control Project In the Future The Cherry Point Black Witchery Sister Rosetta Tharpe Complete Sister Rosetta Tharpe volume 4 1951-1953 Ooze Random Wondrous Things EP Hipgnosis Sky is the Limit Letticia Colour of My Dreams Psychedelic Avengers Raumschiff Kommandant remixed Prince Be and Ky-Mani Marley Gotta Be Movin on Up Various Artists Collectors Series part 2 Kaos and Sal P DJ Futureshock Third Wave remix M Black Day Dream Kosmetik Chacaroon (Ich Mag Dich) Tilly and the Wall Live in Berlin (5 august 2006) Various Artists Piano Picture that I Draw Unknown artist Coldplay Various Artists Galaxy Angel II and I Duet album Angel Call Ken Boothe Everything I Own (the Best of Ken Boothe) Casper Hight Kapitel 13 Atzen Paule Eleano Rugby (Zweimannkollisionen) Baby Calander Fifteen Year Old Sneakers Barthezz vs. Delerium Silence on the Move Paulo Gonzo Paulo Gonzo Tyken featuring Awa Every Word (including John Dahlback remix) Vollassi Toni Bam BA Bam (SCHRANZ051) Airtight Give it Up Dave Matthews Band The Space Between (DJ Tiesto remix) Johan Gielen In Session (30 september 2006) Jeff Bennett Dynamics Rad Kjetil and the Loving Eye of God Mattmar Various Artists Euro Xclusive 06-41 Akaka Mikazuki An Angle And Take it with A Grain of Salt Carmen Mcrae Here to Stay Slusnik Luna Sun Production - Various Artists Turn it Up Terry Ferminal Nymph September Malevolence Tour Lily Allen Smile Sir John Barbirolli Conducts Concertgebouw Orchestra Self Titled Human Evolution Human Evolution Toby Love featuring Judy Santos and KP da Moneymaker Stripper Pole Various Artists Futuristic Trips 1 Bionic X Again Paul Van Dyk Vonyc Sessions Episode 5 (5 october 2006) D Formation Brain Damage (No Pressure) Saved by Zero I Found Love Radio de Outono Radio de Outono EP Paragon Living in da Underground (including DJ Fire remix) Deli Still Burning The Reyes Brothers Ghetto Therapy Einstuerzende Neubauten Grundstueck (Supporters album 2) Various Artists Solid Players part 3 Frank Zappa Disconnected Synapses (Beat the Boots 2) Megaphone Its Life Michael Leviton My Favorite Place to Drown The Low Lows Fire on the Bright Sky DJ Stefan Egger Ever So Lonely EP Peggy Lee Latin Ala Lee and Ole Ala Lee Def Beat remixes volume 1 Coldcut Replicant The Conspiracy 4 Strings Diving Ceaser L-Rithmo Ziggy Marley and the Melody Makers Power to Move Ya O S T Un Printemps A Paris (by Michel Gaucher) Silver Star Sabrina Philtre Freekz vs FPI Project featuring Bianca Lindgren Everybody N2deep Back to the Hotel Ocote Soul Sounds and Adrian Quesada El Nino Y El Sol Tobias Schmidt Real Life EP (Tresor 179) Various Artists Bundle Riddim (Even More) The Similou All this Love Ty Black Never Be Another Love Various Artists Gully Slime Riddim (More) Stochastic Theory Opposite Extremes Various Artists Radio Slave presents Creature of the Night Sunrise Festival 2006 Friday main Stage Dervish live (21 july 2006) Free the Funk 4 Style Wars Various Artists Electric Music Foundation 2 Immanitas Arvo part in Ruins Summa Misesere Kinetic Jupiter Daft Punk vs Pointer Sisters Unknown Title Various Artists Bouncin Bootlegs volume 1 Hot Chip Colours (7-inch 1) DJ Red Silk or Metal volume 2 (UNPOLITE003) DHT featuring Edmee Listen to Your Heart (Japan edition) Greenfield Test Sniper E Infra-Red The Twins Hold on to Your Dreams Mike Monday Smorgasbord Yukari Tamura Dowa Meikyu Crooked I Young Boss volume 2 Sasha Dance Department (28 october 2006) Reamonn Tonight (Milk and Sugar Remixe) Liquid Light Beat the Drum Jennifer Jayden Lost Along the Way Nature Free Your Mind (the Mystery remixes) DJ Xu JJJ Theclub (12 august 2006) Various Artists Shiloh Ites Marco Polo Live (16 september 2006) The Soulpreachers featuring Sibylle Are U Ready Keijo and Robert Horton 50 Scape One Unstable Beat Proton Characteristics Hoxton Whores Friday Saturday Love (Hw 025) Sinead Oconnor Troy German mixes Eddie Floyd Stax Profiles Piirpauke Kalabalik Various Artists DJ Promotion CD Pool Pop 39 Snakes and Music Isabelle Dolhai Attila Ebredjen A Nap Leon Bolier Streamlined 036 (1 august 2006) Richard Galliano Quartet New Musette The Nathan Cavaleri Band Nathan Roger Sanchez Live at Housesession Radioshow (18 august 2006) Veitstanz Aive Sameco 1ere Ecoute Cujorius One Live at TAZ Festival Israel (24 september 2006) Various Artists Promo for Ua Rock 272 Capleton Whole World Asian2 Toku U-Ka Saegusa in DB U-Ka Saegusa in DB III Helden De Nieuwe Snaar Zbigniew Preisner The Beautiful Country Yeo Un Kyu My Skyblue L-Vee Made in Heaven EP 32408df3sf