idasen_controller/main.py
async def forward_command(config):
    """Send commands to the tcp server"""
    allowed_keys = ["sit", "stand", "move_to", "move_to_raw"]
    forwarded_config = { key: config[key] for key in allowed_keys if key in config }
    reader, writer = await asyncio.open_connection(config['server_address'], config['server_port'])
    writer.write(json.dumps(forwarded_config).encode())
    writer.close()
Send commands to the tcp server
Send commands to the tcp server
Send commands to the tcp server
async def forward_command(config):
    allowed_keys = ["sit", "stand", "move_to", "move_to_raw"]
    forwarded_config = { key: config[key] for key in allowed_keys if key in config }
    reader, writer = await asyncio.open_connection(config['server_address'], config['server_port'])
    writer.write(json.dumps(forwarded_config).encode())
    writer.close()
async def forward_command ( config ) : allowed_keys = [ "sit" , "stand" , "move_to" , "move_to_raw" ] forwarded_config = { key : config [ key ] for key in allowed_keys if key in config } reader , writer = await asyncio . open_connection ( config [ 'server_address' ] , config [ 'server_port' ] ) writer . write ( json . dumps ( forwarded_config ) . encode ( ) ) writer . close ( )
Send commands to the tcp server
Send commands to the tcp server
"""Send commands to the tcp server"""
config