Skip to content

Comments

Fix nested mapped parameters map#306

Open
NickLaurenson-Visionick wants to merge 4 commits intoPickNikRobotics:mainfrom
NickLaurenson-Visionick:fix/278
Open

Fix nested mapped parameters map#306
NickLaurenson-Visionick wants to merge 4 commits intoPickNikRobotics:mainfrom
NickLaurenson-Visionick:fix/278

Conversation

@NickLaurenson-Visionick
Copy link

@NickLaurenson-Visionick NickLaurenson-Visionick commented Jan 16, 2026

Hello, this PR aim to fix #278.

As mention in the issue, the root caused came from get_dynamic_mapped_parameter_names, not return the full nested path:
if the the field to be mapped was .nested_field.final_field, the function return final_field causing error in the generated code.

Regarding the test, I wrote some basic one, let me know if need to do something else

@NickLaurenson-Visionick NickLaurenson-Visionick force-pushed the fix/278 branch 3 times, most recently from 1664af6 to 7fef7cf Compare January 16, 2026 10:28
@NickLaurenson-Visionick NickLaurenson-Visionick changed the title Add tests for nested mapped parameters Fix nested mapped parameters map Jan 19, 2026
Copy link
Collaborator

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Can you please have a look at the failing CI jobs?

@NickLaurenson-Visionick
Copy link
Author

Yes sure I will take a look in the next day

Nick Laurenson added 3 commits February 23, 2026 15:06
Previously, the generator assumed that mapped parameter keys (the arrays
used for __map_ segments) were either at the root level or provided as
bare names. This caused the generator to fail or produce incorrect paths
 when dynamic parameters were nested inside deep struct hierarchies where
the "key" array was defined in a parent scope.

fix PickNikRobotics#278
- group test that test setup_up function via parametrization
- add some config file file dor nested parameter map
- add a test about get_dynamic_mapped_parameter
@NickLaurenson-Visionick
Copy link
Author

I update the branch, and fix the compilation locally (via ci_industrial tool).

@christophfroehlich can you see it it fix the ci too?

@NickLaurenson-Visionick
Copy link
Author

Fix the style issue, everything should be fine now.

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.

No way to reference non top-level keys in parameters map

2 participants