Replace VehicleTrailer/DiffSteerTrailer with an ArticulatedVehicle (or delete them)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The classes live in src/roboticstoolbox/mobile/Vehicle.py: Trailer, DiffSteerTrailer, VehicleTrailer, and the VehicleBase they should derive from. Start by reading VehicleBase.__init__ next to VehicleTrailer.__init__ and step to see which base attributes are missing, then search the repo for imports of these classes. Done means a recorded decision (ArticulatedVehicle or deletion), with the remaining code covered by tests and docstrings.
由索引模型根据 Issue 内容生成。
描述
Trailer, DiffSteerTrailer and VehicleTrailer in src/roboticstoolbox/mobile/Vehicle.py were a late addition, are not used in the book, and are in poor shape. They are not exported from roboticstoolbox, have no tests and are not in the docs, so only code that imports them from roboticstoolbox.mobile.Vehicle can be affected.
Found during the type-hinting pass. They were annotated only to the extent needed for mypy to pass; their defects were recorded, not fixed.
Proposal
Investigate replacing VehicleTrailer and DiffSteerTrailer with a single ArticulatedVehicle class that is a proper VehicleBase subclass and composes a Trailer. Drop DiffSteerTrailer. This is a design question, not a patch.
Known defects (headstart)
-
VehicleTrailerdoes not callsuper().__init__, so mostVehicleBaseattributes (_V,_control, ...) do not exist on it;_x0is not converted to an array;stepreturnsNonewhere the base returns odometry (hence# type: ignore[override]). Needs a decision: composition, or a proper subclass. -
VehicleTrailer.plotis a copy ofDiffSteerTrailer.plotand usesself._L1,self._L2,self._animation_trailer, none of which exist onVehicleTrailer. Dead code. -
DiffSteerTrailer.derivhas a leftoverprint(X[2], eta, etad)and a deadif X[2] > 0.01: pass;DiffSteerTrailer.__init__callsx0.copy(), which only works because the default is a list. -
Trailer._animationwas only set when an animation or polygon was given, butVehicleTrailer.initreads it (initialised toNonein the typing PR; it crashed before). -
DiffSteerTrailer.initcalledself._animation_trailer.addeven whentrailer=None(now guarded). -
Trailer.__init__has placeholder docstring text (_summary_,_description_). -
The
runblockexample in theVehicleTrailer.stepdocstring usesVehicleTrailerandTrailerwithout importing them (aNameErrorwhen the docs are built)
Acceptance
- Decide:
ArticulatedVehicleor delete. - Whatever remains has tests, docs and a docstring, and
VehicleBaseattributes are all initialised.
- 主要语言
- C++
- 星标
- 3.5k
- 派生
- 639
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 113
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
petercorke/robotics-toolbox-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
petercorke/robotics-toolbox-python#709 ·
维护者通常 1 天内回复
-
help wanted
难度 4/5 3-5 天 新手友好度 48/100
petercorke/robotics-toolbox-python#839 ·
维护者通常 1 天内回复
-
enhancement help wanted
难度 4/5 3-5 天 新手友好度 52/100
petercorke/robotics-toolbox-python#825 · 2 条评论 ·
维护者通常 1 天内回复
-
feat(ets): numerical inverse kinematics for planar ETS2可能已有人在做 @qwist1233-cpu 于 4 天前认领。 未关闭enhancement help wanted
难度 4/5 3-5 天 新手友好度 68/100
petercorke/robotics-toolbox-python#824 ·
维护者通常 1 天内回复
-
Rigorous testing of operational-space methods可能已有人在做 @kVinsom 于 3 天前认领。 未关闭tech-debt Tests needed
难度 4/5 3-5 天 新手友好度 25/100
petercorke/robotics-toolbox-python#804 ·
维护者通常 1 天内回复
查看 petercorke/robotics-toolbox-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
qbittorrent/qBittorrent#25121 ·
维护者通常 2 天内回复
-
SVT-AV1: Unnecessary size padding可能已有人在做 @pszemus 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
strukturag/libheif#1945 ·
维护者通常 1 天内回复
-
v9.6.0: CMake incorrectly enforces presence of libevdev可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
mltframework/shotcut#1943 ·
维护者通常 1 天内回复
-
Rowan (2017) electron heating gives NaN for beta > beta_max; clip() then sets electrons to kel_min未关闭
难度 2/5 1-3 小时 新手友好度 72/100
parthenon-hpc-lab/kharma#213 · 1 条评论 ·
维护者通常 3 天内回复