Install things on Pepper

You don’t have root access on Pepper, which limits what you can install (and apt isn’t on the robot anyway).

Some possibilities:

  • Include your content in Choregraphe projects – when you install a package, the whole directory structure is installed (more exactly, what’s listed in the .pml); so you can put arbitrary files on your robot, and you can usually include whatever dependencies your code needs.
  • Install python packages with pip.

In NAOqi 2.5, a slightly older version of pip is installed that will not always work out of the box; I recommend upgrading it:

pip install --user --upgrade pip

… you can then use the upgraded pip to install other packages, using the upgraded pip, and always –user:

/home/nao/.local/bin/pip install --user whatever-package-you-need

Note however that if you do this and use your packages in your code running on Pepper, that code won’t work on other robots until you do pip on them, which is why I usually only do this for tests; for production code I prefer packaging all dependencies in my app’s package.

Leave a Comment