Skip to content

Releases

3.0.1

Choose a tag to compare

@PCrnjak PCrnjak released this 23 Nov 15:35

Changed

  • A chain of blended moves starts 0.2 s after its first move arrived. It waited for 0.2 s with no new move (or for
    100 moves), so moves sent a little faster than every 0.2 s kept the arm still for up to ~20 s. Moves that arrive
    after the start are spliced into the running chain as before. Sync mode (waiting for each move) never blends.
  • A queued move's reply (note) and the activity log say when one of its own settings will not act as asked: a
    blend in percent (exact_velocity) on a move that cannot carry a corner speed (only move_joints with the ruckig
    or trapezoid profile does; the move ends at rest), and a duration on a move that joins a chain of blended moves
    (approximate there: the speed at which that move alone would take that long).

Fixed

  • api_tests/42_arbitration.py (in the smoke routine) failed when the dashboard's Takeover approval was ON: its
    forced takeover waited for B2. It switches the approval off for the test and leaves it as it found it (it always
    left it off), and it disconnects its two clients (only a failed reset of the approval did).

Removed

  • Code nothing used: RTI's override queue (checked every tick, never filled), the error pass's on_hard_error
    hook (nothing passed one since the recorder makes the incident files), hardware/can_hardware.py's
    initialize_can_system() and its demo, which opened the CAN bus and scanned it when the file was run by hand.

3.0.0

Choose a tag to compare

@PCrnjak PCrnjak released this 22 Nov 22:05

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 onl...

Read more

2.0.0

Choose a tag to compare

@PCrnjak PCrnjak released this 20 Nov 10:46

