kscale-actuator
Rust library for controlling actuators (Robstride servo motors) on K-Scale robots. CAN bus communication, position/velocity/torque control.
Best use case
kscale-actuator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Rust library for controlling actuators (Robstride servo motors) on K-Scale robots. CAN bus communication, position/velocity/torque control.
Teams using kscale-actuator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kscale-actuator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How kscale-actuator Compares
| Feature / Agent | kscale-actuator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Rust library for controlling actuators (Robstride servo motors) on K-Scale robots. CAN bus communication, position/velocity/torque control.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# K-Scale Actuator Skill
**Trit**: -1 (MINUS - hardware interface/verification)
**Color**: #B9172E (Deep Red)
**URI**: skill://kscale-actuator#B9172E
## Overview
Rust library for controlling actuators on K-Scale robots. Supports Robstride servo motors with CAN bus communication. Provides position, velocity, and torque control modes.
## Architecture
```
┌────────────────────────────────────────────────────────────────┐
│ ACTUATOR CONTROL STACK │
├────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ KOS Firmware │ │
│ │ ActuatorService (gRPC) │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ actuator crate (Rust) │ │
│ │ ┌─────────────────────────────────────────────────────┐ │ │
│ │ │ ActuatorController │ │ │
│ │ │ ├── configure(kp, kd, torque_limit) │ │ │
│ │ │ ├── command_position(joint_id, position) │ │ │
│ │ │ ├── command_velocity(joint_id, velocity) │ │ │
│ │ │ ├── command_torque(joint_id, torque) │ │ │
│ │ │ └── get_state() -> ActuatorState │ │ │
│ │ └─────────────────────────────────────────────────────┘ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ robstride crate (Rust) │ │
│ │ ├── CAN bus communication │ │
│ │ ├── Motor protocol implementation │ │
│ │ └── Firmware interface │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Hardware │ │
│ │ Robstride Motors (CAN bus @ 1Mbps) │ │
│ └──────────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────────┘
```
## Rust API
```rust
use kscale_actuator::{ActuatorController, ActuatorConfig};
// Initialize controller
let config = ActuatorConfig {
can_interface: "can0",
motor_ids: vec![1, 2, 3, 4, 5, 6],
};
let mut controller = ActuatorController::new(config)?;
// Configure actuator
controller.configure(1, ActuatorParams {
kp: 100.0,
kd: 10.0,
torque_limit: 40.0,
})?;
// Command position
controller.command_position(1, 0.5)?; // radians
// Get state
let state = controller.get_state(1)?;
println!("Position: {}, Velocity: {}, Torque: {}",
state.position, state.velocity, state.torque);
// Low-level torque control
controller.command_torque(1, 5.0)?; // Nm
```
## GF(3) Triads
```
kscale-actuator (-1) ⊗ kos-firmware (+1) ⊗ mujoco-scenes (0) = 0 ✓
```
## Related Skills
- `kos-firmware` (+1): Uses actuator crate via HAL
- `kbot-humanoid` (-1): K-Bot uses these actuators
- `robstride-driver` (-1): Low-level motor driver
## References
```bibtex
@misc{kscaleactuator2024,
title={K-Scale Actuator Library},
author={K-Scale Labs},
year={2024},
url={https://github.com/kscalelabs/actuator}
}
```Related Skills
kscale
K-Scale Labs robotics skill collection - unified index for humanoid robot development, RL training, sim-to-real transfer, and deployment. Aggregates 9 specialized skills with GF(3) triadic organization.
jepsen-testing
Jepsen-style correctness testing for distributed systems under faults (partitions, crashes, clock skew) using concurrent operation histories and formal checkers (linearizability/serializability and Elle-style anomalies). Use when designing, implementing, or running Jepsen tests, or interpreting histories/violations.
Deterministic Color Generation via Metadata Hashing
**Status**: ✅ Production Ready
cyton-dongle
Connect and stream from OpenBCI Cyton/Daisy via USB dongle, including first-time radio channel pairing
asi-transient-agenda
Org-agenda-like transient views for ASI skill orchestration via nbb/squint + Emacs hydra
Topological Superintelligence (TSI)
Compositional AI framework using GF(3) triadic balance and category-theoretic foundations.
zx-calculus
Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)
zulip-cogen
Zulip Cogen Skill 🐸⚡
zls-integration
zls-integration skill
zig
zig skill
zig-syrup-bci
Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation
zig-programming
zig-programming skill