# robobrain® RAP C++ client

This C++ library provides an implementation of the lightweight **r**obominds **a**utomation **p**rotocol (<mark style="color:blue;">**RAP**</mark>) for clients to interact with robobrain® systems.

## Usage <a href="#autotoc_md5" id="autotoc_md5"></a>

First, make sure that you're able to connect to your robobrain® system by navigating your browser to its IP address or pinging it.&#x20;

{% hint style="info" %}
The factory setting for robobrain®'s IP address is `192.168.0.5`. If you changed your system's IP address and can't remember the settings, you can check for ARP messages on your network using tools like `tcpdump` and Wireshark&#x20;
{% endhint %}

If your connection attempt was successful, you should see the robobrain® web GUI in your browser. All aspects of this user interface are explained in detail in the manual that came with your system.

If your installation was successful and you configured your project successfully using the CMake build tool, a minimal example to interact with the robobrain® system looks like this:&#x20;

```cpp
#include <rapClient/RbVision.h>
#include <rapClient/Logger.h>
#include <rapClient/LogToStream.h>
 
int main(int, char **)
{
    rb::Logger logger("main");
    logger.add_facility<rb::LogToStream>(rb::log_level::notice, std::cout);
 
    auto vision = std::make_shared<rb::RbVision>(logger);
    vision->connect("192.168.0.5");
}
```

If you have bought a robobrain® system, you can get the lib from us. In the lib you can find the latest and detailed documentation.
