Running your first program

From youBot wiki
Revision as of 12:16, 3 February 2015 by Florek-jasinska (Talk | contribs) (Created page with "== Short description == The hello_world_demo is an example application to control both, the KUKA youBot base and the youBot manipulator. == Prepare the system == Before exe...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Short description

The hello_world_demo is an example application to control both, the KUKA youBot base and the youBot manipulator.


Prepare the system

Before executing the program, you have to

  1. Switch on motors
  2. Move the arm in embryo position

Preparing the program

You first need to checkout the source code of this program from SVN and then compile it. We assume, that you have performed the previous step of installing the remastered ubuntu. Open a terminal and follow these steps to checkout and compile:

$ cd applications/hello_world_demo
$ mkdir build
$ cd build
$ cmake ..
$ make

The binaries will be generated in the folder ~/applications/hello_world_demo/bin.

Running the program

To start the application use:

$ cd bin
$ sudo ./youBot_HelloWorldDemo

The program will start, moving the base and the arm. The youBot will move approx. 10cm forwards, then approx. 10cm backwards, then approx. 10cm to the left and approx. 10cm to the right. Afterwards it will "unfold" the arm and "fold" it again.


Previous Section : Installing remastered Ubuntu


Corrections, suggestions, and new documentation should be posted to the Forum.