Functions | Variables
test_non-ros_service_server_fragmented Namespace Reference

Functions

def advertise_service ()
 
def calculate_service_response (request)
 variables end ########################################## More...
 
def connect_tcp_socket ()
 
def list_of_fragments (full_message, fragment_size)
 
def send_service_response (response)
 
def unadvertise_service ()
 
def wait_for_service_request ()
 

Variables

string buffer = ""
 service_calculation end ################################ More...
 
 data = None
 
def fragment_list = list_of_fragments(response, send_fragment_size)
 
int max_msg_length = 20000
 
int receive_fragment_size = 10
 
float receive_message_intervall = 0.0
 
def response = calculate_service_response(data)
 
string rosbridge_ip = "localhost"
 
int rosbridge_port = 9090
 
float send_fragment_delay = 0.000
 
int send_fragment_size = 1000
 
string service_name = "send_bytes"
 
string service_type = "rosbridge_library/SendBytes"
 
def tcp_socket = connect_tcp_socket()
 helper functions end ################################### More...
 
int tcp_socket_timeout = 10
 variables begin ######################################## these parameters should be changed to match the actual environment # More...
 

Function Documentation

◆ advertise_service()

def test_non-ros_service_server_fragmented.advertise_service ( )

Definition at line 81 of file test_non-ros_service_server_fragmented.py.

◆ calculate_service_response()

def test_non-ros_service_server_fragmented.calculate_service_response (   request)

variables end ##########################################

service_calculation begin ############################## change this function to match whatever service should be provided #

Definition at line 36 of file test_non-ros_service_server_fragmented.py.

◆ connect_tcp_socket()

def test_non-ros_service_server_fragmented.connect_tcp_socket ( )

Definition at line 75 of file test_non-ros_service_server_fragmented.py.

◆ list_of_fragments()

def test_non-ros_service_server_fragmented.list_of_fragments (   full_message,
  fragment_size 
)

Definition at line 169 of file test_non-ros_service_server_fragmented.py.

◆ send_service_response()

def test_non-ros_service_server_fragmented.send_service_response (   response)

Definition at line 166 of file test_non-ros_service_server_fragmented.py.

◆ unadvertise_service()

def test_non-ros_service_server_fragmented.unadvertise_service ( )

Definition at line 91 of file test_non-ros_service_server_fragmented.py.

◆ wait_for_service_request()

def test_non-ros_service_server_fragmented.wait_for_service_request ( )

Definition at line 98 of file test_non-ros_service_server_fragmented.py.

Variable Documentation

◆ buffer

string test_non-ros_service_server_fragmented.buffer = ""

service_calculation end ################################

helper functions / and variables begin ################# should not need to be changed (but could be improved ) #

Definition at line 73 of file test_non-ros_service_server_fragmented.py.

◆ data

def test_non-ros_service_server_fragmented.data = None

Definition at line 212 of file test_non-ros_service_server_fragmented.py.

◆ fragment_list

def test_non-ros_service_server_fragmented.fragment_list = list_of_fragments(response, send_fragment_size)

Definition at line 221 of file test_non-ros_service_server_fragmented.py.

◆ max_msg_length

int test_non-ros_service_server_fragmented.max_msg_length = 20000

Definition at line 15 of file test_non-ros_service_server_fragmented.py.

◆ receive_fragment_size

int test_non-ros_service_server_fragmented.receive_fragment_size = 10

Definition at line 26 of file test_non-ros_service_server_fragmented.py.

◆ receive_message_intervall

float test_non-ros_service_server_fragmented.receive_message_intervall = 0.0

Definition at line 27 of file test_non-ros_service_server_fragmented.py.

◆ response

def test_non-ros_service_server_fragmented.response = calculate_service_response(data)

Definition at line 218 of file test_non-ros_service_server_fragmented.py.

◆ rosbridge_ip

string test_non-ros_service_server_fragmented.rosbridge_ip = "localhost"

Definition at line 17 of file test_non-ros_service_server_fragmented.py.

◆ rosbridge_port

int test_non-ros_service_server_fragmented.rosbridge_port = 9090

Definition at line 18 of file test_non-ros_service_server_fragmented.py.

◆ send_fragment_delay

float test_non-ros_service_server_fragmented.send_fragment_delay = 0.000

Definition at line 25 of file test_non-ros_service_server_fragmented.py.

◆ send_fragment_size

int test_non-ros_service_server_fragmented.send_fragment_size = 1000

Definition at line 23 of file test_non-ros_service_server_fragmented.py.

◆ service_name

string test_non-ros_service_server_fragmented.service_name = "send_bytes"

Definition at line 21 of file test_non-ros_service_server_fragmented.py.

◆ service_type

string test_non-ros_service_server_fragmented.service_type = "rosbridge_library/SendBytes"

Definition at line 20 of file test_non-ros_service_server_fragmented.py.

◆ tcp_socket

def test_non-ros_service_server_fragmented.tcp_socket = connect_tcp_socket()

helper functions end ###################################

script begin ########################################### should not need to be changed (but could be improved ) #

Definition at line 206 of file test_non-ros_service_server_fragmented.py.

◆ tcp_socket_timeout

int test_non-ros_service_server_fragmented.tcp_socket_timeout = 10

variables begin ######################################## these parameters should be changed to match the actual environment #

Definition at line 14 of file test_non-ros_service_server_fragmented.py.



rosbridge_library
Author(s): Jonathan Mace
autogenerated on Fri Oct 21 2022 02:45:18