Integer control callbacks lose fractional vehicle limits and stop motion
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 20/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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).
- 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
-
trapezoidal accepts the zero-blend velocity boundary but returns NaN at the initial sampleEvtl. vergeben @tandede hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 75/100
petercorke/robotics-toolbox-python#924 · 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