コード例 #1
0
ファイル: sensors.py プロジェクト: JonFountain/imusim
    def __init__(self, platform, positionOffset=vector(0,0,0),
            rotationOffset=Quaternion(1,0,0,0)):
        """
        Initialise sensor.

        @param platform: L{Platform} this sensor will be attached to.
        @param positionOffset: Position offset vector of this sensor
            in the local co-ordinate frame of its host platform.
        @param rotationOffset: Rotation offset quaternion of this sensor
            in the local co-ordinate frame of its host platform.
        """
        self._positionOffset = positionOffset
        self._rotationOffset = rotationOffset
        Component.__init__(self, platform)
コード例 #2
0
ファイル: sensors.py プロジェクト: windsmell/imusim
    def __init__(self, platform, positionOffset=vector(0,0,0),
            rotationOffset=Quaternion(1,0,0,0)):
        """
        Initialise sensor.

        @param platform: L{Platform} this sensor will be attached to.
        @param positionOffset: Position offset vector of this sensor
            in the local co-ordinate frame of its host platform.
        @param rotationOffset: Rotation offset quaternion of this sensor
            in the local co-ordinate frame of its host platform.
        """
        self._positionOffset = positionOffset
        self._rotationOffset = rotationOffset
        Component.__init__(self, platform)
コード例 #3
0
 def __init__(self, platform):
     self._process = None
     Component.__init__(self, platform)
コード例 #4
0
ファイル: radios.py プロジェクト: JonFountain/imusim
 def __init__(self, platform):
     Component.__init__(self, platform)
     self._receiveHandler = None
コード例 #5
0
 def __init__(self, platform):
     Component.__init__(self, platform)
     self._receiveHandler = None