Giter Club home page Giter Club logo

vanderbot's Introduction

VanderBOT

Pepper implementation of the cognitive architecture for Trust and Theory of Mind in humanoid robots applied to the developmental psychology experiment designed by Vanderbilt et al. (2011).

In this experiment, a robot will interact with one or more informants in a sticker finding game and it will progressively learn to predict their trustworthiness. For more details, please refer to Vinanzi et. al. (in progress).

Features

  • Robotic vision algorithms to detect and recognize user's faces other than the markers: Haar Cascade for face detection, Local Binary Histogram Patterns (LBPH) for face recognition;
  • Interaction through vocal commands and NAOmarker detection provided by QI APIs;
  • Developmental Bayesian Model of Trust (Patacchiola and Cangelosi, 2016) used as a belief network;
  • Maximum Likelihood Estimation and Message Passing Algorithm for bayesian learning and inference;
  • Custom particle-filter-inspired algorithm for artificial episodic memory;

Video

https://www.youtube.com/watch?v=ZBBtu1PkNCg

Requirements

This code runs on Python 2.7. In addition, the following libraries are required:

Library GitHub URL
Numpy https://github.com/numpy/numpy.git
Bayesian Belief Networks https://github.com/samvinanzi/bayesian-belief-networks.git
OpenCV version 3.3.0+ https://github.com/opencv/opencv.git
OpenCV Contrib version 3.3.0+ https://github.com/opencv/opencv_contrib.git
qi https://github.com/aldebaran/libqi.git

This software can operate in a simulated virtual environment, provided a camera is connected to the computer at runtime, but for best results a SoftBank robot (Nao or Pepper, for example) of latest generation is recommended.

Install requirements using pip

sudo pip install numpy opencv-python opencv-contrib-python --user

Experimental Setup

This module has been written for a SoftBank Pepper robot. The original experimental setup involved a table measuring 67.5cm in height located at a distance of 30cm from the robot. Some robotic behaviours (as methods look_A() and look_B() from class robot.py) should be revised in case of any changes to the robot or the experimental setup.

Printable images of the experiment mat and the marker are available for download and print. Although the table mat is not mandatory, it is recommended as it serves as a visual guide for both the pointers and the experimenters. Any kind of NAOmarker can be used in place of the one provided.

Tabletop mat (recommended print size is A3):

Tabletop mat

Marker:

Marker

Usage

from Vanderbilt import Vanderbilt

robot_ip = "pepper.local"
simulation = False
demo_number = 6
mature = True
withUpdate = True

experiment = Vanderbilt(robot_ip, simulation, demo_number, mature, withUpdate)
experiment.help_setup()     # Optional, helps to setup the physical environment
experiment.start()

Changes

This repository integrates support for OpenCV 3.3.0+

vanderbot's People

Contributors

samvinanzi avatar iciccio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.