Skip to content

tcalmant/demo-ipopo-nao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nao-iPOPO Demonstration

Nao's code of a demonstration project for the Eclipse IoT Day Grenoble 2014. [Video].

Nao is a robot by Aldebaran Robotics.

This project is based on iPOPO, a Service-Oriented Component Model (SOCM) framework in Python, to wrap Nao API (ALModule, ALProxy, ...) into different components which provide and consume services.

It uses MQTT to send and receive message to/from OpenHAB, to control Home Automation devices, like Philips Hue.

Information about this project will be available on the wiki of iPOPO.

Installation

All installation operation are done in the /home/nao folder

iPOPO and its dependencies

We consider that no package installation tool is present on the robot, else a simple pip install iPOPO paho-mqtt will be sufficient

Preparation

Create a python-libs folder in /home/nao.

iPOPO

We will use the development version of iPOPO.

  1. Download https://github.com/tcalmant/ipopo/archive/master.zip
  2. Extract it
  3. Move the pelix into python-libs
  4. Delete the rest

Paho MQTT

Paho MQTT is the new name of the Mosquitto client library, as it is now part of the Eclipse project.

  1. Download the package from https://pypi.python.org/pypi/paho-mqtt
  2. Extract it
  3. Move src/paho into python-libs

Demo Project

You must have a MQTT server and OpenHAB up and running for this demonstration to work.

  1. Download this project: https://github.com/tcalmant/demo-ipopo-nao/archive/master.zip
  2. Extract it
  3. Copy the content of python_on_nao in /home/nao/demo-ipopo-nao.
  4. Run the main.py file from the /home/nao/demo-ipopo-nao folder.
  5. On the first run, create a configuration to connect to the MQTT server, using the Pelix shell::

    config.create mqtt.connector host=<mqtt-host> port=<mqtt-port>

About

Demonstration for Eclipse IoT Day Grenoble 2014. Combines a Nao robot, iPOPO and OpenHAB for a Home Automation demonstration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published