Skip to content

fix(nav2): reject non-finite NavigateToPose coordinates - #836

Closed
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/nav2-finite-pose-coords
Closed

fix(nav2): reject non-finite NavigateToPose coordinates#836
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/nav2-finite-pose-coords

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Reject NaN/Inf/bool x/y/z/yaw on NavigateToPoseTool via require_finite_float.

Testing

  • Offline unit tests where ROS not required (uv pytest)
  • AI-assisted; human-reviewed

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Validate x/y/z/yaw with require_finite_float so agent tool calls cannot pass
NaN/Inf/bool into Nav2 goals.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
@maciejmajek

Copy link
Copy Markdown
Member

In #872 as allow_inf_nan=False on the four NavigateToPoseToolInput fields, which is the pydantic equivalent of the finite check.

@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