Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

mobile planners and PoseGraph: small defects found while adding tests (#743)

オープン
#746 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, robotics
領域
robotics

調査の方向性

Six separate defects are listed: a stray print in RRTPlanner.query(), the shared PGVertex.nvertices counter used by PoseGraph, a bare KeyError on unknown vertex ids during PoseGraph file loading, start validation in PRMPlanner.query(), optional-import fallbacks versus the hard pgraph-python dependency in pyproject.toml, and the _dist_thresh attribute in PRMPlanner.init. Start with the planner and PoseGraph modules, then check the tests in tests/test_graph_planners.py. Done means each item is fixed or explicitly rejected, with a test covering the changed behaviour.

索引モデルが issue の本文から書いたものです。

説明

tech-debt

Found while writing tests/test_graph_planners.py (#743). The two crashes are fixed in #744 and #745; these remain.

  • RRTPlanner.query() has a stray debug print(vpath) that writes the whole vertex list to stdout on every call
  • PoseGraph keeps its vertex counter as the class attribute PGVertex.nvertices, reset at the start of each load, so loading or building two graphs interleaved corrupts index/vindex; it should be per graph
  • PoseGraph file loading: an edge that refers to a vertex id that is not in the file raises a bare KeyError: '9'; it should be a RuntimeError/ValueError naming the file, line and id (as the unexpected-record case already does)
  • PRMPlanner.query() accepts a start outside the map (e.g. (-5, 2)) and returns a path from it; the goal is validated but the start is not
  • PRMPlanner, RRTPlanner, LatticePlanner and PoseGraph wrap the pgraph import in an "optional dependency" fallback, but pgraph-python is a hard dependency in pyproject.toml; one of those is wrong
  • PRMPlanner(occgrid, dist_thresh=...) raises AttributeError: 'PRMPlanner' object has no attribute '_dist_thresh': __init__ only assigns self._dist_thresh when dist_thresh is None, then reads it unconditionally. The documented argument cannot be used

🤖 Generated with Claude Code

主要言語
C++
スター
3.5k
フォーク
639
平均マージ
1日 22時間
マージ済み PR(30日)
73

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

petercorke/robotics-toolbox-python のほかの issue

petercorke/robotics-toolbox-python の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。