Added

  • The dashboard's status bar shows the active gripper or tool (TOOL: <name>, none without one).

  • A tool without a drive (the Flange, a vacuum tool, MHZ2-10D) is changed live too, both ways: from a gripper with a
    drive to the Flange and back, without restarting the robot service. The Change-gripper mode works with any tool;
    the card lists every tool file ("(no drive)" marked), and Done does not wait for a drive that is not there. Coming
    from a tool without a drive, the new gripper's drive is checked (product, tool ID) once it answers, and its loss is
    reported after one second if it never does.

  • The dashboard's Change gripper is one step: with the arm enabled and homed it moves the arm to the pose a homing
    ends in (a checked move at 25 %), then disables it and begins the change; every joint holds at zero speed while the gripper is
    swapped. The card tells you when to unplug the gripper. After Done it offers "Home the arm".

  • A held jog has a dead-man. The dashboard's browser tells the robot every 0.2 s while a jog button or joystick is
    pressed (jog_alive(), new); a jog whose keep-alives stop for 0.6 s — a lost button release, a context menu, a tab
    switched or a lost connection — is stopped. RTI brakes a jog when the executor stops answering for 0.5 s. The
    jog buttons react to the left mouse button only and work on a touch screen. A program's jog() is unchanged.

  • The command check: in EXEC, JOG, RTI and SOFT_RTI the robot checks what it commands each tick — the commanded
    speed, the speed of each position step, the acceleration and the position — against the robot's speed and
    acceleration limits times a margin (1.2) and the soft limits. Every mode plans within those limits, so a command
    beyond them is a fault in the robot's software. It ships warning-only (COMMAND_JUMP_WARNING, 1208); set
    <safety_monitor><command_check> in config/system.xml to stop (COMMAND_JUMP, 1207) once normal use shows no
    warnings. Homing is not checked.

  • tools/run_nets.py --changed [REF] runs only the tests a change touches.

  • The first-run check (tools/first_run.py) has stages 4 and 5, and runs stages 0-5 by default. Stage 4 homes the
    arm and explains a failed homing for a builder: the robot's own reason, with what to check for that kind of failure.
    Stage 5 checks the homed arm: the gripper closes and opens, and a slow J1 move is stopped part-way.

  • The dashboard's First run tab runs the first-run check: choose the stages, Start; its questions are buttons,
    a wait has a Skip button, Stop the run ends it early; the transcript shows every result with what to check; the
    report and earlier reports can be downloaded. The check runs as its own process (tools/first_run.py --ui json),
    so a reloaded page finds the run again, and the dashboard stopping ends the run cleanly (the move in progress
    stopped, the report written).

  • The first-run report can carry the support bundle (tools/first_run.py --bundle ask | yes | no, default ask):
    one zip with the report, the logs, the incident recordings and the configuration — what to send when asking for
    help. Like the Logs tab's bundle it needs the arm disabled.

  • The dashboard shows what each drive does when idle (disabled, Idle, a watchdog trip): "brake" (it resists being
    turned and slows to a stop, but does not hold a position) or "coast" (it turns freely), as the drive reports it —
    the Gripper tab's "When idle" line and the Motor tab's "When idle" column. RTI asks every drive for its identity
    every ~4 s; drive firmware before 109 does not answer and shows "---".

  • Homing asks instead of failing when a joint homes more than 1 deg from where this arm's joint always homes (for
    example after the gripper was re-fitted): the joints homing in the same step finish, then the arm holds and the
    dashboard asks "Accept as new reference" (the robot keeps the new spot and homing goes on, no second homing) or
    "Stop homing" (the homing ends, not homed: park the arm and home it again). From a program:
    status()["homing_question"], accept_homing_reference() or stop(), and home(wait=True) / wait_homed()
    raise the new HomingQuestion. It asks once the arm is recognised from the joints homed before; a first joint
    that matches no known arm still fails the homing.

  • <homing_max_travel_deg> per joint in the robot XML: a joint whose homing search turns further than that from
    where its homing began stops and fails its homing with that reason (a start pose away from the park pose, a dead
    Hall sensor, a missing endstop). PAR6: J1 150, J2 90, J3 100, J4 220, J5 240, J6 150 deg — 1.3-2x the largest
    travel of its last 98 homings. A gripper XML can replace a joint's limit (<arm_joint_homing_max_travel_deg>):
    the bare Flange's J6 gets 360 deg (nothing turns with it, and it can start at any orientation); the grippers,
    Vacuum and MHZ2-10D keep 150 (they start from their usual pose). Missing = no limit, as before. Until now J6, which
    homes to a Hall sensor, was limited only by its 15 s timeout (about one full turn).

  • The arm is recognised by its drives' board ids before homing (drive firmware 109+): RTI reads each drive's board id
    and calibration id at start (and a drive's again after it reconnects), and the start-up log names the arm. Homing then
    checks every joint against that arm, the first one too. Another arm's boards = a new arm, learned on its first homings
    without "Learn a new arm"; a replaced or recalibrated drive (5 of the 6 boards still match) = the warning
    J<n>:DRIVE_CHANGED_WARNING (2113) until a homing stores it. An arm learned before gets its boards at its next homing.
    The dashboard shows the board ids (Motor tab, the Gripper tab) and which arm they name (System Info, Arms).

  • A Drive parameters tab and read_drive_parameters() / get_drive_parameters(): every parameter each drive holds
    (about 90: gains and limits, the motor model, the control loops, the watchdog, the build, the board ids), read on
    demand — "Read all" or one drive, and by default when the tab opens (a switch, remembered per browser) — and once
    by RTI itself 4 s after it starts, so they are at hand from the start. RTI asks one
    parameter every other status poll, so the frames per tick and the control loop stay as they are (about 5 s for every
    drive). The gains and limits RTI sends from the robot XML show the XML's value too when the drive holds another.

  • Each drive records its own next fault (drive firmware 109+): armed at start, after Clear Errors and after each read,
    it keeps the motor current, speed and position error at 1562 Hz from 0.5 s before the fault; the robot reads it
    back after the fault (2 samples per request in the status-poll slot: the per-tick data is never delayed) and saves it
    in temp_data/drive_captures/; the Recordings tab plots it with the fault at 0 ms.

  • Two checks of the drives 12 s after the robot starts: each drive holds the gains and limits the robot sent it (after the
    start-up parameter read; otherwise J<n>:GAINS_MISMATCH_WARNING (2114), both values in the log), and each is the
    product its <driver_type> names (otherwise J<n>:DRIVE_PRODUCT_MISMATCH (2115): the arm cannot be enabled until the
    drive or the XML is fixed).

  • Changing drive parameters, one value at a time and read back after: the gains and limits RTI sends are applied live
    (a joint) and saved with save_drive_parameter_to_xml() into the robot or gripper XML — only that number changes in
    the file, every comment stays, a copy goes to temp_data/xml_backups/ first, and the file is read again and put back
    unless that one value changed; the next start uses it. A tuning set of the drive's own values (its motor model, loop
    bandwidths and speed estimate, commutation delay, filters, the watchdog fallback, the anti-cogging and encoder-table
    switches, ...) is written into the drive with write_drive_parameter() while the arm is disabled, and kept after a
    power-off once save_drive_config() stores the drive's whole working config in its flash (arm disabled, after a
    confirmation in the dashboard; the drive does not answer for up to a second while it saves, and the robot does not
    report it lost for 3 s). Everything else stays read-only.

  • Sound through the motors (drive firmware 109+): a chime when the robot is ready after it starts (~13 s, skipped
    when an error is latched then), a chime when homing ends, a tune when an error latches, identify_arm() ("which arm
    is this?", open to every client) and programs' tones (beep(), play_tune(), and a "beep" block in the Blocks
    editor's I/O). Each of the five is switched on or off in config/system.xml's new <sound> block, on the System
    Info tab's Sound card or with set_sound(), which also chooses the playing drive (J2 as shipped: the loudest on
    PAR6), the axis of the robot's own sounds (q as shipped: louder, the tone is a small torque at its pitch, played
    at rest where nothing judges it; d: no torque), the loudness and the sound's voltage cap, and saves them in
    system.xml (only those values change, every comment stays, a copy goes to temp_data/xml_backups/ first).
    Programs' tones always play on d: they can sound during a move, where the contact and collision checks read the
    motor current. Nothing moves; a drive plays while it holds, so the arm may be enabled or disabled, not with the
    motors off. A tune's few frames go out in the status-poll slot: the per-tick data is never delayed.

  • A library of 15 short tunes for the robot's sounds (power_up, rise, low_double, fanfare, sweep_up,
    sweep_down, ding_dong, double_beep, chirp, fall, minor, alarm, triple_low, heartbeat,
    arpeggio): each of the robot's own sounds (ready after start, homing done, error, identify) plays the one picked
    for it on the Sound card (a ▶ plays each) or with `set_sound(boot_tune=..., homing_done_tune=..., e...

Read more

1.1.1

Choose a tag to compare

@PCrnjak PCrnjak released this 25 Oct 20:10

Fixed

  • Switching the read-first tick order at runtime (set_can_read_first()) no longer opens or closes a socket inside
    the control loop, where it could stall the loop like the loop-delay measurement did: the socket is opened once when
    the robot software starts. If it could not open then, the switch is refused (RTI_REFUSED).
  • rti_claim() and rti_release() refused with no PC paired said "sub_state is 'None'"; they now say the session
    is not paired (rti_connect() first).

1.1.0

Choose a tag to compare

@PCrnjak PCrnjak released this 25 Oct 19:06

Added

  • RTI_REFUSED (6026): the real-time controller refused a command; the message gives its reason.

Changed

  • Every command the robot passes to its real-time controller (58 of them: enable, home, the mode changes,
    stop, the jog, gripper and real-time settings, hall_check, free_joint, joint_test, set_payload,
    set_recipe, the reloads, ...) now replies with the controller's own answer. A refusal raises CommandRejected
    with its code and reason (MODE_REJECTED, ENABLE_REJECTED, HALL_CHECK_REFUSED, FREE_JOINT_REFUSED,
    JOINT_TEST_REFUSED, RTI_REFUSED); until now the reply was "ok" and the refusal reached only the activity log.
    No answer within 1 s raises RTI_NOT_RUNNING. These replies take about one control tick longer (4 to 8 ms).
    Asking for the mode the robot is already in is still answered "ok".

  • The test recordings in temp_data (what the measurement scripts in api_tests save) are kept to 500 MB together,
    down from 1 GB; the oldest runs are deleted first. On a Pi with a larger SD card, set
    utility/housekeeping.RECORDINGS_BUDGET_BYTES back to 1 GB.

  • The control loop's delay per joint is measured on request instead of live: the dashboard's RT Diagnostics card has
    a Measure button (3 s), and tools/loop_delay.py does the same in a terminal. A separate process records the CAN
    bus and reads the control loop's own timing; the control loop does nothing for it.

Fixed

  • Single control-loop ticks of 8 to 44 ms that latched LOOP_CRITICAL and disabled the arm, now and then and at
    random: the live loop-delay measurement switched a CAN socket filter inside the control loop, and that call waits
    for the operating system's network lock whenever anything else holds it. A Wi-Fi reconnect was the usual trigger.
    The control loop makes no such call any more.

1.0.0

Choose a tag to compare

@PCrnjak PCrnjak released this 25 Oct 13:02

Added

  • Full docstrings for the robot control commands (enable, disable, home, clear_errors, the mode changes,
    stop, pause, resume, safety_stop and its release, the flashing commands, and the control commands): what
    each does in every mode, every code it can be refused with, what it raises, and an example.
  • The same for every other public RobotClient method (waiting, connection and events, motion settings, jogging,
    I/O, the gripper, status and data, safety and dynamics, the real-time interface, diagnostics and service), and for
    RTIClient with its classes and GripperResult.

Changed

  • Every speed share is a percent, and the command protocol is 2. set_joint_speed(), a move's speed, accel
    and jerk, and jog()'s speed take a percent: above 0 and at most 100 (0 to 100 for jog()), so 1 means 1 %
    and 0.5 half a percent. A value of 1 or less used to be a fraction, so a program asking for "1 %" ran at 100 %;
    jog()'s speed was always a fraction. A program that passes fractions must pass percents now. A client and a robot
    of different command protocols refuse each other at connect instead of misreading a speed.
  • When the client holding control disconnects, or loses its connection, while moves it queued still run, the robot
    stops the arm as stop() does. They used to play to the end with nobody connected. Call wait_idle() before
    disconnecting to let them finish.
  • A homing that Stop, Disable or another mode interrupts leaves the arm not homed: home it again. The arm used to stay
    marked homed while the joints that had started homing still read as homing.
  • Every rti_connect() switches the rate limiter, the start-pose check and real-time gravity compensation on, and sets
    the tool speed cap back to its start value. A session used to inherit them switched off from an earlier one, from any
    PC.
  • A collision-detection change returns to its start value when the client that made it releases control, loses it or
    disconnects. It used to last until the robot software restarted. "warn" and "stop" are refused when nothing can
    be checked, and the status reports "off" while the safety monitor is off.
  • set_gravity_comp() is refused while a joint moves or a PC drives the arm in a real-time session: the switch is a
    step in the joints' torque.
  • rti_connect() is refused outside IDLE mode and the real-time mode it asks for, and while a PC drives the arm; it
    used to end a running claim without braking. rti_disconnect() is refused outside IDLE mode, the real-time modes and
    the error state; it used to end a safety stop or a firmware flash and abandon a homing.
  • The real-time interface's settings, set_gripper(), set_joint_speed() and set_blending() refuse a value outside
    their range with BAD_ARGS. A negative or NaN tool speed cap used to switch the cap off, and a set_gripper()
    current of -1 reached the drive as 65535 mA.
  • Gripper commands are refused on a robot without a CAN gripper (NO_GRIPPER), and the queued ones while the gripper is
    in motor mode (GRIPPER_MOTOR_MODE). They used to be accepted and then time out or settle without moving.
  • get_joints(), get_pose() and get_digital_input() are refused with RTI_NOT_RUNNING while the control loop is
    not running or the robot is flashing, instead of answering old values.
  • set_log_level() refuses the loggers of the robot's other processes, which it never reached.
  • The jog's ramp settings (set_jog_accel(), set_jog_jerk_factor(), set_jog_profile()) take effect once the joint
    is at rest: a longer ramp applied mid-jog could carry the joint past its soft limit. set_jog_profile() and
    set_jog_control_mode() take any letter case, and the profile also its usual other spellings.
  • Arcs, circles and splines ignore the session's default blend (set_blending()); one that passes its own blend above 0
    still fails. Every curve used to fail while a default blend was set.
  • The Hall sensor check stops by itself 2 minutes after the last hall_check(True), as a freed joint does.
  • calibrate_gripper() ends when the gripper reports itself calibrated, and drops the gripper's target: the jaws no
    longer move back to an old target 30 s later.
  • A gripper command's settle time grows at low speeds (about 30 s at speed 15); a slow full stroke used to fail after
    5 s.
  • A first real-time command too far from the arm latches RTI_START_POSE instead of RTI_LINK_LOST.
  • The client's callbacks run on a thread of their own, so a command or a wait inside one works. on_error() receives
    the robot's id-less errors, on_motion_error() the failures of a lost connection, and a failure a call already
    raised is not raised again by wait_idle(). Waits raise RobotConnectionError for a lost connection. connect()
    refuses a second connect and a connection that never answered as a robot, and starts afresh. A joint number must be a
    whole number.
  • The telemetry recipe returns to "standard" only when the control loop starts, no longer when the dashboard or
    another process restarts.
  • A client that disconnects while its jog runs stops that jog: the robot brakes the joint to rest. The joint used to
    run on until its joint limit.
  • stop(), disable() and an error stop the gripper's jaws where they are. They used to go on to their last target
    and press there.
  • joint_test() on a homed arm refuses a move past the joint's soft limits, and the other joints hold still during a
    test. They used to float in freedrive.
  • wait_error_reset() ignores the NOT_HOMED warning, which describes a state, not a fault. It never returned on an
    arm that was not homed.
  • set_pid_gains() refuses an Ilim or vel_lim above the joint's limit in the robot XML, a negative gain and the
    gripper's drive (BAD_ARGS), and refuses to run while the robot homes or the Hall sensor check, a freed joint or a
    joint test runs (REJECTED): each relies on the joint's current limit, which the command resets.
  • set_digital_output() takes only true or false, 1 or 0. The Python client raises ValueError for anything else and
    a raw client gets BAD_ARGS; the string "false" or "0" used to switch the output on.
  • rti_set_rate_limiter(), rti_set_gravity_comp() and rti_set_start_pose_check() refuse anything but true or
    false with BAD_ARGS. A raw client's string "true" used to switch these protections off.
  • move_gripper() refuses a position or speed outside 0 to 255 and a current outside 1 mA to the gripper XML's current
    limit (BAD_ARGUMENTS). The values used to wrap at 256, and a current of -1 reached the drive as 65535 mA.
  • The control box's isolated outputs start off each time the robot software starts. After a restart, an output that
    had been on used to switch back on by itself.
  • home(), enter_flashing_mode(), release_safety_stop() and exit_flashing_mode() are refused with REJECTED
    when the robot is in a mode they cannot act in: home() needs IDLE mode and an enabled robot,
    enter_flashing_mode() IDLE mode or the error state, release_safety_stop() the motors off, and
    exit_flashing_mode() flashing mode. Before, the robot accepted the call and then refused the mode change in its
    activity log only, so a wait timed out. In EXEC mode, home() and enter_flashing_mode() also cancelled every
    client's program while the arm went on playing the moves the robot already held, and the two releases acted as
    enter_idle_mode() in every other mode.
  • take_control() and set_force_confirm() accept only true or false, 1 or 0, or "1" or "0" from a raw client, and
    refuse anything else with BAD_ARGS. The JSON string "false" used to read as true, which for take_control()
    meant a forced takeover. The Python client always sent a real boolean.
  • With the takeover confirmation on, the client that holds control no longer needs the button press for its own
    take_control(force=True).
  • A command refused for the robot's mode names the way out of that mode: clear_errors() in the error state,
    release_safety_stop() with the motors off, exit_flashing_mode() while flashing, and waiting while homing.

Fixed

  • safety_stop() now stops the gripper's jaws where they are, as stop(), disable() and an error do.
  • A raw client's argument the robot could not read dropped that client's connection, and with it control. It is
    answered BAD_ARGS now, a fault on the robot's side INTERNAL.
  • A gripper command that settled on its position could report code 0, "still moving", so wait_released_part() failed
    an open that arrived. It reports 3.
  • rti_set_servo_generator() stored a gain before it refused a bad look-ahead; the gain then took effect later.
  • set_pid_gains() is recorded with its values in the activity log, and joint_test() checks the current limit in
    force after it.
  • reload_recipes() without a recipe folder answered "ok"; it answers RECIPE_DIR.
  • A network that fails silently is noticed in about 11 s on both sides (TCP keepalive); it took minutes, or never with
    nothing to send.
  • set_log_level("rti.handler", "DEBUG") no longer writes a line for every real-time packet from inside the control
    loop.
  • A jog speed that was not a number ran the joint at full speed, and a jog of a joint that does not exist was
    answered "ok" and raised an exception inside the control loop. Both are refused with BAD_ARGS.
  • move_gripper(position, current=...) without a speed sent the current as the speed.
  • A dry run of a gripper command moved the jaws. It now checks the command and sends nothing, as for moves.
  • In soft real-time mode the robot refused the client's stop, so RTIClient.stop() and MotionFinished ended the
    session with RTI_LINK_LOST. They now end it with a clean stop.
  • A callback (on_status_change(), on_motion_complete(), on_motion_error(), on_error()) that raised stopped
    the client's receiver: the...
Read more

0.10.0

Choose a tag to compare

@PCrnjak PCrnjak released this 23 Oct 21:13

Added

  • VERSIONING.md: which version to change for which kind of change, and how a release is made, including the
    documentation.
  • docstrings_guide.md: how every docstring is written. The documentation's Python API reference is built from the
    robotclient docstrings.
  • Full docstrings for the motion commands (move_joints, move_pose, move_linear, the arc, circle and spline
    moves and their relative forms, delay): every argument with its unit, every per-move setting, what the call
    returns and raises, every error code it can fail with once the robot accepted it, and an example.

Changed

  • Every command has one documented name. Its old names keep working, in Python (the same function) and on the wire
    (the robot maps an old command ID to its command):
    • The relative moves are move_linear_rel_world / move_linear_rel_tool, and the same for arcs, circles and
      splines. _rel_wrf / _rel_trf are their other names.
    • The gripper commands start with the verb, as every other command does: open_gripper, close_gripper,
      calibrate_gripper. gripper_open, gripper_close and gripper_calibrate still work.
    • set_profile and set_ik_solver are the names of their pairs; set_default_profile and
      set_default_ik_solver still work. latest_status() is the new name of status(), so that it is not mistaken
      for get_status(), which asks the robot.
    • A command's wire ID is its method's name. Fourteen settings were sent under another ID, for example
      gravity_comp for set_gravity_comp and jog_set for jog. The robot accepts both IDs. A client from this
      release reads the robot's version when it connects and sends an older robot the IDs it knows, so a program runs
      on either; only a command that did not exist on the older robot is refused there, as before.
  • delay() refuses a time of 0 or less, or one that is not a finite number, with INVALID_DURATION, the moves'
    rule for duration. It used to finish after about 8 ms without an error, so delay(-5) written for delay(5) went
    unnoticed. A G-code G4 P0 dwell still pauses for nothing (the G-code runner skips it), and a negative P is
    refused when the program is read.

Fixed

  • move_joints(..., dry_run=True) and delay(..., dry_run=True) planned the move and sent it to the robot, so a
    "dry" joint move moved the arm. They now plan and check it and send nothing, as every other move already did.
    Two more ways a dry run reached the robot are closed: a dry-run move with a zone, tolerance or
    ruckig_corner blend was planned and sent as part of the blended chain around it (any move type), and a move
    blended toward a dry-run successor was sent carrying a corner speed into a move that never came. A dry run now
    never joins a chain, and the move before it ends at rest.
  • A dry run of move_pose, move_linear, the relative moves and the arc, circle and spline moves stopped after
    the inverse kinematics, before the timing and the joint-limit, safety-zone and self-collision checks, so it could
    pass a move the robot then refused. Every move's dry run now plans in full and runs every check, then sends
    nothing.
  • With profile="toppra", a timing failure on a straight-line or curved move was reported as PLAN_FAIL. It is now
    TOPPRA_INFEASIBLE or TOPPRA_UNAVAILABLE, as on joint moves.
  • move_pose now has the acceleration check every other move has: a planned motion over the acceleration limit is
    refused with ACCEL_LIMIT_VIOLATION instead of being sent.
  • The motion docstrings listed completion_policy as a per-move setting, which the robot refuses: it is a session
    setting, changed with set_completion_policy(). They now name all 13 per-move settings the robot accepts.

0.9.0

Choose a tag to compare

@PCrnjak PCrnjak released this 23 Oct 21:12

The first numbered release. The runtime had no version before this one, so this section describes what 0.9.0
contains, then the changes that affect programs written for the earlier, unnumbered code.

Contents

  • Real-time control loop at 250 Hz on a core of its own, with real-time scheduling and locked memory. The CAN
    interrupt work has a core of its own too. The loop reads the drives first and sends their commands early in each
    tick.
  • Queued motion (EXEC): joint, linear, relative and pose moves, with five motion profiles. The default profile is
    jerk-limited. Moves can be blended, and a G-code subset is supported. Pause, resume and stop all brake along the
    planned path. Every move is checked against the joint limits, the safety zones and self-collision before it
    starts. A failed move aborts the program.
  • Real-time streaming: a hard real-time mode, where a PC sends one target every tick, and a soft mode, where the
    robot interpolates targets sent at a lower rate. Both stop under control and refuse motion the arm cannot do.
  • Safety:
    • a safety monitor for joint limits, endstops, overspeed, tracking, a buzzing hold, and contact or collision
    • safety zones, with walls you can feel in freedrive
    • freedrive walls at every joint limit
    • self-collision checks in the planner, the monitor and jogging
    • a 100 ms drive watchdog
    • an E-stop channel policy per control box PCB version
  • Dynamics: gravity compensation, inertia and Coriolis feedforward, a declared payload, and an external torque
    estimate that stays valid while the arm moves.
  • Homing that recognises the arm and reports each failure with its reason.
  • Tools around the robot:
    • the web dashboard on port 8081
    • block programming
    • drive firmware updates over CAN
    • a guided first-run check of a newly built robot
    • an activity log, incident recordings and a support bundle
    • a simulated robot for testing without hardware
  • Versioning:
    • robot.get_versions() reports every part's version
    • configuration files carry a format number
    • the three protocols carry a version number each, and the Python client checks them when it connects
    • the robot and gripper XMLs name their hardware revision
    • the runtime declares the drive firmware it supports

Changed: affects programs written for the earlier code

  • Pose angles. A pose [x, y, z, rx, ry, rz] now means R = Rx(rx) Ry(ry) Rz(rz): about the base X axis by rx,
    then the tool's new Y axis by ry, then its own Z axis by rz. Stored poses, recordings and logs from before keep the
    old angles. Saved block programs in the old format convert when they are read. The Python client takes pose angles
    in radians by default, or in degrees with angle_unit="deg".
  • Pose commands need a declared protocol. The executor refuses a command that carries pose angles with
    CLIENT_TOO_OLD when the client declares no command protocol version, because a client from before 0.9.0 means
    the old angles. The Python client declares it. A client that sends raw JSON adds "protocol": 1 to each message.
  • Per-joint error keys count from 1. J1:... is the first joint.
  • Hard real-time streaming needs the send time on every position target, and runs over UDP only. The Python
    client sends it by default.
  • The default EXEC motion profile is jerk-limited. A joint move with no profile takes about 1.5 times as long as
    with the old trapezoid, while a straight TCP line was measured slightly faster. Pass profile="trapezoid" for the
    old timing.
  • A stop in EXEC holds the arm in EXEC instead of switching to freedrive.
  • The drive watchdog is 100 ms. It was 5 s. The arm is no longer held about 0.1 s after the runtime stops.
  • Log lines have one format: LEVEL | UTC time | tick | logger | message. Scripts that parse the logs should use
    utility/logger_setup.parse_line.

Known limitations

  • This runtime is not a safety-rated system. The E-stop is the safety function.
  • The control box board does not report its own version yet. The PCB version is declared in config/system.xml.