def ros_advertise_service_cmd(_type, service):
    """
    create a rosbridge advertise_service command object

    :param _type: type of the ROS service
    :param service: name of the service
    """
    command = {
        "op": "advertise_service",
        "type": _type,
        "service": service
    }

    return command