Logo Mujoco Gui

Mujoco Gui

Cộng đồng
eust-w
mujoco-gui

Dear ImGui and ImPlot user interface design for MuJoCo Studio and MuJoCo viewer plugins (C++ ux/ components and Python ViewerPlugin build_gui panels): immediate-mode widget layout, multi-row widget/column alignment (Tables API), tooltip length and aspect ratio, build_gui vs render separation, ID stack rules (## label disambiguation vs ### seed reset override), list virtualization (ImGuiListClipper), theming, and input capture (WantCaptureKeyboard). Use only when building, aligning, styling, or debugging MuJoCo Studio UI, mobile/HUD or responsive Studio layouts, or Dear ImGui widgets and ImPlot charts inside MuJoCo Studio, MuJoCo viewer plugins, or MuJoCo/robotics simulation and control tools. Don't use for general-purpose C++ or Python Dear ImGui / ImPlot / imgui_bundle desktop applications unrelated to MuJoCo or robotics, or for Studio plugin lifecycle/messaging (use mujoco-studio) or core physics stepping (use mujoco-python).

Tổng quan

Nhà phát hànheust-w
Kho mãopen-robotics-plugin
Tên kỹ năngmujoco-gui
Sao
245
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được eust-w công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Mujoco Gui trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/eust-w/open-robotics-plugin/tree/main/skills/mujoco-gui
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/eust-w/open-robotics-plugin.git /tmp/open-robotics-plugin
mkdir -p .claude/skills
cp -r /tmp/open-robotics-plugin/skills/mujoco-gui .claude/skills/mujoco-gui
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Mujoco Gui trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Mujoco Gui ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Mujoco Gui với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Dear ImGui Development & Architecture Guide

[!TIP]

Official MuJoCo documentation (doc/*.rst) & related skills:

  • ../../studio/python_plugins.rst (.. _StudioUiPlugins:, .. _StudioImGuiTips:) and ../../studio/architecture.rst (.. _StudioCppComponents:) — How Dear ImGui and ImPlot integrate into MuJoCo Studio, UpdateEvent vs BuildGuiEvent, and C++ (ux/) vs Python widget trade-offs. Read these short .rst chapters directly when present locally or in pip install mujoco under pathlib.Path(mujoco.__file__).parent / 'doc', or fetch https://mujoco.readthedocs.io/en/latest/<path>.html (or /en/stable/ once released; Sphinx anchors lowercase the label, e.g. #studioimguitips).
  • ../../programming/ui.rst (.. _UI:) — Legacy mjui C framework used only in classic simulate.cc (distinct from Studio's Dear ImGui stack).
  • mujoco-studio — Studio viewer launchers, decoupled sim/viewer threads, plugins, hot reload, and WebViewer streaming.

[!NOTE]

Dear ImGui is an immediate-mode GUI framework designed for fast iterations, minimal state overhead, and high responsiveness. This guide documents best practices and conventions for writing maintainable, performant, and testable UI code across MuJoCo, its Python bindings, and dependent targets in C++, Python, and WebViewer.

Applies to both C++ and Python: All architectural guidelines, widget patterns, Tables API usage, ID stack rules (## vs ###), and performance principles apply equally whether authoring native C++ (ImGui::) or Python (imgui.) code. While snippets frequently illustrate patterns in Python for concise readability, the corresponding immediate-mode concepts, widget APIs, ID stack mechanics, clipper usage, and styling rules translate directly 1-to-1 to C++. Guidelines apply both to core Dear ImGui and extension libraries, most importantly ImPlot.

Dear ImGui everywhere (C++ studio/ux/ for all viewers, Python for Python-only — no HTML/JS overlays): Built-in Studio UI that must be shared across every Studio viewer (desktop C++ Studio, MuJoCo Live WASM, and both Python viewers) belongs in shared C++ Dear ImGui under studio/ux/. For Python-only UIs (NativeViewer + WebViewer), use a Python Dear ImGui ViewerPlugin—which is also a great way to iterate with --hot_reload before porting to C++ studio/ux/ for all viewers. Do not replace or mirror Dear ImGui panels with HTML/CSS/JS overlays or parallel JSON WebSocket UI channels in WebViewer; WebViewer streams Dear ImGui draw lists over /ui so built-in panels and custom ViewerPlugin UIs work uniformly in the browser.

1. Naming Conventions: build_gui vs render / draw

ImGui code does not render pixels to the screen directly. Instead, calling ImGui functions builds and records draw command lists (vertex buffers, index buffers, clip rects, and texture references) that are processed, rasterized, and rendered later in the frame pipeline (via OpenGL, Vulkan, or WebGL/WebViewer).

  • Use build_gui() or build_xxx_gui() (in Python) or BuildGui() / BuildXxxGui() (in C++) for all functions and methods that submit ImGui widgets (e.g., build_control_panel_gui(), BuildControlPanelGui()).
  • Avoid render() or draw() for UI layout functions. Reserve render / draw strictly for low-level graphics backend operations (such as ImGui_ImplOpenGL3_RenderDrawData).
python
# Good: Accurately describes building the frame's UI hierarchy
def build_gui(self) -> None:
  self.build_header_gui()
  self.build_table_gui()

# Avoid: Suggests immediate rasterization/rendering
def draw_ui(self):
  ...

2. Decoupling GUI from Application Logic

GUI code must strictly handle user layout, presentation, and input forwarding. The GUI is intended solely to glue the underlying logic together, and that glue layer should be as small and thin as possible. Never mix business logic, network/RPC queries, file operations, or simulation steps directly into frame build functions.

  • Minimal Glue Layer: The GUI component should do little more than bind user inputs to underlying library calls and render current state.
  • Separate Libraries: Core business logic belongs in a standalone library or module (e.g., inspector_lib.py vs inspector_gui.py).
  • Asynchronous Execution: Expensive operations (RPCs, subprocesses, large searches) must run on worker threads/tasks, with GUI code reading cached state or progress flags.
  • Testability: Decoupled libraries can be thoroughly tested via standard unit tests without requiring an active ImGui context or window.

3. Custom Widgets: Immediate Mode Pure Functions

Custom widgets should remain lightweight, immediate-mode pure functions:

  • Pure Immediate Mode: Pass inputs as arguments, return output or mutation tuples (e.g., changed, new_val = dial_widget(...)). Avoid heavy stateful framework abstractions.
  • Avoid Per-Widget Persistent State: Storing state across frames inside a widget incurs a maintenance burden and limits reusability across arbitrary contexts. Keep widgets stateless whenever possible; if state is essential, store it in the parent application state rather than inside the widget.
  • UX Customizations & Libraries: Tailored visual controls (e.g., dial knobs, meters) are encouraged when they enhance UX. Instead of importing large external dependencies, copy and refactor small, focused snippets (must be MIT-licensed) into clean immediate-mode functions. In MuJoCo, shared custom ImGui widget functionality lives in the imgui_widgets.h/cc files in the Studio UX module.
  • Test Engine Readiness: Expose interaction endpoints and bounding boxes using Dear ImGui Test Engine hooks/macros so automated test drivers can interact with custom controls.
  • Check Upstream & Changelog Before Implementing: Before writing a new custom widget, layout behavior, or feature from scratch:
    • Check the latest upstream changelog for the docking branch at https://github.com/ocornut/imgui/blob/docking/docs/CHANGELOG.txt and inspect what has changed relative to the vendored version in MuJoCo.
    • Search Dear ImGui GitHub issues (https://github.com/ocornut/imgui/issues) and the Wiki (https://github.com/ocornut/imgui/wiki) for existing solutions, standard snippets, or discussions on the topic.
    • Check Local vs Upstream (Update Dependency): In general, check both the local checked-out code and the latest code on GitHub. If the feature, widget, or bugfix already exists in a newer upstream release, the cleaner solution is often to update the vendored dependency rather than maintaining custom workarounds in application code.

4. Disallowing Obsolete Functions & Internal Headers

ImGui maintains a stable public API and clearly documents deprecations:

  • Ban Obsolete Functions: Always define IMGUI_DISABLE_OBSOLETE_FUNCTIONS (and IMGUI_DISABLE_OBSOLETE_KEYIO) during builds and framework updates to prevent deprecated patterns from lingering in the codebase.
  • Public API Stability: Rely on the official public API (imgui.h). Avoid including internal headers (imgui_internal.h) in application and tool code unless implementing foundational backend extensions.

5. Performance & Virtualization: ImGuiListClipper

When rendering lists, tables, or log views that may contain many items (e.g., 100+ bodies, simulation trajectories, log buffers):

  • Always Virtualize with ImGuiListClipper / imgui.ListClipper: Without clipping, ImGui generates vertices and text layouts for every item in the list even when offscreen. In remote streaming backends (WebViewer), unclipped tables saturate the WebSocket stream. In C++, use ImGuiListClipper clipper; clipper.Begin(...); in Python, use clipper = imgui.ListClipper(); clipper.Begin(...).
  • Clipper Usage: The clipper calculates the visible range and only submits the items currently in view.
python
if imgui.BeginTable('ItemsTable', 1):
  clipper = imgui.ListClipper()
  clipper.Begin(len(items))
  while clipper.Step():
    for i in range(clipper.DisplayStart, clipper.DisplayEnd):
      imgui.TableNextRow()
      imgui.TableNextColumn()
      imgui.TextUnformatted(items[i].name)
  imgui.EndTable()
  • Memory & Lifetime (imgui.TextUnformatted): Use imgui.TextUnformatted when displaying large or read-only text strings to avoid string copy and formatting overhead in Python bindings.

6. Runtime IDs, the ID Stack, and Test Automation (## vs ###)

Dear ImGui identifies widgets by hashing their label text against the current ID stack seed (ImGuiWindow::GetID calling ImHashStr in imgui.cpp). Understanding the string operators ## and ### is critical for avoiding ID collisions, maintaining state across dynamic label changes, and writing automatable UIs.

Technical Mechanics: ## vs ###

Both operators rely on Dear ImGui's internal text-rendering and hashing routines:

  • Display Boundary (FindRenderedTextEnd): Text rendering stops at the first occurrence of ##. Because ### also begins with ##, any characters following either ## or ### are hidden from the user.
  • Hidden Disambiguator (##):
    • ImHashStr hashes the entire string ("Label##Suffix"), including both the visible label and the hidden suffix.
    • Purpose: Disambiguating widgets that share the same visible label within the same ID scope (e.g., multiple "Delete" buttons or repeating row entries).
    • Why Selectable(f'{body_name}##body_row_{i}') uses ##: The visible label is body_name, but lists may contain duplicate body names or repeating entries. Appending ##body_row_{i} hashes the full string "{body_name}##body_row_{i}", producing a unique ID while keeping only body_name visible on screen. (Alternatively, wrap row rendering in imgui.PushID(i) / imgui.PopID()). If ### were used here instead, body_name would be discarded completely from the hash.
  • ID Override / Seed Reset (###):
    • ImHashStr specifically detects three # characters (###). When encountered, it resets the hash seed back to the initial seed (crc = seed) and hashes only the substring following ###. Any preceding visible text is completely discarded from the hash.
    • Dynamic Labels: When visible text changes across frames (e.g., f'Items ({count})###ItemCounterBtn' or animated frame titles), ### guarantees that the widget's internal ID remains constant. This preserves active focus, hover state, window docking positions, and collapse states.
    • Semantically Meaningful Names for Automation: For icon-only buttons (e.g., f'{ICON_FA_PLAY}###PlayButton', where ICON_FA_PLAY = '\uf04b'), the icon glyph itself is constant across frames and would technically produce a stable hash even without ###. However, without ###PlayButton, the resulting ID is derived from an opaque unicode codepoint. Using ###PlayButton assigns a human-readable, semantically meaningful identifier that facilitates agent-driven Dear ImGui Test Engine UI automation and computer control to reliably locate, inspect, and click the control by name ("PlayButton").

[!NOTE] Dear ImGui Test Engine is not currently bundled with MuJoCo, but support is planned, along with recorded UI interaction testing.

python
# Icon glyph constant (e.g. FontAwesome play button unicode "\uf04b")
ICON_FA_PLAY = '\uf04b'

# Semantic ID override: The glyph is displayed, but the ID hashes only
# 'PlayButton'. Provides a meaningful identifier for test automation agents and
# tooling.
imgui.Button(f'{ICON_FA_PLAY}###PlayButton')

# Dynamic label with stable ID: Visible text changes with 'count', but the ID
# remains hashed from 'ItemCounterBtn', preserving focus, click, and hover
# state.
imgui.Button(f'Items ({count})###ItemCounterBtn')

# Disambiguated duplicate label: Visible text is 'body_name', but the ID hashes
# the full string '{body_name}##body_row_{i}' to prevent ID collisions across
# rows.
imgui.Selectable(f'{body_name}##body_row_{i}', is_selected)

# ID Scoping alternative: Using PushID / PopID for row loops instead of ##
# suffixes
imgui.PushID(i)
imgui.Selectable(body_name, is_selected)
imgui.PopID()

Further ImGui & ImPlot References

Consult the upstream Dear ImGui and ImPlot sources and guides for authoritative details and patterns:

  • Dear ImGui ID Stack & API Guide: imgui.h (around line 600) covers ID stack operations (PushID, PopID, GetID) and widget disambiguation rules.
  • Dear ImGui Programmer Guide & String Hashing: The top of imgui.cpp contains the comprehensive Programmer Guide; lines ~2470–2515 contain ImHashStr documenting ### seed resetting.
  • Dear ImGui FAQ: The Dear ImGui FAQ includes dedicated sections on "How can I have multiple widgets with the same label?" and "Why is my widget not reacting when I click on it?".
  • Interactive ImGui Demo Window: imgui_demo.cpp provides complete, working examples of every widget, table feature, and clipper pattern. Call imgui.ShowDemoWindow() in your application to explore features interactively.
  • ImPlot Header & API Guide: implot.h documents all plotting APIs, flags, styling properties, and context management.
  • Interactive ImPlot Demo Window: implot_demo.cpp contains extensive interactive demos for lines, scatter, bars, shaded plots, and realtime scrolling subplots. Call implot.ShowDemoWindow() to inspect implementations.

7. UI Design & Aesthetics: Grid Alignment (Tables API), Tooltips & Theming Costs

High-quality ImGui tools balance immediate-mode simplicity with clean visual structure and consistent styling:

  • Grid-Aligned Widgets & Form Rows (Prefer the Tables API):

    • When arranging widgets into grids, key-value inspector panels, parameter sheets, or multi-row control bars where labels, dropdowns, or sliders must line up vertically and share equal widths, prefer the modern Tables API (imgui.BeginTable, TableNextRow, TableNextColumn).
    • Avoid legacy or brittle alignment techniques such as imgui.Columns() (obsolete), chaining SameLine() after variable-length text labels (different label widths shift every subsequent control horizontally), hardcoding pixel widths with SetNextItemWidth(px), or inserting dummy spacing.
    • Form & Multi-Control Alignment Recipe:
      • Pass int(imgui.TableFlags.SizingStretchProp) | int(imgui.TableFlags.NoPadOuterX) for borderless layout tables so the outer left and right edges stay flush with surrounding non-table widgets.
      • Place text labels in imgui.TableColumnFlags.WidthFixed columns (omitting an explicit width so ImGui auto-fits to the widest label across all rows) and call imgui.AlignTextToFramePadding() before TextUnformatted(...) so label baselines center vertically against framed controls (Combo, Slider, Input).
      • Place controls (Combo, SliderInt, SliderFloat, InputFloat) in imgui.TableColumnFlags.WidthStretch columns using hidden ## labels and imgui.SetNextItemWidth(-1) so every control in the column starts at the exact same X coordinate and stretches to the exact same length. If sliders also have trailing right-hand labels of different lengths (e.g., 'Quality' vs 'Overlay'), place those trailing labels in their own WidthFixed column—calling SetNextItemWidth(-1) directly on a widget with a visible label sizes the frame box to the full column width and clips the label.
  • Tooltip Length & Aspect Ratio:

    • Keep tooltips concise—avoid overly wordy descriptions that stretch into a wide single-line banner across the viewport.
    • Because SetTooltip and SetItemTooltip do not wrap text automatically, insert explicit newlines (\n) to keep the tooltip box at a pleasing, compact aspect ratio (~25–40 characters per line across 2–3 lines) rather than a long horizontal strip.
    • Split lines at natural phrase, clause, or sentence boundaries (for example, between the primary action summary and secondary status or context) so each line reads cleanly on its own.
  • Costs of Overriding Colors & Styles (Theming Impact):

    • Dear ImGui manages color palettes and visual metrics globally (supporting dark mode, light mode, or custom studio themes). Semantic colors are queried via ImGui::GetStyleColorVec4(...) in C++ or imgui.GetStyleColorVec4(...) in Python.
    • When custom widgets hardcode local color or style overrides (via imgui.PushStyleColor or imgui.PushStyleVar), those values become decoupled from the global theme defaults.
    • If an application or viewer switches themes (such as toggling between dark and light modes) or updates global styling metrics, hardcoded local overrides will not adapt and cannot be edited or updated via global defaults, often causing unreadable contrast or visual inconsistencies.
    • Guideline: Rely on semantic ImGui color tokens (imgui.Col.Text, imgui.Col.FrameBg, imgui.Col.Button, imgui.Col.Header, etc.) or derive dynamic colors via imgui.GetStyleColorVec4(...) rather than hardcoding static hex/RGB values. If a local override is strictly necessary, always pop it cleanly (PopStyleColor / PopStyleVar) and ensure it renders legibly across all supported themes.
python
# Good: Multi-row control bar with vertically aligned labels and equal-length
# dropdowns/sliders using a borderless layout table
flags = int(imgui.TableFlags.SizingStretchProp) | int(imgui.TableFlags.NoPadOuterX)
if imgui.BeginTable('##controls_layout', 4, flags):
  imgui.TableSetupColumn('Label', int(imgui.TableColumnFlags.WidthFixed))
  imgui.TableSetupColumn('Combo', int(imgui.TableColumnFlags.WidthStretch), 1.1)
  imgui.TableSetupColumn('Slider', int(imgui.TableColumnFlags.WidthStretch), 0.9)
  imgui.TableSetupColumn('TrailingLabel', int(imgui.TableColumnFlags.WidthFixed))

  imgui.TableNextRow()
  imgui.TableNextColumn()
  imgui.AlignTextToFramePadding()
  imgui.TextUnformatted('Format:')
  imgui.TableNextColumn()
  imgui.SetNextItemWidth(-1)
  _, fmt_idx = imgui.Combo('##format', fmt_idx, ['Lossless', 'Lossy'])
  imgui.TableNextColumn()
  imgui.SetNextItemWidth(-1)
  _, quality = imgui.SliderInt('##quality', quality, 1, 100)
  imgui.TableNextColumn()
  imgui.AlignTextToFramePadding()
  imgui.TextUnformatted('Quality')

  imgui.TableNextRow()
  imgui.TableNextColumn()
  imgui.AlignTextToFramePadding()
  imgui.TextUnformatted('Viewport:')
  imgui.TableNextColumn()
  imgui.SetNextItemWidth(-1)
  _, cam_idx = imgui.Combo('##camera', cam_idx, camera_names)
  imgui.TableNextColumn()
  imgui.SetNextItemWidth(-1)
  _, opacity = imgui.SliderFloat('##overlay', opacity, 0.0, 1.0)
  imgui.TableNextColumn()
  imgui.AlignTextToFramePadding()
  imgui.TextUnformatted('Overlay')

  imgui.EndTable()

# Avoid: Hardcoding colors detaches widgets from global themes
# (breaks dark/light modes)
# imgui.PushStyleColor(imgui.Col.Text, (0.1, 0.1, 0.1, 1.0))  # Unreadable in dark mode!

# Good: Rely on semantic theme colors from ImGui
text_color = imgui.GetStyleColorVec4(imgui.Col.Text)

8. Searchability of UI Strings in Source Code

Developers and agents often search the codebase for text seen on screen to locate the corresponding feature implementation:

  • Single-Line Static Strings: Keep user-visible label strings, button names, and headings on a single source line rather than breaking phrases across lines.
  • Conservative Interpolation: Avoid over-fragmenting strings or splitting prefixes/suffixes across multiple format variables when a single cohesive string or format template makes the UI text searchable.

9. Python Bindings

  • Thin Binding Layer (No GUI/Application Logic in Bindings): Just as GUI code should avoid containing heavy application logic in glue layers, pybind11 bindings (e.g., ux.cc) must remain thin wrappers around C++ functions (such as ux/*.h and ux/*.cc). Do not write multi-widget ImGui layout or application logic directly inside Python binding lambdas; implement the widget or helper in C++ and bind the function instead.
  • Add On-Demand (Never Remove): Expose new ImGui or ImPlot bindings to Python only when they are actually needed and used by an application or plugin. Once added, do not remove them.
  • Order Parity: When exposing new functions, add them in the exact order they appear in the upstream C++ headers to simplify future version upgrades and diffs.
  • Keyboard Capture Guarding (io.WantCaptureKeyboard): When implementing keyboard shortcuts (such as Space for pause or Backspace for reset), always check not imgui.GetIO().WantCaptureKeyboard before handling the key event. When a text input, filter box, or popup is active, ImGui sets WantCaptureKeyboard = True; ignoring this flag causes keystrokes typed into an input field to trigger simulation actions.
  • Initial Focus in Search & Popups (SetKeyboardFocusHere): When opening a command palette, filter box, or modal dialog, call imgui.SetKeyboardFocusHere() immediately before the imgui.InputText or InputTextWithHint call so the input field receives focus immediately without requiring a manual click.

Câu hỏi thường gặp

Kỹ năng AI Mujoco Gui làm được gì?

Dear ImGui and ImPlot user interface design for MuJoCo Studio and MuJoCo viewer plugins (C++ ux/ components and Python ViewerPlugin build_gui panels): immediate-mode widget layout, multi-row widget/column alignment (Tables API), tooltip length and aspect ratio, build_gui vs render separation, ID stack rules (## label disambiguation vs ### seed reset override), list virtualization (ImGuiListClipper), theming, and input capture (WantCaptureKeyboard). Use only when building, aligning, styling, or debugging MuJoCo Studio UI, mobile/HUD or responsive Studio layouts, or Dear ImGui widgets and ImP...

Vì sao nên dùng Mujoco Gui trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Mujoco Gui là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Mujoco Gui trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/eust-w/open-robotics-plugin/tree/main/skills/mujoco-gui. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Mujoco Gui?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Mujoco Gui với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Mujoco Gui với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Mujoco Gui có miễn phí không?

Có. Kỹ năng này được eust-w phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