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

refactor(ets): follow-ups to fixjoint (#740)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start by comparing fixjoint in ETS.py and ETS2.py, then read BaseETS in ets/_ETS.py and the existing tests to understand shared behavior and joint indexing. Update the named ETS and IK documentation pages as needed. Done means the shared implementation and tests cover the requested edge cases, the docstring and documentation are updated, and the locked-joint IK example is included.

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

説明

enhancement help wanted

Follow-up to #740, which added ETS.fixjoint and ETS2.fixjoint (closes #724). The feature works and is tested; these are the tidy-ups found in review, none of them blocking.

Help wanted, all small:

  • fixjoint is the same code in ETS.py and ETS2.py. Move it once into BaseETS (ets/_ETS.py), with the tests shared, so a fix is made in one place.
  • Add a worked example to the docstring, under .. runblock:: pycon, showing a flipped joint, unit="deg", and a robot's ets() with a joint fixed. Add .. versionadded:: too.
  • Add fixjoint to the Modification tables on the ETS documentation pages (docs/source/ets_3d.rst and ets_2d.rst) and to the lists of members in the Details sections.
  • Reject a bool as the joint index. isinstance(True, int) is true, so fixjoint(True, 0.1) currently fixes joint 1.
  • Check what happens to a joint with explicit jindex values that leave a gap after fixing (the surviving indices are kept, as for split), and say so in the docstring; this ties in with #803, where jindices that are not a permutation of 0..n-1 are not handled consistently.
  • Use it: an IK example that solves a 7-joint arm with one joint locked, in the IK documentation.
主要言語
C++
スター
3.5k
フォーク
639
平均マージ
1日 13時間
マージ済み PR(30日)
98

環境構築

はじめの一歩

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

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

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

似ている issue

C++ の issue をもっと見る

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

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