A simple wrapper for controlling sushi over gRPC via c++.
Clone the repository and generate the build directory with the generate script using:
$ ./generate --cmake-args="-DPROTO_FILE_PATH=your/path/to/sushi_rpc.proto"If you want to use the default sushi_rpc.proto path /usr/share/sushi_sushi_rpc.proto which is installed with sushi use:
$ ./generateBuild the library by moving either into either the debug or the release folder and then using:
$ makeFinally install into the prefix specified with cmake with:
$ make installAdd the elkcpp folder to you project folder and in your CMakeLists.txt add:
add_subdirectory($PATH_TO_ELKCPP)
target_link_libraries($YOUR_TARGET elkcpp)Include the library to your source file using:
#include "sushi_client.h"To create a controller instance use:
std::shared_ptr<sushi_controller::ControlInterface> controller = sushi_controller::CreateSushiController();A more in depth example can be found here.