trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial sample
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 75/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 3.6k
- Forks
- 650
- Ø Merge
- 14 Std. 6 Min.
- Gemergte PRs (30 T.)
- 139
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus petercorke/robotics-toolbox-python
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
petercorke/robotics-toolbox-python#709 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Integer control callbacks lose fractional vehicle limits and stop motionEvtl. vergeben @Elon-Jiang hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 20/100
petercorke/robotics-toolbox-python#936 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Isaac Sim backendOffenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
petercorke/robotics-toolbox-python#903 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backend registry: single name → constructor dispatchEvtl. vergeben @petercorke hat das vor 16 Tagen übernommen. Offenenhancement
petercorke/robotics-toolbox-python#902 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Speed up the coverage job (about 25 minutes since coverage became real)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offentech-debt
Schwierigkeit 4/5 1-2 Tage Anfängerfreundlichkeit 55/100
petercorke/robotics-toolbox-python#898 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in petercorke/robotics-toolbox-python
Ähnliche Issues
-
area:qmc bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
Maintainer antworten meist innerhalb von 3 Tagen
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/ysql kind/bug priority/medium status/awaiting-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
yugabyte/yugabyte-db#37523 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Cockatrice/Cockatrice#7896 ·
Maintainer antworten meist innerhalb von 1 Tag