trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial sample
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 75/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C++
- Estrelas
- 3.6k
- Forks
- 650
- Merge médio
- 14h 6min
- PRs com merge (30d)
- 139
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de petercorke/robotics-toolbox-python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
petercorke/robotics-toolbox-python#709 ·
Mantenedores costumam responder em até 1 dia
-
Integer control callbacks lose fractional vehicle limits and stop motionTalvez já em andamento @Elon-Jiang assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 20/100
petercorke/robotics-toolbox-python#936 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Isaac Sim backendAbertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
petercorke/robotics-toolbox-python#903 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Backend registry: single name → constructor dispatchTalvez já em andamento @petercorke assumiu há 16 dias. Abertaenhancement
petercorke/robotics-toolbox-python#902 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Speed up the coverage job (about 25 minutes since coverage became real)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertatech-debt
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 55/100
petercorke/robotics-toolbox-python#898 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de petercorke/robotics-toolbox-python
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
-
area:qmc bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
Mantenedores costumam responder em até 3 dias
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Mantenedores costumam responder em até 1 dia
-
area/ysql kind/bug priority/medium status/awaiting-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
yugabyte/yugabyte-db#37523 ·
Mantenedores costumam responder em até 1 dia
-
Let agents name their jobsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100