src/tools/lidar_integration/lidar_integration/lidar_checker.py
def make_lidar_checker(*,
                       input_type,
                       topic,
                       size,
                       period,
                       period_tolerance=0.7,
                       size_tolerance=0.1,
                       runtime=10):
    """
    Make a lidar_integration_listener to check the specified topic.

    :param input_type: One of "cloud", "box", "track", or "block", specifying the listened topic
    type
    :param size: The expected size of the point cloud messages
    :param period: The expected period of the incoming messages
    :param period_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the period can be from the expected value.  Larger numbers = wider tolerance
    :param size_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the size can be from the expected value.  Larger numbers = wider tolerance
    :param runtime: The amount of time to run the checker for
    """
    checker = launch_ros.actions.Node(
        package="lidar_integration",
        executable="lidar_integration_listener_exe",
        namespace="lidar_front",
        arguments=[
            "--type", "{}".format(input_type),
            "--topic", "{}".format(topic),
            "--size", "{}".format(size),
            "--period", "{}".format(period),
            "--period_tolerance", "{}".format(period_tolerance),
            "--size_tolerance", "{}".format(size_tolerance),
            "--runtime", "{}".format(runtime),
        ]
    )

    # Glue a little more information on the checker for when we print diagnostic messages
    setattr(checker, "_checker_id", topic)

    return checker

    Make a lidar_integration_listener to check the specified topic.

    :param input_type: One of "cloud", "box", "track", or "block", specifying the listened topic
    type
    :param size: The expected size of the point cloud messages
    :param period: The expected period of the incoming messages
    :param period_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the period can be from the expected value.  Larger numbers = wider tolerance
    :param size_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the size can be from the expected value.  Larger numbers = wider tolerance
    :param runtime: The amount of time to run the checker for
    
Make a lidar_integration_listener to check the specified topic.
Make a lidar_integration_listener to check the specified topic .
def make_lidar_checker(*,
                       input_type,
                       topic,
                       size,
                       period,
                       period_tolerance=0.7,
                       size_tolerance=0.1,
                       runtime=10):
    checker = launch_ros.actions.Node(
        package="lidar_integration",
        executable="lidar_integration_listener_exe",
        namespace="lidar_front",
        arguments=[
            "--type", "{}".format(input_type),
            "--topic", "{}".format(topic),
            "--size", "{}".format(size),
            "--period", "{}".format(period),
            "--period_tolerance", "{}".format(period_tolerance),
            "--size_tolerance", "{}".format(size_tolerance),
            "--runtime", "{}".format(runtime),
        ]
    )
    setattr(checker, "_checker_id", topic)
    return checker
def make_lidar_checker ( * , input_type , topic , size , period , period_tolerance = 0.7 , size_tolerance = 0.1 , runtime = 10 ) : checker = launch_ros . actions . Node ( package = "lidar_integration" , executable = "lidar_integration_listener_exe" , namespace = "lidar_front" , arguments = [ "--type" , "{}" . format ( input_type ) , "--topic" , "{}" . format ( topic ) , "--size" , "{}" . format ( size ) , "--period" , "{}" . format ( period ) , "--period_tolerance" , "{}" . format ( period_tolerance ) , "--size_tolerance" , "{}" . format ( size_tolerance ) , "--runtime" , "{}" . format ( runtime ) , ] ) setattr ( checker , "_checker_id" , topic ) return checker
Make a lidar_integration_listener to check the specified topic.
Make a lidar_integration_listener to check the specified topic .
"""
    Make a lidar_integration_listener to check the specified topic.

    :param input_type: One of "cloud", "box", "track", or "block", specifying the listened topic
    type
    :param size: The expected size of the point cloud messages
    :param period: The expected period of the incoming messages
    :param period_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the period can be from the expected value.  Larger numbers = wider tolerance
    :param size_tolerance: A percentage expressed as a number from 0 to 1 that controls
    how far off the size can be from the expected value.  Larger numbers = wider tolerance
    :param runtime: The amount of time to run the checker for
    """ # Glue a little more information on the checker for when we print diagnostic messages
input_type
One of "cloud", "box", "track", or "block", specifying the listened topic
type
One of " cloud " " box " " track " or " block " specifying the listened topic type
topic
size
The expected size of the point cloud messages
The expected size of the point cloud messages
period
The expected period of the incoming messages
The expected period of the incoming messages
period_tolerance
A percentage expressed as a number from 0 to 1 that controls
how far off the period can be from the expected value.  Larger numbers = wider tolerance
A percentage expressed as a number from 0 to 1 that controls how far off the period can be from the expected value . Larger numbers = wider tolerance
size_tolerance
A percentage expressed as a number from 0 to 1 that controls
how far off the size can be from the expected value.  Larger numbers = wider tolerance
A percentage expressed as a number from 0 to 1 that controls how far off the size can be from the expected value . Larger numbers = wider tolerance
runtime
The amount of time to run the checker for
The amount of time to run the checker for