trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial sample
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 75/100
Direzione di ricerca
Start by reading TrapezoidalProfile.__init__ and the evaluation logic used by trapezoidal, then run the reproduction with V=1.0 and the stated sample times. Check how the zero-duration blend boundary is represented and how the initial sample is evaluated. Done means the accepted boundary produces finite trajectory arrays, or is explicitly rejected, with tests covering both move directions.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Reproduction
import numpy as np
from roboticstoolbox import trapezoidal
trajectory = trapezoidal(0.0, 1.0, np.array([0.0, 0.5, 1.0]), V=1.0)
print(trajectory.q)
print(trajectory.qd)
print(trajectory.qdd)
On current main 879fb363580840e19ee70b6b175e8cd3543e2b38 this prints:
[nan 0.5 1. ]
[nan 1. 1. ]
[inf 0. 0. ]
The accepted lower boundary abs(V) == abs(qf-q0)/T gives tb == 0; TrapezoidalProfile.__init__ divides by tb, and evaluating the initial blend multiplies that infinite acceleration by zero. Reversing the move reproduces the same non-finite initial sample. Controls at V=1.5 and V=2.0 return finite arrays.
Expected: handle the accepted boundary with a defined finite profile, or reject it explicitly if zero-duration blends are unsupported, rather than returning NaN/inf.
Reproduced with the normal source-package import on Linux, Python 3.12.14, NumPy 2.3.5 and SciPy 1.17.0. No robot hardware was used. This is separate from the empty-phase plotting fix in #910; filed following the request there. Searches for trapezoidal with blend and NaN found no existing issue.
- Lingua principale
- C++
- Stelle
- 3.6k
- Fork
- 650
- Merge medio
- 14h 6m
- PR unite (30g)
- 139
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 1 giorno
-
Integer control callbacks lose fractional vehicle limits and stop motionForse già presa @Elon-Jiang l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
petercorke/robotics-toolbox-python#936 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Isaac Sim backendApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
petercorke/robotics-toolbox-python#903 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Backend registry: single name → constructor dispatchForse già presa @petercorke l’ha presa 16 giorni fa. Apertaenhancement
petercorke/robotics-toolbox-python#902 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Speed up the coverage job (about 25 minutes since coverage became real)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatech-debt
Difficoltà 4/5 1-2 giorni Idoneità per principianti 55/100
petercorke/robotics-toolbox-python#898 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di petercorke/robotics-toolbox-python
Issue simili
-
area:qmc bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 3 giorni
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
I maintainer di solito rispondono entro 1 giorno
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yugabyte/yugabyte-db#37523 ·
I maintainer di solito rispondono entro 1 giorno
-
Let agents name their jobsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Cockatrice/Cockatrice#7896 ·
I maintainer di solito rispondono entro 1 giorno