raccoon_transport.channels

Channel-name helpers shared by the Python transport implementation.

Classes

Channels

Stable application-level channel names used by the Python transport.

ProtocolChannels

Internal protocol channels used for reliable and retained delivery.

Module Contents

class raccoon_transport.channels.Channels

Stable application-level channel names used by the Python transport.

GYRO = 'raccoon/gyro/value'
ACCELEROMETER = 'raccoon/accel/value'
LINEAR_ACCELERATION = 'raccoon/linear_accel/value'
ACCEL_VELOCITY = 'raccoon/accel_velocity/value'
MAGNETOMETER = 'raccoon/mag/value'
ORIENTATION = 'raccoon/imu/quaternion'
HEADING = 'raccoon/imu/heading'
TEMPERATURE = 'raccoon/imu/temp/value'
BATTERY_VOLTAGE = 'raccoon/battery/voltage'
GYRO_ACCURACY = 'raccoon/gyro/accuracy'
ACCEL_ACCURACY = 'raccoon/accel/accuracy'
COMPASS_ACCURACY = 'raccoon/mag/accuracy'
QUATERNION_ACCURACY = 'raccoon/imu/quaternion_accuracy'
CPU_TEMPERATURE = 'raccoon/cpu/temp/value'
SCREEN_RENDER = 'raccoon/screen_render'
SCREEN_RENDER_ANSWER = 'raccoon/screen_render/answer'
YOLO_FRAME = 'raccoon/yolo/frame'
ERROR_MESSAGES = 'raccoon/errors'
SHUTDOWN_CMD = 'raccoon/system/shutdown_cmd'
SHUTDOWN_STATUS = 'raccoon/system/shutdown_status'
HEARTBEAT_CMD = 'raccoon/system/heartbeat_cmd'
static servo_mode(port: int) str
static servo_mode_command(port: int) str
static servo_position(port: int) str
static servo_position_command(port: int) str
static back_emf(port: int) str
static bemf_scale_command(port: int) str
static bemf_offset_command(port: int) str
static analog(port: int) str
static digital(bit: int) str
static motor_power_command(port: int) str
static motor_mode_command(port: int) str
static motor_stop_command(port: int) str
static motor_velocity_command(port: int) str
static motor_position_command(port: int) str
static motor_relative_command(port: int) str
static motor_pid_command(port: int) str
static motor_position_reset_command(port: int) str
static motor_power(port: int) str
static motor_position(port: int) str
static motor_done(port: int) str
static is_command_channel(channel: str) bool

Whether channel carries COMMANDS rather than VALUE data.

A channel is a command channel when its name ends in _cmd or contains the /cmd/ segment. Command channels are never deduplicated — re-issuing the same command is meaningful and must always be delivered. Mirrors raccoon::Channels::isCommandChannel in the C++ transport.

class raccoon_transport.channels.ProtocolChannels

Internal protocol channels used for reliable and retained delivery.

ACK = '__raccoon/ack'
RETAIN_REQUEST = '__raccoon/retain_request'
static reliable_channel(channel: str) str

Return the wrapped channel name used by the reliability layer.