Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SIC

SIC is a framework for quickly getting started with social robotics by making it simple to combine complex devices such as Nao’s and powerful services such as Google Dialogflow.

...

  1. Installing SIC on your device

  2. Installing SIC on your robot

  3. Starting Redis and SIC on your device

  4. Starting SIC on your robot

  5. Start your SICApplication to control the robot

Installation

You can find the instructions on how to install the framework here: Install

Setup

Once installed to all devices you want to use, we can start the framework.

...

  1. Start redis

  2. Start the device services on the robot

  3. (Optional) Start a service, such as face detection

  4. Run your program

Starting Redis and SIC on your laptop

To enable communication between all your devices, we have to start Redis on some device.

...

In a terminal, start redis using

Code Block
redis-server
Docker alternative

Start it on your laptop in the root framework framework folder (for MacOS and Windows: make sure Docker Desktop is running).

...

Code Block
cd framework/sic_framework/services/text2speech
python3 text2speech_service.py

Starting SIC on the Robot (NAOv6)

Expand
titleNotes on windows installation

This script sets environment variables and start the framework on the robot. However, running scripts on windows is not very simple. If you cannot execute the scripts by calling them from a powershell terminal, open them using a text editor and copy the commands into the terminal manually. Remember to adjust variables such as IP addresses

...

Expand
titleManually starting the device services

You can also log in to the robot and start the device services in a terminal.

Code Block
ssh nao@ROBOT_IP

cd framework/sic_framework/devices

export DB_IP=REDIS_IP # replace with the ip of your computer

python nao.py

Running a demo

To start a demo, for example to show pepper’s camera output on your screen, simply execute a python script with a SICApplication. Some demos are available in the docker/sic/sic_framework/tests folder.

Terminal

To start the camera demo from the terminal, use the following commands.

...

If all went well, a display should pop up showing you the camera output of your robot!

API

The goal of SIC is to provide easy to use high level access to devices and services. To make a NAO robot say something, follow the startup instruction in https://socialrobotics.atlassian.net/wiki/spaces/CBSR/pages/2180415493/Install#Starting-SIC-on-the-Robot and run the following python script on your laptop.

...