コード例 #1
0
class QueryStatus(Command):
    arguments = []
    response = [('fix', Boolean()), ('lat', Float()), ('lon', Float()),
                ('gps_heading', Float()), ('gps_speed', Float()),
                ('altitude', Float()), ('num_sat', Integer()),
                ('timestamp', String()), ('datestamp', String()),
                ('compass_heading', Float()), ('temperature', Float())]
コード例 #2
0
ファイル: network_declarations.py プロジェクト: mulaifi/game
class NewPlayer(Command):
	#Notify someone that a Player with the given identifier is at the given position.
	arguments = [('identifier', Integer()), ('x', Float()), ('y', Float())]
コード例 #3
0
ファイル: network_declarations.py プロジェクト: mulaifi/game
class Introduce(Command):
	#Client greeting message used to retrieve initial model state.
	response = [('identifier', Integer()), ('granularity', Integer()), ('x', Float()), ('y', Float())]
コード例 #4
0
ファイル: term_controller.py プロジェクト: abyll/turret
class PanCommand(Command):
    arguments = [('speed', Float())]
    requiresAnswer = False
コード例 #5
0
class ManualDriveCmd(Command):
    arguments = [('throttle', Float()), ('steering', Float())]
    response = [('status', Boolean())]
    requiresAnswer = False
コード例 #6
0
class NavigationCmd(Command):
    arguments = [('speed', Float()), ('heading', Float())]
    response = [('status', Boolean())]
    requiresAnswer = False
コード例 #7
0
class Benchmark(Command):
    arguments = [
        (b'foo', String()),
        (b'bar', Integer()),
        (b'baz', ListOf(Float())),
    ]