Classes | Functions | Variables
test.test_message_converter Namespace Reference

Classes

class  TestMessageConverter
 

Functions

def serialize_deserialize (message)
 

Variables

string NAME = 'test_message_converter'
 
string PKG = 'rospy_message_converter'
 
int python3 = sys.hexversion > 0x03000000
 

Function Documentation

◆ serialize_deserialize()

def test.test_message_converter.serialize_deserialize (   message)
Serialize and then deserialize a message. This simulates sending a message
between ROS nodes and makes sure that the ROS messages being tested are
actually serializable, and are in the same format as they would be received
over the network. In rospy, it is possible to assign an illegal data type
to a message field (for example, `message = String(data=42)`), but trying
to publish this message will throw `SerializationError: field data must be
of type str`. This method will expose such bugs.

Definition at line 1164 of file test_message_converter.py.

Variable Documentation

◆ NAME

string test.test_message_converter.NAME = 'test_message_converter'

Definition at line 1184 of file test_message_converter.py.

◆ PKG

string test.test_message_converter.PKG = 'rospy_message_converter'

Definition at line 1183 of file test_message_converter.py.

◆ python3

int test.test_message_converter.python3 = sys.hexversion > 0x03000000

Definition at line 46 of file test_message_converter.py.



rospy_message_converter
Author(s): Brandon Alexander
autogenerated on Thu Dec 22 2022 03:33:21