modèle de projet vérifié

arche/diff-drive-rover

Differential-drive rover

A rover on two driven wheels and a caster, with wheel encoders, an IMU and a GPS, and a navigator that follows waypoints by odometry: a heading and a speed loop; its plant in MuJoCo, its test cases run against it.

plantmujocoroverdifferential-driveodometrywaypointscontrol

Partir de ce modèle

archec new my-project --template arche/diff-drive-rover

Une copie devient votre projet, à vous de la modifier : ses fichiers dans un nouveau dossier, prêts pour archec build.

▶ Essayer ◆ 3D Ouvrir dans le Playground { } Voir le code son modèle tourne dans votre navigateur, rien à installer

Paquet

Typemodèle de projet
Version0.1.0
LicenceApache-2.0
Contrôle exportnone
Compatible avecarchec >=0.10
Édition0.12
Handlersle langage d’action (```arche), exécuté en TypeScript d’après son code
Sitehttps://github.com/arche-lang/arche-lang

Modèle

SystèmesRover
ComposantsChassis Wheel Caster WheelMotor WheelEncoder Imu Gps Navigator
Exigences2
Messages4

Code fourni

EmplacementLangageLignes
main.arche · Navigator.on_left.bodyarche1
main.arche · Navigator.on_right.bodyarche1
main.arche · Navigator.on_fix.bodyarche2
main.arche · Navigator.reached.bodyarche13
main.arche · Navigator.on_motion.bodyarche29

Ce que c’est

Architecture Rover · ses parties et leurs liens
Rover Chassis Waypoint navigator : Navigator left_wheel right_wheel imu gps left_speed right_speed

Differential-drive rover

A 2 kg rover on two driven wheels and a caster ball, with an encoder on each wheel, an IMU and a GPS. The navigator follows three waypoints — (1, 0), (1, 1), (0, 1) — by odometry: the distance from the encoders, the heading from the gyro. A heading loop turns it toward the next waypoint, a speed loop slows it in the turns and near the waypoint (0.5 m/s at most), and it stops at the last. The GPS is the truth: when odometry says a waypoint is reached, the navigator records how far the GPS says it is (miss, worst_miss).

| | | |---|---| | Plant | a free chassis, 2 wheel hinges with velocity servos (kv 0.2), a caster (ball joint), 2 encoders, IMU, GPS, 1 ms step | | Controller | odometry, heading and speed loops, 100 Hz; Driving → Arrived | | Requirements | REQ-RV-WAYPOINTS (within 0.1 m of each, in 15 s), REQ-RV-SPEED | | Test plan | TP-RV: three waypoints, the speed limit |

archec new my-rover --template diff-drive-rover     a project from it, yours to change
archec gen main.arche --target mujoco -o out
archec sim main.arche --plant out/mujoco/plant_bridge.py --test
python3 out/mujoco/plant_bridge.py --viewer

In MuJoCo (4.0): the last waypoint reached at 10.4 s, the GPS at most 0.073 m from a waypoint when odometry said it was there. The wheels are spheres, so that their frames need no turning; the ground is MuJoCo's default plane.

Fichiers 3 · 8,9 Ko

Télécharger le .archepkg Le .archepkg est signé : archec add le vérifie.

Utilise

N’utilise aucun autre paquet.

Utilisé par

Aucun paquet du store ne l’utilise encore.

Versions

★ 0 étoile↓ 0 téléchargement

VersionPubliée learchecÉtatChangementsTéléchargements
0.1.012 nov. 2026>=0.10publique0

Signature

Signé par arche avec la clé e660d0a8851875b9. Fichiers : 3, empreinte sha256-d02581c25d89db2a5d6b…. archec add vérifie les deux avant d’écrire quoi que ce soit.

Discussion

Chargement…