parameters: (self, mode)
docstring: Args:
              mode (str or enum): either a RenderMode value or its string version.
                                  'rgb', 'depth', 'semantic', 'instance', or 'invdepth'
docstring_summary: Args:
              mode (str or enum): either a RenderMode value or its string version.
                                  'rgb', 'depth', 'semantic', 'instance', or 'invdepth'
docstring_tokens: Args : mode ( str or enum ) : either a RenderMode value or its string version . rgb depth semantic instance or invdepth
function: def set_render_mode(self, mode):
          """
          Args:
              mode (str or enum): either a RenderMode value or its string version.
                                  'rgb', 'depth', 'semantic', 'instance', or 'invdepth'
          """
          mappings = {
              'rgb': RenderMode.RGB,
              'depth': RenderMode.DEPTH,
              'semantic': RenderMode.SEMANTIC,
              'instance': RenderMode.INSTANCE,
              'invdepth': RenderMode.INVDEPTH,
          }
          if isinstance(mode, six.string_types):
              mode = mode.lower()
              self.api_mode = mappings[mode]
          else:
              assert mode in set(mappings.values())
              self.api_mode = mode
          self.api.setMode(self.api_mode)
function_tokens: def set_render_mode ( self , mode ) : mappings = { 'rgb' : RenderMode . RGB , 'depth' : RenderMode . DEPTH , 'semantic' : RenderMode . SEMANTIC , 'instance' : RenderMode . INSTANCE , 'invdepth' : RenderMode . INVDEPTH , } if isinstance ( mode , six . string_types ) : mode = mode . lower ( ) self . api_mode = mappings [ mode ] else : assert mode in set ( mappings . values ( ) ) self . api_mode = mode self . api . setMode ( self . api_mode )