Classes | |
class | TestMessageConverter |
Functions | |
def | serialize_deserialize (message) |
Variables | |
string | NAME = 'test_message_converter' |
string | PKG = 'rospy_message_converter' |
tuple | python3 = (sys.hexversion > 0x03000000) |
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 842 of file test_message_converter.py.
string test.test_message_converter.NAME = 'test_message_converter' |
Definition at line 861 of file test_message_converter.py.
string test.test_message_converter.PKG = 'rospy_message_converter' |
Definition at line 860 of file test_message_converter.py.
tuple test.test_message_converter.python3 = (sys.hexversion > 0x03000000) |
Definition at line 11 of file test_message_converter.py.