Difference between revisions of "API2"

From RobotinoWiki
(Created page with 'The new API2 is currently under development. The main new features are - Support for up to 4 cameras - Support for camera controls like brightness, contrast, auto white balance .…')
 
Line 7: Line 7:
 
The new API2 is based on a RPC like infrastructure. The [http://servicerobotics.eu/weitere-projekte/rec-rpc-library/ REC-RPC] library is a interprocess communication middleware similar to ROS. It is based on Qt and does not have any other dependencies.
 
The new API2 is based on a RPC like infrastructure. The [http://servicerobotics.eu/weitere-projekte/rec-rpc-library/ REC-RPC] library is a interprocess communication middleware similar to ROS. It is based on Qt and does not have any other dependencies.
  
===Get API2 packages for Robotino===
+
===API2 packages for Robotino===
 
In order to use the API2 you need to replace packages on Robotino. The easiest way is to give Robotino Internet access. The file '''/etc/apt/sources.list''' should already contain the line
 
In order to use the API2 you need to replace packages on Robotino. The easiest way is to give Robotino Internet access. The file '''/etc/apt/sources.list''' should already contain the line
 
<pre>deb http://doc.openrobotino.org/packages ./</pre>
 
<pre>deb http://doc.openrobotino.org/packages ./</pre>
Line 17: Line 17:
 
This will remove the API1 daemons and install the API2 counterparts.
 
This will remove the API1 daemons and install the API2 counterparts.
  
===Get API2 for Windows===
+
===API2 for Windows===
  
===Get API2 for Linux===
+
===API2 for Linux===
  
 
===Build API2 yourself===
 
===Build API2 yourself===

Revision as of 09:14, 17 October 2011

The new API2 is currently under development. The main new features are - Support for up to 4 cameras - Support for camera controls like brightness, contrast, auto white balance ... The supported controls depend on the camera used - Integrated web server for controlling Robotino by a web browser or your smartphone - Easy build process due to minimal dependencies to external libraries

The new API2 is based on a RPC like infrastructure. The REC-RPC library is a interprocess communication middleware similar to ROS. It is based on Qt and does not have any other dependencies.

API2 packages for Robotino

In order to use the API2 you need to replace packages on Robotino. The easiest way is to give Robotino Internet access. The file /etc/apt/sources.list should already contain the line

deb http://doc.openrobotino.org/packages ./

If not edit the file and put this line at the beginning. Then do

apt-get update
aot-get install rec-rpc robotino-common robotino-daemons robotino-api

This will remove the API1 daemons and install the API2 counterparts.

API2 for Windows

API2 for Linux

Build API2 yourself

Windows:

  • Get the latest Qt libraries from Digia
  • Alternatively build Qt from source

Build REC-RPC

Get the source via SVN:

svn co http://svn.servicerobotics.eu/rec_rpc/trunk source/rec_rpc

Configure the build environment with cmake, build and install:

mkdir build/rec_rpc
cd build/rec_rpc
ccmake ../../source/rec_rpc
make install

Set the environment variable REC_RPC_DIR to the installation directory. The environment variable is used by the other packages to find the FindRecRpc.cmake scripts.