Skip to content

Commit

Permalink
Add preliminary docstrings to viz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Foat committed Jul 22, 2024
1 parent 094078d commit 614ea56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stac_mjx/viz.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""A collection mujoco-mjx vizualization utilities.
"""


from dm_control import mjcf
from dm_control.locomotion.walkers import rescale
from dm_control.mujoco.wrapper.mjbindings import enums
Expand Down Expand Up @@ -192,6 +196,8 @@ def overlay_viz(
save_path,
camera: Text = "close_profile",
):
"""TBD
"""
scene_option = wrapper.MjvOption()
# scene_option.geomgroup[1] = 0
scene_option.geomgroup[2] = 1
Expand Down Expand Up @@ -302,6 +308,8 @@ def overlay_viz(


def mujoco_viz(data_path, model_xml, n_frames, save_path, start_frame: int = 0):
"""Renders forward kinematics from keypoint positions.
"""
scene_option = mujoco.MjvOption()
# scene_option.geomgroup[1] = 0
scene_option.geomgroup[2] = 1
Expand Down

0 comments on commit 614ea56

Please sign in to comment.