Skip to content

Stock KSP Wheels ​

ModuleWheelBase instances on the active vessel are detected automatically and controlled through shared typed topics. No dedicated replacement parts are needed.

Input and output topics ​

<name> is wheel_<persistentId>_<moduleIndex>; flightID is used only when persistentId is zero.

DirectionTopicTypeQoS
Input/ksp_vessel/actuators/wheel/commandpylon_interfaces/msg/WheelCommandReliable / depth 10
Output/ksp_vessel/actuators/wheel/statepylon_interfaces/msg/WheelStateBest Effort / depth 10

State is transmitted at 30 Hz during Flight.

WheelCommand ​

FieldUnitMeaning
header—Not used for command conversion by the current bridge
vessel_id / controller_id / lease_id—Acquired authority identity
sequence—Monotonically increasing number within the same lease
id—Target wheel_<persistentId>_<moduleIndex>
enabled—Enable the wheel motor
target_angular_velocityrad/sTarget angular velocity
steering_angleradTarget steering angle
max_drive_torqueN·mMaximum drive torque
timeout_secsOverride duration; zero uses the bridge default
bash
ros2 topic pub --once /ksp_vessel/actuators/wheel/command \
  pylon_interfaces/msg/WheelCommand \
  "{vessel_id: <vessel-id>, controller_id: manual, lease_id: <lease-id>, sequence: 2, id: wheel_12345_2, enabled: true, target_angular_velocity: 12.0, steering_angle: 0.2, max_drive_torque: 20.0, timeout_sec: 0.5}"

WheelState ​

FieldUnitMeaning
header—Bridge reception time, frame_id = base_link
id—Actuator ID
name—Actuator name
enabled—Motor enable state
grounded—Ground contact state
angular_positionradWheel rotation position
angular_velocityrad/sWheel rotation speed
steering_angleradCurrent steering angle
drive_torqueN·mDrive torque
brake_torqueN·mBrake torque
slip—KSP combined tire slip
max_drive_torqueN·mCurrent maximum drive torque
bash
ros2 topic echo /ksp_vessel/actuators/wheel/state

Control priority and release ​

Replace example identities with the lease acquired through the Vehicle Control API. Wheels receiving typed commands take precedence over the Body Wrench allocator. Timeout or active vessel switches zero drive/steer inputs and restore the original motor enable state and maximum torque.

Guides and API references for building ROS2 applications with PyLoN