Skip to content

3.0.0

Choose a tag to compare

@PCrnjak PCrnjak released this 22 Nov 22:05
· 1 commit to main since this release

Added

  • get_motion_settings(): the session's speed, blend, profile, IK solver and completion policy, which every queued
    move starts from; the status carries them as motion_settings, and the dashboard shows them next to the control
    badge.
  • A blended Cartesian chain measures how far its commanded tool path strays from the programmed one
    (last_diagnostic.cartesian_path_deviation_m; a log warning above 0.2 mm). It is not refused for it.
  • A new warning, BLEND_DEGRADED (5111): a chain of blended moves that could not be planned as one path runs its moves
    one by one, each stopping at its target — the activity log now says so and why.
  • get_status() and the status stream carry rti_alive: false once the robot's real-time loop has not ticked for
    0.5 s. Every other value is then the last one it wrote, not live.
  • A new error, COMMAND_NOT_A_NUMBER (1209): what the robot commanded a joint, its position or its speed, was not a
    number. The robot stops; meanwhile the joint holds where it is measured.
  • A new error, ESTOP_CHANNEL_FAULT (1003): the E-stop's two channels disagreed past contact bounce (a broken wire or
    contact on one channel). It latches next to ESTOP; before, only a log line said why the E-stop read pressed.
  • A new warning, DISK_LOW_WARNING (8003): the SD card has less than 500 MB free (checked every 30 s; it clears above
    550 MB). A full card stops the logs, the recordings and every saved setting; nothing said so unless the dashboard's
    health card was open.
  • The recorder saves an incident when the robot's real-time loop stops without latching an error: TRACE_STOPPED
    (the loop stalled) or RTI_DIED (its process is gone) — a service stop or restart saves none.
  • A new warning, PROCESS_HUNG_WARNING (8004): a program of the robot software still running but stuck (its sign
    of work has not moved: RTI 2 s, the executor 10 s, the self-collision worker 5 s, the recorder and the dashboard
    30 s; longer at their start). The supervisor finds it, the error list names the program (P_RECORDER:...), the
    health card too — also when RTI itself is stuck. Nothing is restarted on its own.
  • A new error, VELOCITY_LIMIT_VIOLATION (5013): a planned move would drive a joint faster than its speed limit;
    nothing is sent (every move checked its acceleration only).
  • logs/ keeps to 300 MB in all: over it, the supervisor deletes the oldest rotated copies (*.log.N) first, never
    a live log.

