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
{{ message }}
Repository navigation
Use configurable output bits in RTDE client test - #626
Low Risk
Test-only change with no production code or runtime behavior impact.
Overview
Updates the write_rtde_data RTDE client integration test so it works on CB7 controllers, which cannot set standard digital outputs over RTDE.
The test now bootstraps the client with actual_configurable_digital_output_bits in the output recipe (and ignore_unavailable_outputs enabled), then after init uses negotiated protocol version and robot properties to pick the control box type. On CB7 it writes via sendConfigurableDigitalOutput and reads actual_configurable_digital_output_bits; on older boxes it keeps the existing standard digital output path and field name for verification.
Reviewed by Cursor Bugbot for commit 01b05d1. Bugbot is set up for automated code reviews on this repo. Configure here.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.80%. Comparing base (4151909) to head (01b05d1).
✅ All tests successful. No failed tests found.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The CB7 test reads a feedback field absent from its output recipe, causing both unchecked extractions to fail and the test to report failure even when the configurable output write succeeds.
Updates the RTDE client integration test to use configurable digital outputs on CB7 controllers, where standard digital outputs cannot be set through RTDE.
Changes:
Selects configurable or standard output writes based on the control-box type.
Selects the corresponding feedback field when checking the output state.
File
Description
tests/test_rtde_client.cpp
Adds hardware-dependent output writes and feedback selection to write_rtde_data.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The test treats missing robot properties as confirmed standard-output support, which can select an unsupported output bank on CB7 hardware instead of explicitly handling unknown hardware.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Do not assume standard outputs when robot hardware is unknown
tests/test_rtde_client.cpp:481
Missing robot properties do not identify a CB5: getRobotProperties() can be empty after successful initialization when the properties request fails or a property is unavailable. On a CB7 in that state, this fallback selects sendStandardDigitalOutput() and the standard-output readback, so the test still exercises an unsupported output bank. Handle absent/UNKNOWN hardware explicitly (for example, skip with a diagnostic when the hardware cannot be determined) rather than treating it as confirmed standard-output support.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The output-selection fallback can send unsupported standard-output writes on CB7 when robot properties are missing or the hardware type is unknown.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Guard standard-output writes when controller type is unknown
tests/test_rtde_client.cpp:475
Robot properties may be absent even after successful initialization, so this default can send an unsupported standard-output write on CB7. An explicit UNKNOWN type also falls through to that write. Select outputs using a reliable capability check, or skip with a diagnostic when hardware cannot be identified, while preserving legacy-controller coverage.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The test assumes CB5 when identification is unavailable, which can select an unsupported output and incorrect readback field on CB7 and cause failures despite successful initialization.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The digital-output test fails before exercising outputs when robot properties are legitimately unavailable after successful protocol-3 initialization, rather than skipping with an explanation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CB7 does not support setting the non-configurable bits via RTDE