paycap crashes for robots with n != 6 and its docstring does not match its behaviour
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- documentation, robotics
Direzione di ricerca
Start from Dynamics.paycap and its docstring, and compare the wmax allocation with the per-joint assignment that fails for n != 6. Uncomment test_paycap in tests/test_DHRobot.py, then run the Panda repro from the issue. Done means n != 6 works, the return value matches the docstring, and the signature and frame docs are corrected. Pull request #731 already targets this, so check it before starting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Dynamics.paycap allocates wmax = np.zeros((trajn, 6)) but assigns an n-element per-joint vector, so any robot with n != 6 raises:
ValueError: could not broadcast input array from shape (7,) into shape (6,)
Repro: rtb.models.DH.Panda().paycap([0, 0, -1, 0, 0, 0], tauR, q=q) with tauR an (n, 2) array of joint torque limits.
For n = 6 it works but returns per-joint scale factors, not the 6-vector wrench the docstring describes. The maximum load along w is wmax.min() and joint is the limiting joint. On a DH Puma 560 at qr, with w = [0, 0, -1, 0, 0, 0], this gave 4392 N limited by joint 2, and recomputing the joint torques at that load put joint 2 exactly at its limit.
Other problems:
- The docstring signature
paycap(q, w, f, tauR)does not match the codepaycap(w, tauR, frame=1, q=None), and theframedescription ('base'/'ee') does not match the int argument. wis normalised, so it is only a direction, which the docs do not say.- It uses
gravload, so it gives nonsense on models with zero dynamics such as the default URDF-based Panda. This should be documented or detected. tests/test_DHRobot.py::test_paycapis commented out.
Raised from discussion #430.
- Lingua principale
- C++
- Stelle
- 3.5k
- Fork
- 630
- Merge medio
- 3g 7h
- PR unite (30g)
- 50
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 petercorke/robotics-toolbox-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
petercorke/robotics-toolbox-python#709 ·
I maintainer di solito rispondono entro 2 giorni
-
tech-debt
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
petercorke/robotics-toolbox-python#753 ·
I maintainer di solito rispondono entro 2 giorni
-
tech-debt
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
petercorke/robotics-toolbox-python#746 ·
I maintainer di solito rispondono entro 2 giorni
-
JupyterLite: in-browser install fails (spatialmath-python pulls in pre-commit -> packaging>=26.3)Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 40/100
petercorke/robotics-toolbox-python#742 ·
I maintainer di solito rispondono entro 2 giorni
-
Adapt to pgraph-python 1.0: plot() option names and the single Vertex classForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertadependencies tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
petercorke/robotics-toolbox-python#738 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di petercorke/robotics-toolbox-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
`IO.FS.realPath` reports every failure as `noFileOrDirectory` instead of classifying by `errno`Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
leanprover/lean4#15683 ·
I maintainer di solito rispondono entro 1 giorno
-
llvm.memcpy with destination align but no source align asserts "Missed Source alignment!"Forse già presa @pvelesko l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
KhronosGroup/SPIRV-LLVM-Translator#4093 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
SIMQ silently truncates multi-query batch search to the first queryForse già presa @LHT129 l’ha presa oggi. Apertakind/bug module/index needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
antgroup/vsag#3080 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno