mjSpec: allow custom elements outside of the `custom` section
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
調査の方向性
The payload names only mjSpec, the MJCF custom section and the custom/text workaround, so start by reading how the existing custom section is described in the MJCF docs and the issue's serialization example. The issue asks for a design decision, not a patch: the open questions are the API shape, whether a declared-spec section is needed, and how attribute types survive round-tripping. Done means maintainers have agreed on a design in the thread.
索引モデルが issue の本文から書いたものです。
説明
The feature, motivation and pitch
USD has the benefit of custom APIs, whereas mjSpec/mjcf needs text blobs or sidecar files to approximate the same function.
As an example for discussion, consider a python interface similar to h5py's attrs. Supporting any number of named "custom specs", which are flat dicts of key/value pairs, add-able to other mjSpec elements (bodies, sites, joints, actuators, etc):
site # site(name="fid-site")
c = site.add_custom("fiducial")
c["label"] = "fid3"
c["id"] = 3
c["size"] = 0.01
c = site.get_custom("lidar")
c["model"] # "VLP-16"
c["range-m"] # numpy.array([0.5, 30])
Which serializes as
<site name="fid-site" pos...>
<custom>
<fiducial label="fid3" id="3" size="0.01"/>
<lidar model="VLP-16" rotation-hz="10" elevations-deg="-10 -5 0 5 10" range-m="0.5 30"/>
</custom>
</site>
To avoid silently-misspelled custom elements, let the spec also hold a section declaring the available custom specs. Perhaps this section could also be used to declare the attribute types to be used for those specs, so they are not lost in serialization nor inferred in deserialization.
Alternatives
Using a custom/text block to hold a json blob with arbitrary data. This data does not follow attach calls, nor can it be used as part of a default class.
Additional context
No response
- 主要言語
- C++
- スター
- 18.3k
- フォーク
- 2.2k
- 平均マージ
- 9日 11時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google-deepmind/mujoco のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
google-deepmind/mujoco#3932 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google-deepmind/mujoco#3929 ·
メンテナーはふだん 6 日以内に返信
-
`import mujoco.mjx` fails with TypeError when warp-lang is too old対応中かも @moah0911 が 22 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
google-deepmind/mujoco#3738 ·
メンテナーはふだん 6 日以内に返信
-
Unity 6.6 support再び着手できるかも @Balint-H が 53 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google-deepmind/mujoco#3615 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 6 日以内に返信
-
Filament: `filament.ao.bilateral_threshold` and six other model options are ignored since 4.0.1, which changed the default ambient occlusion対応中かも @jeongseok-meta が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
google-deepmind/mujoco#3933 ·
メンテナーはふだん 6 日以内に返信
google-deepmind/mujoco の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
maplibre/maplibre-native#5072 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
tenstorrent/tt-umd#4017 ·
メンテナーはふだん 3 日以内に返信
-
difficulty:easy func:gui prio:low type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/Natron#1538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hyprwm/hyprsunset#103 · コメント 1 件 ·