Classes | Functions | Variables
test_server Namespace Reference

Classes

class  ColaLMDscandataGenerator
 
class  ColaResponseMap
 
class  TestServer
 

Functions

def hexStringToByteArray (message)
 
def parseBinaryColaPayloadLength (payload)
 
def stringToByteArray (message)
 

Variables

 arg_parser = argparse.ArgumentParser()
 
 cli_args = arg_parser.parse_args()
 
 default
 
 help
 
string scandata_file = "../test/emulator/scandata/20210302_lms511.pcapng.scandata.txt"
 
float send_data_frequency = 2.0
 
 server = TestServer(tcp_port)
 
int tcp_port = 2112
 
 type
 

Detailed Description

    A simple test server for sick_scan_base. A listening tcp socket is opened, incoming connections are accepted and some basic cola telegrams are responded on client requests.
    Note: This is just a simple test server for basic unittests of sick_scan_base drivers. It does not emulate any real lidar sensor.

    Usage:
    python test_server.py --scandata_file=<scandatafile> --scandata_frequency=<freq> --tcp_port=<int>
    
    Example:
    python ../test/emulator/test_server.py --scandata_file=../test/emulator/scandata/20210302_lms511.pcapng.scandata.txt --scandata_frequency=2.0 --tcp_port=2112

Function Documentation

◆ hexStringToByteArray()

def test_server.hexStringToByteArray (   message)

Definition at line 31 of file test_server.py.

◆ parseBinaryColaPayloadLength()

def test_server.parseBinaryColaPayloadLength (   payload)

Definition at line 20 of file test_server.py.

◆ stringToByteArray()

def test_server.stringToByteArray (   message)

Definition at line 27 of file test_server.py.

Variable Documentation

◆ arg_parser

test_server.arg_parser = argparse.ArgumentParser()

Definition at line 209 of file test_server.py.

◆ cli_args

test_server.cli_args = arg_parser.parse_args()

Definition at line 213 of file test_server.py.

◆ default

test_server.default

Definition at line 210 of file test_server.py.

◆ help

test_server.help

Definition at line 210 of file test_server.py.

◆ scandata_file

string test_server.scandata_file = "../test/emulator/scandata/20210302_lms511.pcapng.scandata.txt"

Definition at line 206 of file test_server.py.

◆ send_data_frequency

test_server.send_data_frequency = 2.0

Definition at line 205 of file test_server.py.

◆ server

test_server.server = TestServer(tcp_port)

Definition at line 219 of file test_server.py.

◆ tcp_port

int test_server.tcp_port = 2112

Definition at line 204 of file test_server.py.

◆ type

test_server.type

Definition at line 210 of file test_server.py.



sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:21