> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinatric.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D2 SDK Development Guide

> Connect to the D2 motion gateway, control motion, and read hardware feedback.

## SDK compatibility

This guide covers Kinatric D2 motion services exposed by the RK3576 deployment. The `d2_edge` gateway accepts the Kinatric D2 SDK over DDS and connects it to the board's motion and hardware services. Applications can use the deployment's pinned C++ or Python SDK directly. The three gateway RPC services report API version `1.0.0.1`.

Use the SDK versions pinned by your deployment. Compatibility is limited to the methods and message mappings documented in this guide.

## Start with a read-only connection

Configure the external DDS domain and network interface, then run the status probe before sending motion commands. The default external domain is `0`; the separate internal domain defaults to `71`.

[Connect to the gateway](https://docs.kinatric.com/sdk/motion-services/connect.md) for network settings, the Python status probe, and a C++ API version example.

## Motion services

The following reference is shared by D2 and D2W. Model-specific actuator differences are described below and in the low-level control reference.

> [card] [Motion control](https://docs.kinatric.com/sdk/motion-services/motion-control.md)
>
> Supported methods, request results, service discovery, and a high-level control example.

> [card] [Control ownership](https://docs.kinatric.com/sdk/motion-services/control-ownership.md)
>
> Local controller priority, SDK ownership, stream timeouts, and recovery behavior.

> [card] [State feedback](https://docs.kinatric.com/sdk/motion-services/feedback.md)
>
> DDS topics, validity checks, actuator and IMU data, and a Python subscriber example.

> [card] [Low-level control](https://docs.kinatric.com/sdk/motion-services/low-level-control.md)
>
> Motor slots, control handover, command validation, and HAL command receipts.

## D2 actuator mapping

D2 uses leg actuator slots `0–11`. Slots `12–19` are unused.

Leg slots follow D2 order: front right, front left, rear right, and rear left, with hip, thigh, and calf within each leg. Read `rt/kinatric/robot_description` for the deployed model, actuator configuration, limits, and command velocity limits.

The Python feedback and hold examples cover the 12 leg axes. Check CRC and matching validity reports before using joint feedback.

## Before commanding motion

Start a local session with an Xbox Select press and release or a LiteRadio 4 SA off-to-on transition. Wait for startup checks to finish and for an active `Passive` state. Use the on-site hardware trial procedure.

A successful synchronous motion request confirms acceptance; observe `control_state.state` to confirm completion. The pinned Python `SportClient.Move()` uses `noreply`, so its return value confirms sending only. Inspect `rt/kinatric/operation_state` for the board's result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.