Array parameters wierdness
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
No source files or tests are named. Start by tracing how parameters.yaml types, defaults, and validation rules are parsed, then reproduce the three configurations in the issue. Done means array parameters remain arrays with bounds, with and without a default value, and the reported integer-versus-integer_array error is resolved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
There seem to be some issues with the handling of array parameters. I'm encountering problems with setting parameters and getting my application terminated, because of
Wrong parameter type, parameter {myParam} is of type {integer}, setting it to {integer_array} is not allowed.
Working configuration:
parameters.yaml
myParam: {
type: int_array_fixed_2,
description: "myDescription",
default_value: [ 0, 0],
validation: {
element_bounds<>: [ 0, 10000 ]
}
}
config.yaml
node:
ros__parameters:
myParam: [0, 1]
bounds demoting array to single integer
parameters.yaml
myParam: {
type: int_array_fixed_2,
description: "myDescription",
default_value: [ 0, 0],
validation: {
bounds<>: [ 0, 10000 ]
}
}
Changing out element_bounds to bounds will demote the parameter to a single integer and cause the error at the start. Removing the validation block will fix the problem.
No default_value demotes to single integer
parameters.yaml
myParam: {
type: int_array_fixed_2,
description: "myDescription",
validation: {
element_bounds<>: [ 0, 10000 ]
}
}
Removing the default_value key will also demote the array. Removing the validation block will change nothing.
Something fishy is going on here, could you have a look? Thank you <3
- Lingua principale
- Python
- Stelle
- 385
- Fork
- 81
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PickNikRobotics/generate_parameter_library
-
Feature: Enum supportAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
PickNikRobotics/generate_parameter_library#392 · 2 commenti ·
-
GCC 15 emits -Wfree-nonheap-object for generated string one_of validationForse di nuovo libera @tylerjw l’ha presa 35 giorni fa e non c’è nessuna pull request aperta. Aperta
PickNikRobotics/generate_parameter_library#389 · 1 commento · 1 assegnatario ·
-
Feature request: math in the yamlForse già presa @tylerjw l’ha presa 35 giorni fa. Aperta
PickNikRobotics/generate_parameter_library#381 · 2 commenti · 1 reazione · 1 assegnatario ·
-
Validator reference (bounds<>/element_bounds<> etc.) is hard to find inside the READMEForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
PickNikRobotics/generate_parameter_library#377 · 1 commento ·
-
`.inf` not within floating point rangeForse già presa @christianrauch l’ha presa 85 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
PickNikRobotics/generate_parameter_library#376 · 3 commenti ·
Tutte le issue di PickNikRobotics/generate_parameter_library
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/markitdown#2820 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
yt-project/yt#5624 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#148376 ·
I maintainer di solito rispondono entro 1 giorno