viewer#
Submodules#
sapien.utils.viewer.articulation_window module#
sapien.utils.viewer.camera_control module#
sapien.utils.viewer.contact_window module#
sapien.utils.viewer.control_window module#
- class sapien.utils.viewer.control_window.ControlWindow[source]#
Bases:
Plugin
- property camera_index#
- property camera_items#
- property display_target_index#
- property fovy#
- property renderer_context#
- property selected_entity#
- property show_camera_linesets#
- property show_joint_axes#
- property show_origin_frame#
- property window#
sapien.utils.viewer.entity_window module#
sapien.utils.viewer.imgui_ini module#
sapien.utils.viewer.keyframe_window module#
- class sapien.utils.viewer.keyframe_window.Duration(keyframe0, keyframe1, name='', definition='import sapien\nimport numpy as np\n\n\nclass Reward:\n def __init__(self, env, scene: sapien.Scene):\n self.env = env\n self.scene = scene\n\n def compute(self):\n return 0\n')[source]#
Bases:
UIDuration
- DEFAULT_DEFINITION = 'import sapien\nimport numpy as np\n\n\nclass Reward:\n def __init__(self, env, scene: sapien.Scene):\n self.env = env\n self.scene = scene\n\n def compute(self):\n return 0\n'#
- keyframe0(self: sapien.pysapien.internal_renderer.UIDuration) sapien.pysapien.internal_renderer.UIKeyframe [source]#
- class sapien.utils.viewer.keyframe_window.Keyframe(serialized_scene, frame=0)[source]#
Bases:
UIKeyframe
sapien.utils.viewer.path_window module#
sapien.utils.viewer.plugin module#
- class sapien.utils.viewer.plugin.Plugin[source]#
Bases:
object
- init(v: viewer.Viewer)[source]#
sapien.utils.viewer.render_window module#
sapien.utils.viewer.scene_window module#
sapien.utils.viewer.serialization module#
sapien.utils.viewer.setting_window module#
sapien.utils.viewer.transform_window module#
sapien.utils.viewer.viewer module#
- class sapien.utils.viewer.viewer.Viewer(renderer: ~sapien.pysapien.render.SapienRenderer | None = None, shader_dir='', resolutions=(1920, 1080), plugins=[<sapien.utils.viewer.path_window.PathWindow object>, <sapien.utils.viewer.contact_window.ContactWindow object>, <sapien.utils.viewer.setting_window.SettingWindow object>, <sapien.utils.viewer.transform_window.TransformWindow object>, <sapien.utils.viewer.render_window.RenderOptionsWindow object>, <sapien.utils.viewer.control_window.ControlWindow object>, <sapien.utils.viewer.scene_window.SceneWindow object>, <sapien.utils.viewer.entity_window.EntityWindow object>, <sapien.utils.viewer.articulation_window.ArticulationWindow object>])[source]#
Bases:
object
- property cameras#
- property closed#
- property control_window: ControlWindow#
- loop(physx_steps=0)[source]#
A convenience method for opening a temporary viewer for a scene. Simply call scene.create_viewer().loop()
- property render_scene#
- property resolution#
- property selected_entity_visibility#