Integer control callbacks lose fractional vehicle limits and stop motion
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 20/100
Piste de recherche
Read the three u_limited methods in Vehicle.py and trace how integer control inputs determine the result dtype. Reproduce the reported difference between integer and floating callback commands with the public step example, then add regression coverage for the limit methods and callback path. The issue reports an open linked pull request (#937), so the work is already under way.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
RTB version
1.5.0, current main 879fb363580840e19ee70b6b175e8cd3543e2b38 (normal editable install with compiled extensions).
Python version and OS
Python 3.12.13, macOS arm64.
Expected behaviour
An integer-valued control callback should produce the same limited motion as the equivalent floating-valued callback. The documented ArrayLike inputs include integer lists/arrays.
Actual behaviour
u_limited in Bicycle, Unicycle and DiffSteer allocates an integer result for integer inputs, then truncates fractional speed, acceleration or steering limits on assignment. For example, a desired speed of 1 limited to 0.5 becomes 0. This also reaches the public simulator through a control callback:
import roboticstoolbox as rtb
for command in ([1, 0], [1.0, 0.0]):
vehicle = rtb.Bicycle(speed_max=0.5, dt=0.1)
vehicle.step(lambda vehicle, t, x: command, animate=False)
print(command, vehicle.x)
Current main prints [0., 0., 0.] for the integer callback and [0.05, 0., 0.] for the floating callback. Unicycle and DiffSteer reproduce the same lost motion. Direct constant step([1, 0]) is a passing control, since eval_control already converts that route to floating point. No rendering or robot hardware is involved.
I checked all 24 open PR file lists, full history for Vehicle.py, and complete searches for u_limited, limits_va, integer velocity and acceleration. #929 changes the sign of reverse odometry; it does not change control limiting.
I plan a focused floating-output correction in these three limit methods and regression coverage through both u_limited and the public step callback path. Prepared with assistance from OpenAI Codex (GPT-6).
- 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
-
trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial samplePeut-être pris @tandede l’a pris il y a 6 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 75/100
petercorke/robotics-toolbox-python#924 · 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
-
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
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Cockatrice/Cockatrice#7896 ·
Les mainteneurs répondent en général sous 1 jour