simulation.py
def loadUrdf(self): # {{{0
    "Present an open-file dialog for loading a URDF object"
    objs = openFileDialog(title="Select object file(s)...",
                          globs=("URDF (*.urdf)|*.urdf",),
                          multiple=True)
    logger.debug("Loading objects: {!r}".format(objs))
    scale = self.getSlider("URDF Size")
    for obj in objs:
      pos = randomVec()
      logger.debug("Loading URDF {} at {} with scale {}".format(obj, pos, scale))
      self.loadURDF(obj, basePosition=pos, globalScaling=scale)
Present an open-file dialog for loading a URDF object
Present an open-file dialog for loading a URDF object
Present an open - file dialog for loading a URDF object
def loadUrdf(self): 
    objs = openFileDialog(title="Select object file(s)...",
                          globs=("URDF (*.urdf)|*.urdf",),
                          multiple=True)
    logger.debug("Loading objects: {!r}".format(objs))
    scale = self.getSlider("URDF Size")
    for obj in objs:
      pos = randomVec()
      logger.debug("Loading URDF {} at {} with scale {}".format(obj, pos, scale))
      self.loadURDF(obj, basePosition=pos, globalScaling=scale)
def loadUrdf ( self ) : objs = openFileDialog ( title = "Select object file(s)..." , globs = ( "URDF (*.urdf)|*.urdf" , ) , multiple = True ) logger . debug ( "Loading objects: {!r}" . format ( objs ) ) scale = self . getSlider ( "URDF Size" ) for obj in objs : pos = randomVec ( ) logger . debug ( "Loading URDF {} at {} with scale {}" . format ( obj , pos , scale ) ) self . loadURDF ( obj , basePosition = pos , globalScaling = scale )
Present an open-file dialog for loading a URDF object
Present an open - file dialog for loading a URDF object
# {{{0 "Present an open-file dialog for loading a URDF object"
self