.. _cpp-tutos-move-head:

Moving NAO's head
=================

:ref:`\<\< return to C++ examples<cpp-examples>`

The aim of this example is to show how to move NAO using a proxy to ALMotion.
This particular example will make NAO's head move right and left.

The whole example is available here: :download:`movehead.zip <../movehead.zip>`

Source file:
------------

:download:`movehead.cpp <movehead.cpp>`

.. literalinclude:: movehead.cpp
   :language: cpp

CMakeLists.txt:
---------------

The corresponding CMakeLists.txt file is the following

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake
