Example #1
0
 def __init__(self):
     self.direction = Ogre.Vector3.UNIT_Z
     self._force_pos = Ogre.Vector3.ZERO
     self._force = 0
     self.max_force = 0
     self.min_force = 0
     Visual.__init__(self)
Example #2
0
 def __init__(self):
     self.direction = Ogre.Vector3.UNIT_Z
     self._force_pos = Ogre.Vector3.ZERO
     self._force = 0
     self.max_force = 0
     self.min_force = 0
     Visual.__init__(self)
Example #3
0
 def load(self, data_object):
     Body.load(self, data_object)
     Visual.load(self, data_object)
     # Link body and node toghether
     self._body.attachToNode(self._node)
     buoyantPlaneUp = defaults.gravity.normalisedCopy() * -1;
     self.set_buoyancy(buoyantPlaneUp)
     
     self._body.angularDamping = (10,10,10)
Example #4
0
 def init(self, parent, name, scene, shape_type, shape_props, mass, mesh, 
          material, position = Ogre.Vector3.ZERO, 
          orientation = Ogre.Quaternion.IDENTITY,
          scale = Ogre.Vector3(1,1,1)):
     
     Body.init(self, None, name, scene, mass, shape_type, 
                   shape_props, position, orietnation)
     Visual.init(self, None, name, scene, mesh, material, position, 
                 orietnation, scale)
Example #5
0
    def load(self, data_object):
        Body.load(self, data_object)
        Visual.load(self, data_object)
        # Link body and node toghether
        self._body.attachToNode(self._node)
        buoyantPlaneUp = defaults.gravity.normalisedCopy() * -1
        self.set_buoyancy(buoyantPlaneUp)

        self._body.angularDamping = (10, 10, 10)
Example #6
0
    def load(self, data_object):
        scene, parent, node = data_object
        if not node.has_key('Graphical'):
            # Default mesh and scale info
            gfxNode = {'mesh' : 'sphere.50cm.mesh', 
                       'scale' : [0.15, 0.15, 0.23],
                       'material' : 'Simple/Orange' }
            node['Graphical'] = gfxNode
        Visual.load(self, (scene, parent, node))

        self._pingerID = node.get('ID', 0)
        self._pingInterval = node.get('pingInterval', 2)
        self._timeSinceLastPing = -1 * node.get('delay', 0)
Example #7
0
    def load(self, data_object):
        scene, parent, node = data_object
        if not node.has_key('Graphical'):
            # Default mesh and scale info
            gfxNode = {
                'mesh': 'sphere.50cm.mesh',
                'scale': [0.15, 0.15, 0.23],
                'material': 'Simple/Orange'
            }
            node['Graphical'] = gfxNode
        Visual.load(self, (scene, parent, node))

        self._pingerID = node.get('ID', 0)
        self._pingInterval = node.get('pingInterval', 2)
        self._timeSinceLastPing = -1 * node.get('delay', 0)
Example #8
0
    def init(self,
             parent,
             name,
             scene,
             shape_type,
             shape_props,
             mass,
             mesh,
             material,
             position=Ogre.Vector3.ZERO,
             orientation=Ogre.Quaternion.IDENTITY,
             scale=Ogre.Vector3(1, 1, 1)):

        Body.init(self, None, name, scene, mass, shape_type, shape_props,
                  position, orietnation)
        Visual.init(self, None, name, scene, mesh, material, position,
                    orietnation, scale)
Example #9
0
 def __init__(self):
     Visual.__init__(self)
     self._robot = None
     self._sonarSys = None
     self._timeSinceLastPing = 0
     self._pingInterval = 0
Example #10
0
 def __init__(self):
     Visual.__init__(self)
     self._robot = None
     self._sonarSys = None
     self._timeSinceLastPing = 0
     self._pingInterval = 0
Example #11
0
 def __init__(self):
     Body.__init__(self)
     Visual.__init__(self)
Example #12
0
 def __init__(self):
     Body.__init__(self)
     Visual.__init__(self)