Versions Compared

Key

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

...

Code Block
nao@nao:~/sic/sic_framework/devices$ python nao.py --robot_name nao1
Starting service manager with device id "nao1" with services:
 - NaoqiMicrophone
 - TopNaoCamera
 - BottomNaoCamera
Starting service manager with device id "nao1" with services:
 - NaoMotionReplayAction
 - NaoMotionRecorderAction
 - NaoMotionAction
 - NaoMotionStreamConsumer
 - NaoqiTextToSpeechAction
 - NaoMotionStreamProducer
 - NaoqiTabletService

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 demo’s are available in the docker/sic/sic_framework/tests folder.

Terminal

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

Code Block
cd docker/sic/sic_framework/tests

export DB_IP=localhost
export DB_PASS=changemeplease

python3 demo_camera.py
Pycharm

The enviornment variables (the export command in the code above) need to be set. If you are using Pycharm to run the script, set these in the Run/Debug configuration in the Environment variables menu. Copy these two lines into the menu:

Code Block
DB_IP=localhost
DB_PASS=changemeplease

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.

...