parameters: (self,worldModel)
return_statement: return
docstring: Sets this group to contain all entities of a world model
docstring_summary: Sets this group to contain all entities of a world model
docstring_tokens: Sets this group to contain all entities of a world model
function: def setWorldModel(self,worldModel):
          """Sets this group to contain all entities of a world model"""
          for i in range(worldModel.numRobots()):
              rgroup = self.addGroup(worldModel.robot(i).getName())
              rgroup.setRobotModel(worldModel.robot(i))
          for i in range(worldModel.numRigidObjects()):
              try:
                  f = self.addFrame(worldModel.rigidObject(i).getName(),worldCoordinates=worldModel.rigidObject(i).getTransform())
                  f._data = worldModel.rigidObject(i)
              except ValueError:
                  f = self.addFrame("%s[%d]"%(worldModel.rigidObject(i).getName(),i),worldCoordinates=worldModel.rigidObject(i).getTransform())
                  f._data = worldModel.rigidObject(i)
          for i in range(worldModel.numTerrains()):
              try:
                  f = self.addFrame(worldModel.terrain(i).getName(),worldCoordinates=se3.identity())
                  f._data = worldModel.terrain(i)
              except ValueError:
                  f = self.addFrame("%s[%d]"%(worldModel.terrain(i).getName(),i),worldCoordinates=se3.identity())
                  f._data = worldModel.terrain(i)
          return
function_tokens: def setWorldModel ( self , worldModel ) : for i in range ( worldModel . numRobots ( ) ) : rgroup = self . addGroup ( worldModel . robot ( i ) . getName ( ) ) rgroup . setRobotModel ( worldModel . robot ( i ) ) for i in range ( worldModel . numRigidObjects ( ) ) : try : f = self . addFrame ( worldModel . rigidObject ( i ) . getName ( ) , worldCoordinates = worldModel . rigidObject ( i ) . getTransform ( ) ) f . _data = worldModel . rigidObject ( i ) except ValueError : f = self . addFrame ( "%s[%d]" % ( worldModel . rigidObject ( i ) . getName ( ) , i ) , worldCoordinates = worldModel . rigidObject ( i ) . getTransform ( ) ) f . _data = worldModel . rigidObject ( i ) for i in range ( worldModel . numTerrains ( ) ) : try : f = self . addFrame ( worldModel . terrain ( i ) . getName ( ) , worldCoordinates = se3 . identity ( ) ) f . _data = worldModel . terrain ( i ) except ValueError : f = self . addFrame ( "%s[%d]" % ( worldModel . terrain ( i ) . getName ( ) , i ) , worldCoordinates = se3 . identity ( ) ) f . _data = worldModel . terrain ( i ) return