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'
 

Function Documentation

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 523 of file test_message_converter.py.

Variable Documentation

string test.test_message_converter.NAME = 'test_message_converter'

Definition at line 542 of file test_message_converter.py.

string test.test_message_converter.PKG = 'rospy_message_converter'

Definition at line 541 of file test_message_converter.py.



rospy_message_converter
Author(s): Brandon Alexander
autogenerated on Tue May 7 2019 03:17:53