Skip to content

Tests: enable range_gate in reorder unit test#29

Merged
alpharover merged 1 commit into
trunkfrom
test/fix-reorder-unit-param
Sep 1, 2025
Merged

Tests: enable range_gate in reorder unit test#29
alpharover merged 1 commit into
trunkfrom
test/fix-reorder-unit-param

Conversation

@alpharover

Copy link
Copy Markdown
Owner

Unit test expected NaN gating for out-of-range points, but range_gate is disabled by default. Pass range_gate_enabled:=true in test to make expectation match behavior.

@alpharover
alpharover merged commit 4450e00 into trunk Sep 1, 2025
@alpharover
alpharover deleted the test/fix-reorder-unit-param branch September 1, 2025 02:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines 79 to +82
rclpy.init(args=[
'--ros-args',
'-p', f'config:={str(yaml)}',
'-p', 'range_gate_enabled:=true',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Range-gate test never drives threshold below default 60 m

The added -p range_gate_enabled:=true still won’t make the assertions below pass, because AiryReorderNode uses the parameters range_min_m/range_max_m (defaults 0.1–60 m) for gating and ignores the range_m values written into this YAML. All sample points are at 2 m, which is well inside the default 60 m window, so even with gating enabled they won’t be NaN’d and the test fails. The test needs to pass -p range_max_m:=1.0 (or the node must read range_m from the config) to actually exercise out-of-range behavior.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant