import agv_command


def create_pdu(command_name, client, **kwargs):
    new_pdu = agv_command.factory(command_name, client, **kwargs)
    return new_pdu


def parse_pdu(raw_pdu, client):
    command_name = agv_command.extract_command_id(raw_pdu)
    new_pdu = create_pdu(command_name, client)
    new_pdu.parse_pdu(raw_pdu)
    return new_pdu

687620c5ad1d938dd68464a092b53d3986d97308
<mask token>

<mask token>


def create_pdu(command_name, client, **kwargs):
    new_pdu = agv_command.factory(command_name, client, **kwargs)
    return new_pdu


<mask token>

<mask token>


def create_pdu(command_name, client, **kwargs):
    new_pdu = agv_command.factory(command_name, client, **kwargs)
    return new_pdu


def parse_pdu(raw_pdu, client):
    command_name = agv_command.extract_command_id(raw_pdu)
    new_pdu = create_pdu(command_name, client)
    new_pdu.parse_pdu(raw_pdu)
    return new_pdu

import agv_command


def create_pdu(command_name, client, **kwargs):
    new_pdu = agv_command.factory(command_name, client, **kwargs)
    return new_pdu


def parse_pdu(raw_pdu, client):
    command_name = agv_command.extract_command_id(raw_pdu)
    new_pdu = create_pdu(command_name, client)
    new_pdu.parse_pdu(raw_pdu)
    return new_pdu
