Getting Started with Software

Prerequisites

Before you start, you should have:

  • A Linux or macOS development machine. Linux ARM64 (a Raspberry Pi, Jetson, or similar) also works if you want to build directly on the companion computer.
  • A C++17 toolchain (gcc 9+, clang 12+, or recent Apple Clang) and CMake 3.20 or newer.
  • A Rogue Cortex developer account and a license for the package you intend to use. See the Licenses guide.
  • Optionally, the hardware described in Getting Started with Hardware. You can do a lot of work against a simulator first.

If any of those are missing, fix that before installing the SDK — it will save you a confusing afternoon.

Install the SDK

The SDK is distributed through your portal — head to Downloads in your dashboard. It only becomes available once your company has purchased at least one license; if you don't see it there yet, you don't have a license on the account (see the Licenses guide).

Download the release that matches your platform from the Downloads page, then unpack and install:

unzip rogue-sdk-<version>-<platform>.zip
cd rogue-sdk-<version>
sudo ./install.sh

The installer drops headers under /usr/local/include/roguesdk/ and the shared library under /usr/local/lib/. On macOS you may need to allow the binary in System Settings → Privacy & Security the first time you run it.

Verify the install:

pkg-config --modversion roguesdk

If that prints a version number, you are ready to build.

Your first program

Create a project directory with a main.cpp and a CMakeLists.txt.

main.cpp:

#include <roguesdk/application.hpp>
#include <iostream>

int main() {
    roguesdk::Application app;
    if (!app.Init("config.yml")) {
        std::cerr << "Init failed" << std::endl;
        return 1;
    }

    auto vehicle = app.GetVehicle(1);
    if (!vehicle) {
        std::cerr << "No vehicle 1 in config" << std::endl;
        return 1;
    }

    std::cout << "Connected to vehicle " << vehicle->id() << std::endl;
    app.Start();
    return 0;
}

CMakeLists.txt:

cmake_minimum_required(VERSION 3.20)
project(hello_rogue CXX)
set(CMAKE_CXX_STANDARD 17)

find_package(PkgConfig REQUIRED)
pkg_check_modules(ROGUESDK REQUIRED roguesdk)

add_executable(hello main.cpp)
target_include_directories(hello PRIVATE ${ROGUESDK_INCLUDE_DIRS})
target_link_libraries(hello PRIVATE ${ROGUESDK_LIBRARIES})

A minimal config.yml next to the binary:

vehicles:
  - id: 1
    type: simulator
    host: 127.0.0.1
    port: 14550

Build and run:

cmake -B build
cmake --build build
./build/hello

If you see Connected to vehicle 1, the SDK is installed, your toolchain is set up, and your application can reach a vehicle. Everything else in the docs builds on that.

What the application is doing

Three concepts are doing the work in that handful of lines:

  • Application owns the runtime. It reads the YAML config, brings up the vehicles listed there, and starts the event loop when you call Start().
  • Vehicle is the handle for one physical or simulated robot. From it you reach the main controller, camera, gimbal, telemetry, and every other subsystem.
  • config.yml is how the SDK learns about your hardware. The same binary can drive a simulator or a real robot — just by swapping the config.

Once you are comfortable with those three, the rest of the API reads as variations on the same theme.

Where to go next