Robonix skill that converts Chinese/English text into pen-up/down
waypoints and executes them through the plotter primitive.
The skill never talks TCP or PLC. It resolves
robonix/primitive/plotter/{trajectory,home,geometry} through Atlas and
sends absolute millimetre waypoints. Homing and the global motion profile
remain primitive tools (plotter_home, plotter_set_params); this skill
never sends SET_PARAM.
The MCP tool returns success, message, points, the planned bounding
box (min_x, max_x, min_y, max_y), and elapsed_s. Every call
validates the complete plan before moving. Out-of-workspace points, an
empty plan, or more than max_points waypoints return success=false with
no motion.
dry_run=true plans and validates only; auto_home=true runs the
primitive home routine after a successful write. Numeric request fields use
0 as “use the configured default” (origin_y <= 0 selects the configured
value, where a negative config means top alignment).
The vendored single-stroke font contains no punctuation: ,。!?:;、
and their ASCII equivalents raise TextError instead of being silently
dropped. ASCII letters (both cases), digits, spaces, and newlines are
supported. There is no left/centre/right alignment; horizontal placement is
origin_x.
Boot ordering
This skill must come afterprimitive-hdu-cartesian-plotter-rbnx in the deployment
manifest. Activation resolves trajectory, home, and geometry; if the
primitive is not registered yet, activation returns Deferred and retries on
the next MCP call.
The mirrored capabilities/primitive/plotter/* files exist only so
rbnx codegen --mcp emits the gRPC stubs this skill calls. They are not
listed in package_manifest.yaml, so Atlas does not treat the skill as a
provider of those contracts.
Config
Deployment config lives in the write_text skill config block of
robonix_manifest.yaml. Full defaults and
constraints are in config.spec.
# Drawable area and pen heights are NOT configured here. They are read
# from the primitive's `geometry` contract on activation, so this skill
# carries no machine-specific numbers and works on any sized rig.
font_size_mm: 10.0 # cap height
line_spacing: 1.5 # baseline-to-baseline = font_size_mm * line_spacing
letter_spacing_mm: 0.5
origin_x: 5.0 # left edge of the text origin
origin_y: -1.0 # negative -> default: block top-aligned at workspace top
auto_home: true # as shipped in robonix_manifest.yaml
resolve_timeout_s: 60.0
max_points: 50000
trajectory_timeout_s: 600.0
Per-call MCP fields override the config. Numeric fields use 0 as the
“use configured default” sentinel; a negative configured origin_y selects
the default top-aligned layout.
Speed, acceleration, deceleration, and jerk are not skill config. They
are global PLC parameters; set them once with plotter_set_params and they
survive every write.
Coordinates and pen heights
Units: millimetres; paper origin at the lower-left, +X right, +Y up.
The drawable area (x_max/y_max) and pen heights (z_up/z_down) are
read from the plotter primitive’s geometry contract on activation
(get_geometry()); this skill hardcodes none of them. If the lookup fails,
activation degrades to the configured fallback workspace.
The skill encodes z_up / z_down into every waypoint; the PLC uses the
per-point z.
Build / run standalone
The deployment shares one uv environment at the repository root; this package
does not carry its own requirements.txt.
skill-write_text-rbnx
Robonix skill that converts Chinese/English text into pen-up/down waypoints and executes them through the plotter primitive.
The skill never talks TCP or PLC. It resolves
robonix/primitive/plotter/{trajectory,home,geometry}through Atlas and sends absolute millimetre waypoints. Homing and the global motion profile remain primitive tools (plotter_home,plotter_set_params); this skill never sendsSET_PARAM.Capability surface
robonix/skill/write_text/driverDriver(CMD_INIT, config_json)— lifecycle gaterobonix/skill/write_text/writewrite_text_write(text, font_size_mm, line_spacing, letter_spacing_mm, origin_x, origin_y, dry_run, auto_home, workspace)The MCP tool returns
success,message,points, the planned bounding box (min_x,max_x,min_y,max_y), andelapsed_s. Every call validates the complete plan before moving. Out-of-workspace points, an empty plan, or more thanmax_pointswaypoints returnsuccess=falsewith no motion.dry_run=trueplans and validates only;auto_home=trueruns the primitive home routine after a successful write. Numeric request fields use0as “use the configured default” (origin_y <= 0selects the configured value, where a negative config means top alignment).Text pipeline
The vendored single-stroke font contains no punctuation:
,。!?:;、and their ASCII equivalents raiseTextErrorinstead of being silently dropped. ASCII letters (both cases), digits, spaces, and newlines are supported. There is no left/centre/right alignment; horizontal placement isorigin_x.Boot ordering
This skill must come after
primitive-hdu-cartesian-plotter-rbnxin the deployment manifest. Activation resolvestrajectory,home, andgeometry; if the primitive is not registered yet, activation returnsDeferredand retries on the next MCP call.Driver-init lifecycle
scripts/start.shexecspython3 -m write_text.main.CMD_INIT: parse and validate config only; no primitive connection.CMD_ACTIVATE: resolve the three primitive contracts through Atlas, then readgeometryonce to refresh the workspace.CMD_DEACTIVATE/CMD_SHUTDOWN: close the gRPC channels.Layout
The mirrored
capabilities/primitive/plotter/*files exist only sorbnx codegen --mcpemits the gRPC stubs this skill calls. They are not listed inpackage_manifest.yaml, so Atlas does not treat the skill as a provider of those contracts.Config
Deployment config lives in the
write_textskillconfigblock ofrobonix_manifest.yaml. Full defaults and constraints are inconfig.spec.Per-call MCP fields override the config. Numeric fields use
0as the “use configured default” sentinel; a negative configuredorigin_yselects the default top-aligned layout.Speed, acceleration, deceleration, and jerk are not skill config. They are global PLC parameters; set them once with
plotter_set_paramsand they survive every write.Coordinates and pen heights
x_max/y_max) and pen heights (z_up/z_down) are read from the plotter primitive’sgeometrycontract on activation (get_geometry()); this skill hardcodes none of them. If the lookup fails, activation degrades to the configured fallback workspace.z_up/z_downinto every waypoint; the PLC uses the per-pointz.Build / run standalone
The deployment shares one uv environment at the repository root; this package does not carry its own
requirements.txt.rbnx bootlaunches the skill from the manifest. To run it manually, use the same Atlas endpoint as the primitive:Tests cover the pure geometry and config layers; they need neither the Robonix runtime nor a PLC.
Verification
Then use a dry run before moving:
An empty plan or an out-of-bounds plan returns
success=falsebefore any motion. Unsupported punctuation fails the same way.Limits
origin_x/origin_y.License
MIT. See LICENSE.