Skip to content

fix(autoware_vehicle_velocity_converter): fix the parameter schema and the README table - #1557

Merged
xmfcx merged 1 commit into
autowarefoundation:mainfrom
shuxiachai:fix-vehicle-velocity-converter-schema
Nov 26, 2026
Merged

xmfcx merged 1 commit into
autowarefoundation:mainfrom
shuxiachai:fix-vehicle-velocity-converter-schema

Conversation

@shuxiachai

Copy link
Copy Markdown
Contributor

Description

The parameter documentation of autoware_vehicle_velocity_converter no longer matches the node:

  • The schema lists stddev_vx and stddev_wz, but the node reads velocity_stddev_xx and angular_velocity_stddev_zz (src/vehicle_velocity_converter_node.cpp), and so does the parameter file. The three descriptions are also shifted by one; for example speed_scale_factor is described as "standard deviation for yaw rate".
  • json-schema-check never caught this because the schema is named vehicle_velocity_converter.json and the check only scans schema/*.schema.json. This PR renames it to vehicle_velocity_converter.schema.json, which the check pairs with config/vehicle_velocity_converter.param.yaml. Nothing refers to the old file name.
  • The README lists a frame_id parameter, which the node no longer declares.

This PR fixes the names and descriptions (the units come from the comments in the parameter file), adds additionalProperties: false as in the schema template of the parameter guidelines so that a stale key such as frame_id is reported, and removes the frame_id row.

Related links

Parent Issue:

  • None

Related:

How was this PR tested?

check-jsonschema --schemafile <schema> <parameter file> (first error shown):

Parameter file Before After
config/vehicle_velocity_converter.param.yaml 'stddev_vx' is a required property ok
the same file with velocity_stddev_x instead of velocity_stddev_xx same error 'velocity_stddev_xx' is a required property
the same file with frame_id: base_link same error Additional properties are not allowed ('frame_id' was unexpected)

The json-schema-check script on this package: main does not scan the schema, main with only the file rename reports Failed, this PR reports Passed.

pre-commit run --files on the changed files passes, including check-metaschema.

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.


AI usage: I used Claude Code to compare the schema and the README with the node code, write the change, run the checks above and draft this description. A separate Claude Code agent with a clean context reviewed the change; its findings are addressed.

@github-actions

Copy link
Copy Markdown

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@interimadd interimadd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fix PR.
I have confirmed modified schema match vehicle_velocity_converter.param.yaml. LGTM

@interimadd interimadd added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

This pull request comes from a fork, so its documentation site is built but not published.

  • Download the site of commit fc87897: docs-pr-1557. You must be signed in to GitHub. The site is kept for 90 days.
  • Follow the steps in the run summary to view it on your computer.

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.30%. Comparing base (b46bc5f) to head (fc87897).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1557      +/-   ##
==========================================
- Coverage   82.36%   82.30%   -0.06%     
==========================================
  Files         421      413       -8     
  Lines       23857    23228     -629     
  Branches      147        0     -147     
==========================================
- Hits        19650    19118     -532     
+ Misses       4177     4110      -67     
+ Partials       30        0      -30     
Flag Coverage Δ *Carryforward flag
daily ?
full-suite 82.30% <ø> (ø) Carriedforward from b46bc5f

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…d the README table

Signed-off-by: shuxiachai <shuxiachai@163.com>
@xmfcx
xmfcx force-pushed the fix-vehicle-velocity-converter-schema branch from fc3c717 to fc87897 Compare November 26, 2026 14:21
@xmfcx
xmfcx merged commit eac08d3 into autowarefoundation:main Nov 26, 2026
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants