You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Releases publish to PyPI. CI tests the Python tool on ROS 2 Lyrical.
0.6.0
Builds in CI on ROS 2 Lyrical (C++ package: equivalence tests and a fake-graph check; the Python package is not CI-tested on Lyrical, and nothing has run against a live robot or sim there).
Fix: the C++ package links targets directly, because Lyrical no longer has ament_target_dependencies.
--expect joint_states:50 (repeatable): state the normal rate yourself and get RATE_DROP / RATE_SPIKE without a --learn run; overrides a learned value. Unit-tested (parser + check, new tests); flag wiring checked via --help and a bad value; not run against a live graph.
New LOG_* warnings from /rosout (WARN and above from move_group, controller_manager and the controllers), counted over 30 s, each with a hint: LOG_PLAN_GOAL_INVALID, LOG_START_STATE_BAD, LOG_START_DEVIATES, LOG_NO_CONTROLLER, LOG_ACTION_NOT_CONNECTED, LOG_ROBOT_STATE_STALE, LOG_TOLERANCE_VIOLATED, LOG_EXEC_ABORTED. Unit-tested on the message patterns and run live against a fake move_group log line; not yet against a real MoveIt stack that emits each message.
Per-arm baselines: --learn SECS records the normal /joint_states rate, --baseline warns with RATE_DROP / RATE_SPIKE below half or above double that. Plain statistics, no model. Run live against the fake arm (learn at 50 Hz, quiet at 50 Hz, RATE_DROP at 10 Hz).
0.5.0
Fix, found by running the MCP server against a live UR3 Gazebo sim: attaching while the arm controller was already inactive left the arm joints unknown, so every gripper joint resting at its closed limit raised NEAR_LIMIT, burying the real CTRL_INACTIVE. Joints named like a gripper or finger are now skipped for NEAR_LIMIT until the arm joints are learned. Verified live: only CTRL_INACTIVE and NO_ACTIVE_ARM_CTRL remain, and the arm reads healthy again after reactivation.
New NO_TRAJ_ACTION (error): an active joint trajectory controller whose follow_joint_trajectory action server is not on the graph (MoveIt: "Action client not connected"). New MOVEIT_CTRL_MISMATCH (error, --moveit): move_group's controller_names lists a controller ros2_control does not have. Both unit-tested; the fake arm run stays healthy, but neither fault has been reproduced live.
0.4.0
armdoc_fast takes -p json:=true and prints the findings as a JSON list of {level, code, msg}, like armdoc --json. test/test_cpp_live.py (4 tests, skipped without ROS and armdoc_cpp) checks the arm-joint learning and the JSON shape against test/fake_gripper_arm.py.
CI job jazzy-cpp (ros:jazzy-ros-base): builds armdoc_cpp, runs the equivalence tests and a live check on the fake arm. Run locally in docker first: builds, 20 tests pass, healthy arm reported healthy by both the Python and C++ tools, freeze exits 1.
armdoc_cpp, found by running it against a live UR3 Gazebo sim: (1) it reported a lag of 1.8 billion seconds because the sim stamps messages with sim time while the node compares against the wall clock; it now ignores gaps over 1e4 s like the Python tool. (2) It judged the Robotiq finger_joint, resting at its closed limit, as an arm joint (NEAR_LIMIT); it now asks <ns>/controller_manager/list_controllers which joints the arm controllers claim (same is_arm_controller rule and the same keep-the-last-set behaviour as the Python tool), or takes an arm_joints parameter. is_arm_controller is checked against Python in the equivalence test.
Fix: deactivating the arm controller no longer widens the checks to every joint. An inactive controller claims no interfaces, so armdoc forgot which joints are the arm's and judged gripper fingers resting at their closed limit as arm joints (NEAR_LIMIT). Found by running armchaos against a Franka Panda; the last known arm joints are kept (update_arm_joints).
Verified on two non-UR arms with the real ros2_control controller manager (mock hardware): FANUC (6 joints) and Franka Panda (7 joints), through armchaos, all expected codes raised.
New armdoc_cpp colcon package (in this repo): ros2 run armdoc_cpp armdoc_fast is a C++ port of the live /joint_states checks (JOINT_STATES_NONE/STALE, JOINT_NAN, LIMIT_POS, NEAR_LIMIT, LIMIT_VEL, EFFORT_SAT, NOISY_JOINTS, STREAM_LAG), read-only, for leaving next to a fast controller. On a 50 Hz stream it used 0.9% of a core and 22 MB, against 5.5% and 65 MB for the Python tool (one 20 s run). Controller, MoveIt and action checks stay in the Python tool.
test/test_cpp_equivalence.py feeds identical randomized /joint_states streams (healthy, noisy, limits, NaN, effort, lag, stale, joint subset, slow) to armdoc/core.py and the C++ core and requires the same findings, level, code and message.
0.3.0
New NOISY_JOINTS check: position jitter estimated from the fourth difference of the joint positions over 1 s (--noise-rad, default 0.002 rad). Silent below 20 Hz.
New STREAM_LAG check: /joint_states header stamp versus arrival time, median over 2 s (--lag-max, default 0.5 s). Silent when the stamps use another clock (set use_sim_time for sim stamps).
With --moveit: MOVEIT_PLAN_FAILED (a /move_action goal aborted in the last 30 s) and NO_PLANNING_SCENE (move_group is up but no scene is published or served).
Goals that finished before armdoc attached are no longer counted as new aborts (judged by the goal's stamp).
ros2 launch armdoc armdoc.launch.py with config/armdoc.yaml; thresholds are ROS parameters of the node and win over the CLI flags. --ros-args is accepted on the command line.
Dockerfile and docker/ demo: a healthy fake arm, a stalled trajectory, and a fake MoveIt without a planning scene.
test/fake_arm.py --moveit [--no-scene] [--plan-fail]; CI also checks the two MoveIt codes.
Validated against armchaos noise and lag faults (docs/e2e_*.txt). A clean exit when launch interrupts the node.
README quick start rewritten.
0.2.0
--record FILE.jsonl logs timestamped joint positions and findings while armdoc runs; armdoc report FILE.jsonl --html report.html --png report.png renders a joint timeline with shaded finding bands, a controller lane and a findings table (self-contained HTML with hover and legend toggles, or a matplotlib PNG). The report step needs no ROS.
--ready [SECS]: pre-flight mode. Watches SECS (default 10), prints a suggested next step under each finding and a READY / NOT READY verdict, exits 1 if not ready. --hints prints the same hints in normal mode.
--diagnostics: opt-in, also publishes findings to /diagnostics (diagnostic_msgs/DiagnosticArray, one status per finding, or one OK status). It is the only thing armdoc ever publishes and is off by default.
GitHub Actions CI: pytest on the diagnosis rules, plus a Humble job that runs test/fake_arm.py --stall and asserts armdoc --once exits 1 with TRAJ_STALLED.
Verified on a UR3 in Gazebo (ros2_control): --ready and --diagnostics healthy and with the arm controller deactivated.
0.1.0
First release: a read-only doctor for ros2_control / MoveIt 2 arms.
Checks: /joint_states missing or stale, NaN joints, joint position, velocity and effort limits (from /robot_description, arm joints only), inactive arm controllers, missing move_group, trajectory tracking error, stalled trajectory goals, repeated goal aborts.
Modes: live reports, --once SECS (exit 1 on ERROR, for CI), --json, --ns, --moveit.
Verified on a UR3 in Gazebo (healthy, controller deactivated, sim paused); test/fake_arm.py fakes a graph for CI.