-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement sensor delay * 3 it is * fix type issues in NaoInterface * fix formatting * fix some more type issues * --wip-- * arrow interface for plotting arrows * track with camera * ruff check * remove commented code * remove more commented code * move ringbuffer * move ringbuffer test
- Loading branch information
Showing
16 changed files
with
445 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...rning/mujoco/packages/mujoco-interactive-viewer/src/mujoco_interactive_viewer/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .context import current_viewer, set_global_viewer | ||
from .figure import Figure | ||
from .marker import Marker | ||
from .viewer import Viewer | ||
|
||
__all__ = ["Figure", "Marker", "Viewer"] | ||
__all__ = ["Figure", "Marker", "Viewer", "current_viewer", "set_global_viewer"] |
12 changes: 12 additions & 0 deletions
12
...arning/mujoco/packages/mujoco-interactive-viewer/src/mujoco_interactive_viewer/context.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from mujoco_interactive_viewer.viewer import Viewer | ||
|
||
_viewer: Viewer | None = None | ||
|
||
|
||
def set_global_viewer(viewer: Viewer) -> None: | ||
global _viewer | ||
_viewer = viewer | ||
|
||
|
||
def current_viewer() -> Viewer | None: | ||
return _viewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.