Functions | Variables
test_non-ros_service_client_fragmented Namespace Reference

Functions

def request_service
 variables end ##########################################

Variables

tuple announced = int(result[0]["total"])
string buffer = ""
int client_socket_timeout = 6
 variables begin ######################################## these parameters should be changed to match the actual environment #
tuple data_object = json.loads(buffer)
 done = False
string fragment = "{"
tuple fragment_count = len(result)
 incoming = None
int max_msg_length = 2000000
float receive_message_intervall = 0.0
int receiving_fragment_size = 1000
 note: receiving more than ~100.000 bytes without setting a fragment_size was not possible during testing.
 reconstructed = None
int request_byte_count = 500000
 result = None
tuple result_string = buffer.split("}{")
tuple returned_data = json.loads(reconstructed)
string rosbridge_ip = "localhost"
int rosbridge_port = 9090
string service_name = "send_bytes"
tuple sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 script begin ########################################### should not need to be changed (but could be improved ;) ) #
list sorted_result = [None]
list unsorted_result = []

Function Documentation

def test_non-ros_service_client_fragmented.request_service ( )

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

Definition at line 33 of file test_non-ros_service_client_fragmented.py.


Variable Documentation

tuple test_non-ros_service_client_fragmented::announced = int(result[0]["total"])

Definition at line 102 of file test_non-ros_service_client_fragmented.py.

test_non-ros_service_client_fragmented::buffer = ""

Definition at line 59 of file test_non-ros_service_client_fragmented.py.

int test_non-ros_service_client_fragmented::client_socket_timeout = 6

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

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

tuple test_non-ros_service_client_fragmented::data_object = json.loads(buffer)

Definition at line 76 of file test_non-ros_service_client_fragmented.py.

test_non-ros_service_client_fragmented::done = False

Definition at line 60 of file test_non-ros_service_client_fragmented.py.

string test_non-ros_service_client_fragmented::fragment = "{"

Definition at line 90 of file test_non-ros_service_client_fragmented.py.

tuple test_non-ros_service_client_fragmented::fragment_count = len(result)

Definition at line 100 of file test_non-ros_service_client_fragmented.py.

tuple test_non-ros_service_client_fragmented::incoming = None

Definition at line 58 of file test_non-ros_service_client_fragmented.py.

int test_non-ros_service_client_fragmented::max_msg_length = 2000000

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

float test_non-ros_service_client_fragmented::receive_message_intervall = 0.0

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

int test_non-ros_service_client_fragmented::receiving_fragment_size = 1000

note: receiving more than ~100.000 bytes without setting a fragment_size was not possible during testing.

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

list test_non-ros_service_client_fragmented::reconstructed = None

Definition at line 62 of file test_non-ros_service_client_fragmented.py.

int test_non-ros_service_client_fragmented::request_byte_count = 500000

Definition at line 24 of file test_non-ros_service_client_fragmented.py.

list test_non-ros_service_client_fragmented::result = None

Definition at line 61 of file test_non-ros_service_client_fragmented.py.

tuple test_non-ros_service_client_fragmented::result_string = buffer.split("}{")

Definition at line 86 of file test_non-ros_service_client_fragmented.py.

tuple test_non-ros_service_client_fragmented::returned_data = json.loads(reconstructed)

Definition at line 122 of file test_non-ros_service_client_fragmented.py.

string test_non-ros_service_client_fragmented::rosbridge_ip = "localhost"

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

int test_non-ros_service_client_fragmented::rosbridge_port = 9090

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

string test_non-ros_service_client_fragmented::service_name = "send_bytes"

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

tuple test_non-ros_service_client_fragmented::sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

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

Definition at line 52 of file test_non-ros_service_client_fragmented.py.

list test_non-ros_service_client_fragmented::sorted_result = [None]

Definition at line 105 of file test_non-ros_service_client_fragmented.py.

list test_non-ros_service_client_fragmented::unsorted_result = []

Definition at line 106 of file test_non-ros_service_client_fragmented.py.



rosbridge_library
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:09