Changed

  • Command protocol 4: joint numbers count from 1 in jog() and set_pid_gains() (1 is J1, as everywhere
    else in the API, the dashboard and the error messages); 0 is refused. Add 1 to the joint number a program
    passed. set_sound()'s node is now drive: 1 for J1 up to the last joint, one more for a CAN gripper
    (node=1, J2, becomes drive=2). A client that speaks an older protocol is refused at connect(); a raw JSON
    client must send "protocol": 4 for these commands (CLIENT_TOO_OLD otherwise).

  • rti_set_vel_scale() takes a percent like every other share: 10 is 10 % (it was 0.1).

  • Blended moves keep their own settings. In a chain of blended moves (zone, tolerance, ruckig_corner) every
    move ran at the FIRST move's speed / accel / jerk, and duration was never read. Now each move runs at its
    own speed on its part of the path and a corner at the slower of its two moves; a duration becomes the speed at
    which that move alone would take it (inside a chain the time is approximate — usually shorter); the acceleration
    of a zone / tolerance chain is its smallest accel (ruckig_corner: each move its own accel and jerk).
    A chain with different speeds takes longer than before.

  • The corner before a move with blend=0 is rounded: a move with no blend right after a blended chain (the same
    kind of move and profile) joins the chain as its last member. The arm stopped at that corner before.

  • Each corner of a chain uses its own move's blend_continuity (every corner took the first move's; mixing c1 and
    c2 with tolerance overshot the tolerance).

  • The motion waits wait as long as the move takes by default: wait_idle(), wait_motion_complete(),
    wait_gripper_move_complete(), wait_holding_part(), wait_released_part() and every move's wait in sync mode
    (they gave up after 120 s, and a timeout of 0 also meant 120 s). None waits as long as it takes, a number that
    many seconds, 0 checks once without waiting. A failed or stopped move, a lost connection or a stopped RTI still
    ends the wait with an error. The state waits (wait_mode(), ...) keep their short limits.

  • The session motion settings (set_joint_speed(), set_blending(), set_profile(), set_ik_solver(),
    set_completion_policy()) go back to their start values when control passes to another client or is released
    (they outlived the program that set them and reset only on an executor restart — a gripper swap does one).

  • A joint number or an I/O pin that is not a whole number is refused (joint_test(2.7) tested J2); a raw client's
    enter_flashing_mode takes only true / false (any other value was logged as "operator confirmed parked").

  • autorun.service is the only service: the rcb-runtime.service template and scripts/install_service.sh are
    removed, install.sh points to sudo bash scripts/setup_system.sh, and its check names a leftover second unit.

  • RTI's real-time priority comes from the service (rtprio.conf, LimitRTPRIO=99) only: setup_system.sh no longer
    puts cap_sys_nice on the interpreter (a Python upgrade removed it silently); a leftover one is named.

  • scripts/check_system.py refuses while the arm is enabled (its ~25 heavy imports can slow the real-time loop);
    --force runs it anyway.

  • The dashboard's Plan Preview tab loads the active preview when the tab is first shown, not during every page load.

  • The E-stop input registers a press once 2 of its last 5 reads (8-20 ms) are pressed; it needed 5 identical reads, so
    a pressed contact that chatters never registered. One glitch alone still does not. The release still needs 5.

  • Every isolated output switches off when RTI stops (a service stop or restart, or RTI ending on an error); they kept
    their level until the next start. A crash that kills the process outright still cannot do this.

  • joint_test() refuses a speed under 0.5 deg/s (BAD_ARGS; RTI refuses it too): a tiny speed was a test of hours
    with the joint on its test current.

  • home(wait=True) and wait_homed() raise HomingFailed at once when a homing they saw running is stopped before it
    finished (they waited out 3 minutes).

  • RTIClient: a second client on the same UDP port is refused ("port taken") instead of sharing it silently — a
    program that makes a new client for each session must close() the previous one first; packets
    that do not come from the robot are ignored and counted (foreign_packets). The stop is sent three times, and
    control() sends it when the callback raises or the program is interrupted (Ctrl-C) — the robot braked only after
    its command timeout, with RTI_LINK_LOST, before.

  • The per-arm homing table (temp_data/homing_arms.json) is written as compact JSON; tools/homing_arms.py lists it.

  • An unanswered homing question ends the homing after 10 minutes (config/system.xml <homing_question_timeout_s>,
    0 = wait for ever), as a stop ends it: the arm is not homed. A script that exited after home() left the arm homing,
    holding, until someone pressed Stop.

  • The robot refuses to start when a motion limit in the robot XML (a speed, acceleration, jerk or torque-rate limit,
    the ceiling or a mode's) is missing, not a number, or not above 0: a missing speed limit let every clamp pass.

  • In FLASHING, Clear Errors clears the error list without sending anything to the drives, and drive parameter writes,
    saves, set_pid_gains and storing the tool id are refused (RTI_REFUSED): the bus stays quiet while a drive is
    flashed.

  • A program started on its own after a software update that changed the shared memory refuses to start and says
    "restart the robot service" (it read stale or empty values for ever before). Restart the whole service after an
    update, not the executor and dashboard alone.

  • robots/PAR6.xml marks the settings no code reads as "NOT USED" (the network settings, the mount and gravity,
    each drive's watchdog rate, the arm joints' two-pass switch, the joint type).

  • release_control() is refused (REJECTED) while the client holds control and its own moves are still queued or
    running: wait for them (wait_idle()) or stop them (stop()) first. Released, they played on with nobody
    responsible for them, and a disconnect no longer stopped them.

  • Control no longer expires after 30 s idle while the holder's moves are still running (it expired 30 s into a long
    program, and another client could take control without force).

  • With the robot's real-time loop stopped, a move or any other queued command is refused at once with
    RTI_NOT_RUNNING (it was accepted and the client waited out its timeout).

  • In RTI mode, a change of command type within one claim restarts the rate limiter from the measured pose, and a
    change to position commands runs the start-pose check on that packet, as a claim's first packet does.

  • RTI mode refuses every servo generator but "passthrough" (RTI_REFUSED): only the pass-through checks the stream
    itself (speed, acceleration, jerk, soft limits). The others are for SOFT_RTI.

  • RTI mode: position targets whose send times stop advancing (a clock that stands still, or one too coarse for the
    stream) end the stream with RTI_NO_SEND_TIME, as a target without a send time does. The strict checks skipped
    every such packet.

  • RTI mode refuses Cartesian and unknown packet types (no command: a stream of them ends in RTI_LINK_LOST). They
    were taken, kept the link alive and only held the arm.

  • config/system.xml <rti_defaults><command_timeout_s> sets RTI mode's watchdog at every entry and is its ceiling;
    at most 0.04 s (a larger value is logged and 0.04 s used). Every entry overwrote it with 0.04 s.

  • The executor refuses a message of the wrong shape (not a JSON object, a list id or cmd: BAD_JSON; args that
    is neither a list nor an object: BAD_ARGS) and answers an unexpected error with INTERNAL, keeping the connection. Both closed it,
    which stops that client's running moves. A message over 16 MB without a newline closes the connection.

  • delay() pauses at most 600 s (INVALID_DURATION above; call it again for a longer pause): a pause is planned
    as one row per control tick, so delay(3600) held ~110 MB in the executor, and above ~2.3 h it failed with
    SEND_TIMEOUT partway.

  • A move's duration that is infinite or not a number is refused with INVALID_DURATION (infinity was accepted and
    the move ran 1000 times slower).

  • A queued move with too few values, or a value that is no finite number, is refused at once (BAD_ARGS): it failed
    only while planning, as PLAN_FAIL, and aborted the program. So are, with BAD_OPTIONS, jerk on a profile other
    than ruckig, ramp_fraction on one other than trapezoid, a blend that is negative or not a finite number
    (it meant no blend, infinity the largest) and a samples that is no whole number.

  • G-code: G4 reads P as milliseconds and S as seconds, as slicers write it (P was seconds: a sliced
    G4 P500 paused 500 s). A G or M number with a fraction (G91.1 was read as G91) and a P or S that no G4,
    G64 or M code on its line takes are refused.

  • A refused move_pose() says whether another arm configuration reaches the pose, and names its joints (what
    is_reachable() answers), or that none does.

  • The activity log names a command passed to RTI as the program sent it: jog(1, -1, 20), not RTI's
    jog(0, -1, 0.2).

  • enter_idle_mode() is refused with motors off (safety_stop()) and during firmware flashing, naming the command
    that ends each (release_safety_stop(), exit_flashing_mode()); it ended both. stop() and disable() still
    end both.

  • Stop, Disable and an error latching silence a tune that is playing (the error tune plays after it).

  • A tone never asks a drive for more current than that drive's own current limit from the robot XML (J6: 1200 mA).

  • A Cartesian move asked faster than its 20 % cap says so: the reply carries a note and the activity log the same.

  • The activity log debounces per error, not per code: six joints latching one code are six entries (they were one).

  • RTI refuses a malformed jog, set_gripper, jog acceleration or jog jerk factor by name (RTI_REFUSED); a jog
    outside JOG mode too. They were answered "ok" and ignored, or a bad number raised in RTI's command guard.

  • The I/O uses only the 40-pin header's GPIO controller (the Pi 5's pinctrl-rp1): any GPIO chip that opened was
    taken. RCB_GPIO_CHIP still picks one explicitly.

  • RTI no longer sends a "done" message after every command to a socket nothing reads (left from before the executor
    rewrite), nor calls an empty function every tick; unused helpers are removed.

