SoftBank Robotics documentation What's new in NAOqi 2.5?

qi.Module API

Introduction

Modules allow you to organize your code. qi modules are pretty much like Python modules. Since everything in libqi is type-erased, you can load a module written in C++ from Python.

Note

Creating modules in Python is not yet supported.

Prerequisite

You must create a qi.Application before using qi.module or it will most likely not work.

Reference

qi.module(moduleName) → object
Returns:an object that represents the requested module

Example

mymodule = qi.module("mymodule")

myObj = mymodule.MyClass()
mymodule.myFunction()