C++ backend — build setup
cpp/CMakeLists.txt
find_package(rb_sdk 0.11.15 EXACT REQUIRED) add_executable(my_plugin main.cpp) target_link_libraries(my_plugin PRIVATE rb_sdk::rb_sdk)
#include <rainbow/rb_sdk/manipulate/rb_manipulate_sdk.hpp>
int main() {
RBManipulateSDK sdk;
sdk.state.call_servocontrol("C500920", 1);
IPC::MoveInput_TargetT t;
t.tar_values = {0, 0, 90, 0, 90, 0};
t.tar_frame = 0; t.tar_unit = 1;
sdk.move.call_move_j("C500920", t, std::nullopt,
MoveSpeedArg{1, 60.f, 120.f});
sdk.move.call_move_wait("C500920", -1);
}- The SDK is installed in the dev container
librb_sdk.sois included in the ZIP at build time- Executable name = manifest
runtime.entry