Fixed

  • The dashboard kept every page that never connected (one loaded by a script or a link preview, a tab closed or
    reloaded while it loaded): its timers waited for the browser for good and held the whole page, ~8 MB each, until
    the dashboard restarted. They are released when NiceGUI deletes the page.
  • RobotClient: after a fast disconnect() + connect() the old connection's receiver could end late and mark the
    new connection lost, failing its commands.
  • The dry-run client's status matches the robot's: a planning failure is no latched error (it sat in errors for
    good, so wait_error_reset() never passed), motion_aborted names it; its session settings refuse a bad value with
    CommandRejected (BAD_ARGS) as the robot does (a bare ValueError; any completion policy was taken).
  • Cartesian moves on the default profile were jerk-limited by J1's limit alone (the solver took the first of the six
    joint limits it was handed; J2 allows less than a third of it), and with duration by none; the path's limit is
    now the joints' mapped onto the path.
  • A refused set_joint_wall stayed in the executor (the next save_joint_walls() wrote it to the robot XML);
    reload_zones gave the planner zones RTI had refused; clear_errors cleared the motion abort when RTI had refused
    the clear. Each now takes effect only once RTI took it.
  • Infinity in a whole-number argument answered INTERNAL (BAD_ARGS now); rti_connect with a JSON null rate
    was judged SOFT_RTI before it was forwarded as hard RTI.
  • A re-home started with the last homing's per-joint results and "homed"; both are cleared at its start.
  • Two tunes in a row on the q axis at rest could raise HOLD_OSCILLATION_WARNING on the playing joint: the tune's
    own current swing. That joint's check skips the tune.
  • OVERSPEED never armed for a joint already over its trip speed when the checks resumed (after homing, a safety stop,
    a flash); it does now.
  • A Hall-homed joint latched its home reference after the stop (up to ~0.2 degrees off) when the trigger tick's
    position read came back empty (about one homing in seven); it takes the newest valid read.
  • A zone file that failed while it was installed could leave the safety monitor with the new zones and the old
    per-zone lists (an error in every tick); the new set is built first.
  • The drive checks' module was first loaded inside RTI's loop; a fault recording's copy cost ~0.8 ms of one tick
    (now ~0.5 ms).
  • A cut-off activity-log entry (the process ended mid-write) and the next run's first entry shared one line, so
    neither could be read; a cut line now gets its newline first.
  • The executor built its status 50 times a second with two parses of the error list and a scan of the recipe folder
    each time; it reads each once (the recipes at most once a second).
  • move_pose() could not reach a target more than ~92 degrees away in any joint, nor a half turn of the tool: it
    failed IK_POSE_ERROR though is_reachable() said the pose is fine.
  • Blending at speed (exact_velocity): the corner was sent twice, so the arm stood still for one tick at the corner
    while every speed said it moves.
  • A Cartesian curve of many turns (a 10-turn circle) made arrays of over 1 GB, several at once, in its path check; it
    now checks in blocks (the same result, ~40 MB at most).
  • The planner's ACCEL_LIMIT_VIOLATION named the joints from 0 (J0 for J1); it names them J1 up, like every other
    message.
  • Blending: a move blending at speed into a move that joins a blend chain (ruckig_corner) stopped dead at the
    corner; it now ends at rest there.
  • Blending: a move committed a corner speed into the next one after checking only the next move's two ends. A next
    move that failed later — its path through a stop zone or the arm itself, an impossible duration, a slow move
    on the trapezoid profile that could not start at that speed — left the arm to stop dead from that speed. The
    next move is now planned in full first; when it fails, the move before ends at rest. A next move that still
    fails on its turn brakes to rest along its own line from the corner speed, then reports its error.
  • Blending: a Stop at the wrong moment could let the stopped program's blended move run after the next program
    started; it is dropped.
  • Blending: a chain ending in repeated identical targets could end the program (an empty batch); each repeated
    target now completes in turn.
  • Blending: after a failed send in the middle of a chain, the later moves were never reported (their programs
    waited out their own timeouts); they are reported ABORTED, and a failed send no longer logs the move completed.
    The same now for a chain that holds its tail for more moves and for the tail sent later.
  • Blending while moves keep arriving (a G-code stream): a tolerance (G64) was read as a radius after the first
    part of the stream (P0.05 rounded corners by 0.05 mm, the arm nearly stopping at each); the later parts ran at the
    last move's speed with the full acceleration (not accel), with c1 corners and the first new move's IK solver,
    and without the acceleration check every other plan has. They are planned as one chain of the same moves would
    be. A repeated target at the end of such a part could still give an empty batch; it completes in turn.
  • A second supervisor (a second service unit, or one started by hand next to the service) started a second RTI on the
    same CAN bus; it now refuses to start, naming the one that runs (a lock released when that one ends).
  • setup_system.sh and check_system.py checked different module lists (pinokin, which nothing imports; no
    coal, which the self-collision check needs): one list, scripts/required_modules.txt.
  • The dashboard: every page load left its command thread and its connection to the executor behind and added the
    block editor's routes again, until the dashboard restarted. A closed or reloaded page now lets go of its connection
    once nothing it queued still runs; the routes are added once per dashboard process. (A closed page's memory is still
    kept: about 8 MB per page load until the dashboard restarts — not fixed yet.)
  • The dashboard's pages stalled on slow work: the Time card ran timedatectl every 10 s for every open page, the Plan
    Preview loaded its file at every page build and checked it 30 times a second, and a leftover diagnostic table on
    the Plots tab read hundreds of system files a second (removed). The first two now run on a thread.
  • A corrupt plan-preview file took every dashboard page load down. A tab that fails to build now shows "unavailable",
    and a failing table refresh logs once, then a line a minute, instead of ten tracebacks a second.
  • The Sound card showed a refused change as saved, and clicking again sent nothing; it now records a setting only
    once the robot has taken it.
  • A read of the error list that met a write half-done reported "no errors" (and a cut character raised); it now
    reads again and otherwise keeps the last list it read whole. The test recordings' reader drops a row the robot
    began rewriting while it was copied (it passed with mixed data).
  • The start's drive check said every drive "holds what RTI sent" when a drive had answered nothing; it now names a
    drive it could not read or identify.
  • A drive's own fault recording: a fault right after Clear Errors was overwritten by the drive's re-arming, a failed
    save (a full card) lost the recording for good (it is tried again every 30 s), and a recording without its fault's
    moment was drawn with "fault" at its first sample.
  • After a simulator run, the executor warned at the next start that every drive's firmware was too old: it read the
    simulator's numbers before RTI had read the real drives. RTI now clears them at its start, and the executor judges
    only what this RTI run reported.
  • A program that changed its shared memory's joint count (setup(joints=N)) always crashed.
  • RTI: a position packet after a torque stream was planned from where the arm was before the torque stream: a step
    as large as the torque had moved the arm, which no check judged.
  • RTI: the PC's speed feedforward reached the drives unclamped in SOFT_RTI and with the rate limiter off (a client
    sending deg/s sent 57 times too much); it is clipped to the RTI speed limit, with a warning once per claim. With the
    rate limiter off, velocity commands are clipped to the speed limit too, as documented.
  • A commanded position or speed that is not a number ended RTI (the drives let go, homing was lost); the joint now
    holds and COMMAND_NOT_A_NUMBER latches.
  • Clear Errors also wiped an error that latched during its 0.15 s settle, leaving the robot disabled with no error
    shown; it now wipes only what was latched when it was pressed. A fault still present no longer reads "no error"
    for a few ticks before latching again (with the error tune and the gripper freeze a second time).
  • A queued command with a numeric id (raw JSON clients) was acknowledged and never completed or failed.
  • The dashboard's Recordings tab loaded and offered for download any file the robot's user can read, when the
    browser named it; it takes recordings only. Arm and client names in its dialogs are shown as plain text.
  • Block programs saved before 0.9.0: a POSE block's typed angles are converted to today's angle convention, as the
    taught points already were (the tool turned to another orientation).
  • RTI: a host flooding the RTI port held the real-time loop in its UDP read (now at most 64 packets a tick); the state
    and telemetry packets went out on blocking sockets (a full send buffer could stall the loop); a failing state send
    logged a warning every tick (250 a second with a pulled cable; now once, then one line when sends resume).
  • RTI: an error stop's error (a refused value, a lost link) was dropped when the mode changed while the arm was still
    braking (a Stop or Disable meanwhile); it is raised then.
  • EXEC: a pause during a move's settle hold kept that move from completing until resume.
  • The executor's status watcher and completion listener ended silently on an unexpected error: no move completed any
    more and the status stream froze. They log it and carry on.
  • Control's 30 s idle expiry used the wall clock: a clock step (time sync) could expire the holder at once.
  • RobotClient.wait_idle() could return no failure for a move that had just failed (the failure was recorded after the
    waiter woke).
  • Brake on idle was one unanswered frame per joint at RTI's start: one lost frame left a coast saved in the drive in
    force (J2 / J3 drop when idle). It is sent three times, and the start-up drive check now reads it: a joint found
    coasting gets GAINS_MISMATCH_WARNING and is sent brake again.
  • An error that ended EXEC, JOG or RTI mode skipped that mode's exit: exec_paused / exec_stopping stayed 1 through
    the error and after it (a wait on them hung), and the mode's queued trajectory, jog session or RTI claim stayed.
  • One drive missing at start: the start-up self-check waited 0.4 s for it, every healthy drive's watchdog tripped,
    and the error list blamed all of them. The start-up clear goes out again after a slow self-check.
  • The Hall check, a freed joint and a joint test restore the joint's current limit with frames that could all be
    lost (a joint left limp at 0 mA); the restore is sent again five times over the next second while in IDLE.
  • A self-collision worker that stopped while the robot was in IDLE was noticed 0.5 s into the next move, whose escape
    baseline came from the stopped worker's last data. It is watched in every mode now.
  • Log rotation on a full SD card shifted the older copies before copying: every failed copy pushed one more out (all
    three gone within 6 s), retried every 2 s. The copy is made first now, and a failed one is retried after 10 minutes.
    critical_errors.log is rotated by one process (two did, each renaming it under the other).
  • The per-arm homing table: a corrupt or unreadable file became an empty table silently (the arm check off for three
    homings, the file's history overwritten) — it is kept as a dated .corrupt copy; an entry missing a key ended the
    real-time loop at a homing's end — it is dropped or completed on load. Copying it at a homing's end cost the
    real-time loop 2.5 ms per arm learned, and writing it held the loop up to 6 ms more.
  • Two edits of config/system.xml or the robot XML at the same time (the sound settings, the active gripper, the
    recorder settings, the time zone, a saved drive parameter, the freedrive walls) could lose one, or rename in the
    other's half-written file: one edit at a time now, each with its own temporary file.
  • The recorder dropped a pending incident or a running capture when the real-time loop restarted, and a failed write
    left a temporary file that pushed real incidents out of the newest 20.
  • Saving a drive parameter to the XML worked once per executor start; the second save was refused.
  • RTIClient: a client created with transport="tcp" that connected over UDP never received the robot's state; a
    second claim() and control() on one client ended at once or raised a false ControlLost.
  • wait_holding_part() and wait_released_part() judged the last gripper result the client had received, not the
    command they waited for (a stale "holding" passed after a stop or a refused close).
  • Command ids came from Python's global random generator: a script that re-seeded it could give two commands one id.
  • The dashboard's Firmware tab: every .bin upload failed on the installed NiceGUI; and a page loaded while a flash
    ran showed none running, offering to put the robot software back on the bus mid-flash. One flasher session now
    serves every page.
  • The supervisor stopped the shell around each program, not the program: a restart could run two copies for seconds
    (two real-time loops, or "address already in use"). It also restarted a program that crashed at its start every
    2 s for ever; it now backs off (up to a minute) and names the crash loop in its log.
  • A malformed gripper file stopped the robot from starting even when another gripper was selected; it is skipped
    with a warning (a malformed selected one still stops the start, with its reason).
  • Every program reset the shared Clear Errors / reload requests when it started, so a pending Clear Errors could be
    lost; only the real-time loop resets them now.
  • The dry-run client (DryRunRobotClient: the block editor's Check, the plan preview): the RobotClient methods it
    does not replace raised AttributeError (close_gripper() then wait_gripper_move_complete(), set_payload(),
    enter_idle_mode(), ...); a command that needs the robot raises RobotConnectionError now. It accepted what the
    robot refuses when a command is sent: a per-move completion_policy, a blend, jerk or ramp_fraction the move's
    profile cannot use, too few or non-finite values, an I/O pin other than 1-3, a gripper command without a CAN
    gripper, a move after a known failure — refused with the robot's code now — and a gripper current above the
    gripper's limit, which fails BAD_ARGUMENTS once planned, as on the robot.
  • The dry-run client reports failures as the live client does: every failure dict has id;
    wait_motion_complete() raises CommandRejected (was MotionFailed); wait_idle() reports each failure once;
    on_error() no longer gets planning failures. After a failed move, clear_errors() lets moves plan again (every
    later move stayed ABORTED); stop() fails the moves not planned yet with STOPPED (they vanished) and the next
    move starts where the program ended, not at the start joints.
  • RobotClient: the callback thread that runs on_status_change(), on_motion_error() and the other callbacks
    never ended, one idle thread left behind per connection. It now ends when the connection is closed or lost, after
    the callbacks already due.