Skip to content

fix(ros2): reject non-positive NodeDiscovery period_sec - #851

Closed
Bartok9 wants to merge 2 commits into
RobotecAI:mainfrom
Bartok9:aerial/node-discovery-period-sec
Closed

Bartok9 wants to merge 2 commits into
RobotecAI:mainfrom
Bartok9:aerial/node-discovery-period-sec

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

NodeDiscovery passed period_sec straight into create_timer. Zero/negative/NaN values fail later or thrash discovery; reject them at init.

Test uses a MagicMock node so ROS does not need to be live.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

@maciejmajek

Copy link
Copy Markdown
Member

Closing this one. NodeDiscovery is only constructed internally and nothing in the tree passes period_sec at all, so the default is the only value it ever sees. We are keeping validation at the points where a model or config.toml supplies the value, which is what #872 does.

@maciejmajek maciejmajek closed this Sep 7, 2026
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.

2 participants