/TinyCog

Small Robot, Toy Robot platform

Primary LanguageC++

OpenCogER

A collection of speech, vision, and movement functionalities aimed at small or toy robots on embedded systems, such as the Raspberry Pi computer. High level reasoning, language understanding, language gneration and movement planning is provided by OpenCog.

The current hardware platform requires an RPI3 computer, a Pi Camera V2 and a USB Microphone; other sensor/detector components are planned.

The current software functions include face detection, emotion recognition, gesture analysis, speech-to-text and text-to-speech subsystems. All high-level founction is provided by OpenCog, and specifically by the Ghost scripting system -- ghost is able to process sensory input, and provide coordinated chatbot and movement abilities.

Setup

Everything here is meant to run on a rpi3 computer; one can also compile everything on a standard Linux desktop computer.

Install

Need to have these whether on desktop or rpi

On rpi3 only

Use cmake for building. cd to OpenCogEr dir mkdir build cd build cmake .. make

Running

  • Start relex server
  • run run.sh
        $ ./run.sh
    
  • A guile shell starts up where you can test behavorial functions with simulated functions.
        guile> (test-set-face-event)
    
  • In another terminal, connect to port 5555 via telnet to input speech
        $ telnet localhost 5555
    
  • You can see response output either from the guile instance above or by telneting to port 6666
        $ telnet localhost 6666
    

Implementation

Sensors

Sensors are a camera and microphones. The camera for face detection -> face landmark -> facial expression and emotion and also for hand detection -> convexity defects -> fingers count and gestures. The microphone for STT and sound source localization. Some of the sensor programs such as the face, hand and voice activity detection can run on the PI without much stress on the hardware but other functionalities like emotion and and speech recogntion should be implemented as services from a server possibly from singnet.

Behavior

ToDo

  • Emotion recognition
  • Offline Speech (command) Recognition (shouldn't be heavy on the hardware)
  • Ghost rules
  • Stories for a specific identity we need the robot to have
  • Access to Singnet applications