Repository navigation
v0.15.0
Everything since v0.14.0: PR #37, which spells out the behaviour every backend must share, so parol6 and par6 answer the same call the same way. PAROL6 PR #52 targets this release. Pre-1.0, so the minor bump covers the changed defaults and units below.
Breaking changes
- Planned moves default to half speed.
move_j,move_l,move_c,move_sandmove_ptakeduration: float = 0.0, speed: float = 0.5, accel: float = 0.5. Adurationabove 0 times the move andspeedis not used; otherwisespeeddoes, so every move has a timing. Negative, NaN or infinite values, andspeed/acceloutside(0, 1], raiseValueErrorbefore anything is sent. For Cartesian movesspeedalso caps TCP linear speed. Servo streams default to half speed and half accel, jogs to half accel. - Electric grip current is a fraction.
ElectricGripperTool.set_position,openandcloseare now abstract and takespeedandcurrentas fractions in[0, 1], withcurrentspanningcurrent_range; both default to 0.5.default_currentis gone.GripperSettings.currentis a percent (default 50), andadjust_stepis in percent points. - Joint speeds are deg/s, like joint angles (
StatusBuffer.speeds,Joints.speeds). motion_profilesis exactly whatselect_profileaccepts, spelled the way it takes them. The base default is now("LINEAR",).
Shared contract
- Return codes follow the
@commandmarker, not the palette category.write_io,tool_action,checkpoint,delay,select_toolandset_tcp_offsetreturn queue indices, jogs and servo streams return 1 once sent, andestimate_payloadreturns its estimate. An unknown keyword raisesTypeError, with or withoutwait. - Cancellation has a name.
MOTN_CANCELLEDandMOTN_NOT_HOMEDare exported.stop,estop,teleportandreset_statediscard the queue, and every command they discard fails withMOTN_CANCELLED.wait_commandraises aRobotErrorwhose newcancelledproperty tells a halt apart from a refusal. SYSTEM commands may now be markedcancels. - Stop and reset.
stop()brakes to a held pose.reset_state()leaves the e-stop latch, the homed state and the outputs alone, and restores the default motion profile and execution speed. - Frames and blending. TRF poses are always tool-frame offsets, and a WRF relative rotation turns the tool about the TCP.
move_c's blend radius rounds into a followingmove_l/move_c. - Homing.
teleportmarks the arm homed. Onlyjog_j,homeandteleportmove an unhomed arm. - Status.
IO.estopreports the physical safety chain only: a softwareestop()never sets it.action_currentis the snake_case method name, empty when idle.status().tool_statusis neverNone, and TOPPRA is the startup profile.