#motor-driver #motor-control #node #velocity #manage #mecha10 #mocking #odometry #dual #l298n

bin+lib mecha10-nodes-motor

Motor node for Mecha10 - manages motor driver and provides velocity control interface

7 releases

0.1.47 Jan 25, 2026
0.1.43 Jan 15, 2026
0.1.23 Dec 30, 2025
0.1.0 Nov 24, 2025

#921 in Hardware support


Used in mecha10-cli

MIT license

1MB
16K SLoC

Motor Node

This node manages motor control with configurable controller backends. It provides velocity control through the standard /motor/cmd_vel topic and publishes odometry data.

Controller Selection

The node supports multiple motor controllers, selected via configuration:

  • mock: Simulated motors for testing/development (no hardware required)
  • l298n: L298N dual H-bridge driver for DC motors

Topics

  • Subscribes: /motor/cmd_vel (Twist) - Velocity commands
  • Publishes: /odom (Odometry) - Odometry data
  • Publishes: /motor/status (MotorStatus) - Motor status

Configuration

{
  "controller": {
    "type": "mock",  // or "l298n"
    "wheel_base": 0.3,
    "max_velocity": 1.0
  },
  "odom_rate_hz": 50.0,
  "max_linear_vel": 0.5,
  "max_angular_vel": 1.0
}

See config.rs for full configuration options.

Dependencies

~29–47MB
~651K SLoC