Difference between revisions of "Running your first program"

From youBot wiki
Jump to: navigation, search
(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...")
 
(Blanked the page)
 
Line 1: Line 1:
== 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
 
# [[Setting_up_hardware#Turn_on_power| Switch on motors]]
 
# [[Move_the_arm_in_startup_(embryo)_position| 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: <br />
 
 
$ cd applications/hello_world_demo <br />
 
$ mkdir build <br />
 
$ cd build <br />
 
$ cmake .. <br />
 
$ make <br />
 
 
The binaries will be generated in the folder ~/applications/hello_world_demo/bin.
 
 
== Running the program ==
 
 
To start the application use:
 
 
$ cd bin <br />
 
$ sudo ./youBot_HelloWorldDemo <br />
 
 
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| Installing remastered Ubuntu]]
 
 
 
''Corrections, suggestions, and new documentation should be posted to the [http://www.youbot-store.com/community/ Forum].''
 

Latest revision as of 17:27, 9 February 2015