trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial sample
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 75/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C++
- Étoiles
- 3.6k
- Forks
- 650
- Merge moyen
- 14 h 6 min
- PR mergées (30 j)
- 139
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de petercorke/robotics-toolbox-python
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
petercorke/robotics-toolbox-python#709 ·
Les mainteneurs répondent en général sous 1 jour
-
Integer control callbacks lose fractional vehicle limits and stop motionPeut-être pris @Elon-Jiang l’a pris il y a 1 jour. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 20/100
petercorke/robotics-toolbox-python#936 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Isaac Sim backendOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
petercorke/robotics-toolbox-python#903 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Backend registry: single name → constructor dispatchPeut-être pris @petercorke l’a pris il y a 16 jours. Ouverteenhancement
petercorke/robotics-toolbox-python#902 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Speed up the coverage job (about 25 minutes since coverage became real)Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertetech-debt
Difficulté 4/5 1-2 jours Accessibilité débutants 55/100
petercorke/robotics-toolbox-python#898 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de petercorke/robotics-toolbox-python
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
-
area:qmc bug
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
Les mainteneurs répondent en général sous 3 jours
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Les mainteneurs répondent en général sous 1 jour
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
yugabyte/yugabyte-db#37523 ·
Les mainteneurs répondent en général sous 1 jour
-
Let agents name their jobsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100