コード例 #1
0
    def __init__(self, viewport, mouse, keyboard):
        """Instance initializer.

    Args:
      viewport: Render viewport, instance of renderer.Viewport.
      mouse: A mouse device.
      keyboard: A keyboard device.
    """
        self._viewport = viewport
        self._mouse = mouse

        self._null_perturbation = renderer.NullPerturbation()
        self._render_settings = renderer.RenderSettings()
        self._input_map = user_input.InputMap(mouse, keyboard)

        self._camera = None
        self._camera_settings = None
        self._renderer = None
        self._manipulator = None
        self._free_camera = None
        self._camera_select = None
コード例 #2
0
ファイル: renderer_test.py プロジェクト: mingfeisun/GAIL-UR10
 def setUp(self):
     super(RenderSettingsTest, self).setUp()
     self.settings = renderer.RenderSettings()
     self.scene = wrapper.MjvScene()
コード例 #3
0
 def setUp(self):
   self.settings = renderer.RenderSettings()
   self.scene = wrapper.MjvScene()