simulation.py
def addRandomUrdf(self): # {{{0
    "Add a random URDF to the simulation"
    f = pyb3.getRandomUrdf()
    if f:
      scale = self.getSlider("URDF Size")
      logger.debug("Adding random URDF: {} (scale {})".format(f, scale))
      self.loadURDF(f, basePosition=randomVec(), globalScaling=scale)
    else:
      logger.error("Failed to add random URDF")
Add a random URDF to the simulation
Add a random URDF to the simulation
Add a random URDF to the simulation
def addRandomUrdf(self): 
    f = pyb3.getRandomUrdf()
    if f:
      scale = self.getSlider("URDF Size")
      logger.debug("Adding random URDF: {} (scale {})".format(f, scale))
      self.loadURDF(f, basePosition=randomVec(), globalScaling=scale)
    else:
      logger.error("Failed to add random URDF")
def addRandomUrdf ( self ) : f = pyb3 . getRandomUrdf ( ) if f : scale = self . getSlider ( "URDF Size" ) logger . debug ( "Adding random URDF: {} (scale {})" . format ( f , scale ) ) self . loadURDF ( f , basePosition = randomVec ( ) , globalScaling = scale ) else : logger . error ( "Failed to add random URDF" )
Add a random URDF to the simulation
Add a random URDF to the simulation
# {{{0 "Add a random URDF to the simulation"
self