Difference between revisions of "API2 quickstart"

From RobotinoWiki
(Building the API2 examples on Robotino)
Line 1: Line 1:
 +
To get started with the Robotino API2 quickly, you have the option of installing the binary package on Windows or the debian packages on Linux.
 
==Installation==
 
==Installation==
 
===Windows===
 
===Windows===
 
[[downloads#API2_Beta|API2 binary package]]
 
[[downloads#API2_Beta|API2 binary package]]
  
===Linux===
+
===Linux [Robotino]===
 
====Setup package repository====
 
====Setup package repository====
 
On i386 system
 
On i386 system
Line 20: Line 21:
 
</pre>
 
</pre>
  
==Building the API2 examples on Robotino/Linux==
+
== Building the Robotino API2 examples on Linux [Robotino] ==
 
<pre>
 
<pre>
 
mkdir -p build/circle
 
mkdir -p build/circle
Line 27: Line 28:
 
configure(c) 2x, generate(g)
 
configure(c) 2x, generate(g)
 
make
 
make
 +
</pre>
 +
 +
The circle example, for instance, can be run by specifying the IP Address of Robotino. If you are running the example on Robotino itself then the IP Address will be 127.0.0.1 as shown below:
 +
 +
<pre>
 
target/example_circle 127.0.0.1
 
target/example_circle 127.0.0.1
 
</pre>
 
</pre>

Revision as of 10:16, 23 January 2012

To get started with the Robotino API2 quickly, you have the option of installing the binary package on Windows or the debian packages on Linux.

Installation

Windows

API2 binary package

Linux [Robotino]

Setup package repository

On i386 system

sudo echo "deb http://doc.openrobotino.org/download/packages/i386 ./" >> /etc/apt/sources.list

On amd64 systems

sudo echo "deb http://doc.openrobotino.org/download/packages/amd64 ./" >> /etc/apt/sources.list

Install

sudo apt-get install robotino-api2 robotino-examples

Building the Robotino API2 examples on Linux [Robotino]

mkdir -p build/circle
cd build/circle
ccmake /usr/local/robotino/examples/src/c++/circle/
configure(c) 2x, generate(g)
make

The circle example, for instance, can be run by specifying the IP Address of Robotino. If you are running the example on Robotino itself then the IP Address will be 127.0.0.1 as shown below:

target/example_circle 127.0.0.1