Results 1 to 8 of 8

Thread: RSS Robo Chimp Bot

  1. #1
    Join Date
    Dec 2009
    Location
    San Francisco
    Posts
    45
    Rep Power
    33

    RSS Robo Chimp Bot

    Hacking an animatronic chimp into the Internet via a Serializer interface, some C# code provides a platform for deploying a Pluri Media Group news anchor on par or exceeding commercial broadcast any mere human. The robochimp is fed using an array of RSS feeds with various robot related tags. Mouth movements (using a std servo) synced to text stream using a word parse/length sub. Eye lid movement controlled via original DC motors/potentiometers using H-bridge on the Serialier board.

    [ame="http://www.youtube.com/watch?v=GeXTLdQN2EE"]YouTube- Chimp Autonomous Announcer[/ame]
    Last edited by defwheezer; 04-10-2010 at 01:22 PM.

  2. #2
    zoomkat Guest

    Re: RSS Robo Chimp Bot

    You sure this thing isn't just controlled via a hacked "clapper" such that random movements are made when audio is detected in the room?

  3. #3
    Join Date
    Dec 2009
    Location
    San Francisco
    Posts
    45
    Rep Power
    33

    Unhappy Re: RSS Robo Chimp Bot

    Quote Originally Posted by zoomkat View Post
    You sure this thing isn't just controlled via a hacked "clapper" such that random movements are made when audio is detected in the room?
    No, but thanks anyways.

    It uses code to parse each RSS feed item into a sentence, then each word legth is used to drive the jaw servo duration as follows:
    (C# code)

    for (int j = 0; j < (arraysize); j++) //array size = # words in sentence
    {

    int int_moveStep = 2;
    pin0.State = true; //LED on
    for (int i = -60; i < -30; i++)
    {

    Servo5Position.Value = i;
    Servo5Position.Text = Servo5Position.Value.ToString();
    servo5.Position = Servo5Position.Value;
    i = i + int_moveStep;
    int sleep_time = (word_length_array[j] * 4) + 10;
    Thread.Sleep(sleep_time);

    }
    for (int i = -30; i > -55; i--)
    {
    Servo5Position.Value = i;
    Servo5Position.Text = Servo5Position.Value.ToString();
    servo5.Position = Servo5Position.Value;
    i = i - int_moveStep;
    int sleep_time = (word_length_array[j] * 4) + 10;
    pin0.State = false; //LED off
    Thread.Sleep(sleep_time);
    }

    }

  4. #4
    Join Date
    Sep 2008
    Location
    Toronto, Ontario
    Posts
    171
    Images
    43
    Rep Power
    37

    Re: RSS Robo Chimp Bot

    Hi defwheezer,

    Conceptually, I love this project.

    I think your mouth movements could use some work though. Have you considered opening and closing the mouth per syllable? Maybe, depending on the length of the word, you close the mouth 70-80% on the syllable.

    I know there are loaeds of free/opensource dictionaries out there, but I'm far too tired just now to go dig something up that you can use in C#. Some googling or blinging might help you out more there.

    I hope to see this entertaining work refined in the near future.

    Good luck!

  5. #5
    Join Date
    Dec 2009
    Location
    San Francisco
    Posts
    45
    Rep Power
    33

    Re: RSS Robo Chimp Bot

    Yes indeed- parsing each word for syllables and then using that to modulate jaw servo travel/speed is what I'm currently trying to implement to get more realistic mouth-word synchronization, using word length was a quick code fix just to get a POC of the RSS reading bot:

    //C# code

    private int SyllableCount(string word)
    {
    word = word.ToLower().Trim();
    string pattern = "[aeiouy]+";
    int count = System.Text.RegularExpressions.Regex.Matches(word, pattern).Count;
    if (word.EndsWith("e"))
    {
    //check for wording ending with vowel,consonant,e
    if (System.Text.RegularExpressions.Regex.IsMatch(word , "[aeiouy][^aeiouy]e$"))
    {
    count -= 1;
    }
    }
    if (count < 1)
    {
    count = 1;
    }
    return count;
    }

  6. #6
    zoomkat Guest

    Re: RSS Robo Chimp Bot

    Quote Originally Posted by defwheezer View Post
    No, but thanks anyways.
    I didn't mean to slam all the coding, it is just that the servo movement of the mouth doesn't mimic the level of detail of the audio speech being heard. Probably difficult to do with a single servo. Craig Ferguson now has a very similar animatronic side kick on his show (after letterman).

  7. #7
    Join Date
    Dec 2009
    Location
    San Francisco
    Posts
    45
    Rep Power
    33

    Re: RSS Robo Chimp Bot

    "the servo movement of the mouth doesn't mimic the level of detail of the audio speech being heard"

    Yeh, that has turned out to be a lot harder than I expected coding wise- especially since I know practically Jack about coding in visual C#; trying currently to use the Viseme (Visemes are nothing but images with expression) bit for firing various mouth movement servo actions (instead of calling bitmaps of facial expressions).

    I believe the 'Letterman' (http://www.imdb.com/video/cbs/vi927073305/) bot is actually controlled off screen using a joystick (CHEATERz!!!) based on the video by the maker (the robot dude from Mythbusters).

  8. #8
    Join Date
    Dec 2009
    Location
    San Francisco
    Posts
    45
    Rep Power
    33

    Re: RSS Robo Chimp Bot

    Updated Chimp with realistic mouth movements!

    http://forums.trossenrobotics.com/showthread.php?t=4070

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Contest Entry Roving Servo Bot
    By Pinter75 in forum Project Showcase
    Replies: 13
    Last Post: 02-02-2009, 07:08 PM
  2. Contest Entry Milk Carton Space Bot
    By CaptKill4Fun in forum Project Showcase
    Replies: 7
    Last Post: 12-27-2008, 11:08 PM
  3. Project Explorabot - Roving wireless camera bot.
    By Pinter75 in forum Project Showcase
    Replies: 4
    Last Post: 11-14-2008, 09:40 PM
  4. News/Announcement RSS Feeds in the TRC are fixed!!! Well... sort of:-)
    By Alex in forum Off Topic
    Replies: 3
    Last Post: 08-08-2008, 11:13 PM
  5. Contest Entry Vex Robotics, Ultrasonic Bot 1.0, 2.0 and 3.0
    By srobot in forum Project Showcase
    Replies: 2
    Last Post: 08-29-2007, 03:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •