Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

blocks/Icons: no record of how icons are made (see MVTB#121 for a no-LaTeX script)

Đang mở Phù hợp với người mới
#709 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
latex, matplotlib, python
Lĩnh vực
documentation, tooling

Hướng nghiên cứu

Bắt đầu tại src/roboticstoolbox/blocks/Icons/ và blocks/README.md, sau đó so sánh quy ước về biểu tượng và các ghi chú về việc tạo biểu tượng từ các công việc MVTB và bdsim được tham chiếu. Ghi lại cách các biểu tượng hiện có được tạo, nguồn của chúng hoặc đường dẫn tái tạo nếu đã biết, cùng các dependency hoặc giới hạn liên quan; công việc được xem là hoàn tất khi một người mới có thể hiểu quy ước và tái tạo hoặc bảo trì các biểu tượng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Note for later, prompted by a cleanup in the Machine Vision Toolbox (MVTB).

What I found in RTB

src/roboticstoolbox/blocks/Icons/ has 27 PNGs plus 250x250/ and 50x50/ subfolders, but no script and no README explaining how the icons are made, and blocks/README.md doesn't mention icons. I found no reference to bdtex2icon or an icons.sh anywhere in the repo. Several names (coriolis.png, fdyn.png, fdynx.png, ...) match icons in bdsim, which are made with bdtex2icon from LaTeX, so these were probably made the same way, but I haven't verified that.

What MVTB did

MVTB had the same gap: its icons came from an untracked icons.sh that needs bdsim, a LaTeX installation and the unpublished rvc-notation macros. The open PR petercorke/machinevision-toolbox-python#121 adds, in MVTB's blocks/Icons/:

  • make_icons.py: renders TeX math to a 250x250 black-on-transparent RGBA PNG using matplotlib mathtext (Computer Modern), so no LaTeX and no extra dependency;
  • a short README.md describing the icon convention (shared with bdsim's Icons folder);
  • a test for the script.

Findings from the prototype, including how many of bdsim's own icon expressions render and one gotcha (math_to_image output has an opaque white background), are in petercorke/bdsim#109.

Possible follow-up for RTB

  1. Add a blocks/Icons/README.md recording the convention and how each icon was made (even if just "bdtex2icon, see bdsim").
  2. If the LaTeX sources for the icons are still known, record them (an icons.sh, or a table like MVTB's ICONS) so they can be regenerated.
  3. Note for whoever tries it: in bdsim's list, the expressions that did not render under mathtext used the custom macros \dvec, \ddvec and \sbullet and array matrices; icons like coriolis and fdyn use \dvec/\ddvec, so those would need the macro definitions from rvc-notation. I haven't tried RTB's actual expressions.

Not urgent.

Ngôn ngữ chính
C++
Star
3.5k
Fork
639
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
73

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của petercorke/robotics-toolbox-python

Tất cả issue của petercorke/robotics-toolbox-python

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.