Public Member Functions | List of all members
test.test_message_converter.TestMessageConverter Class Reference
Inheritance diagram for test.test_message_converter.TestMessageConverter:
Inheritance graph
[legend]

Public Member Functions

def test_dictionary_with_3uint8_array_bytes (self)
 
def test_dictionary_with_3uint8_array_list (self)
 
def test_dictionary_with_3uint8_array_none (self)
 
def test_dictionary_with_array (self)
 
def test_dictionary_with_array_none (self)
 
def test_dictionary_with_bool (self)
 
def test_dictionary_with_bool_none (self)
 
def test_dictionary_with_byte (self)
 
def test_dictionary_with_byte_none (self)
 
def test_dictionary_with_char (self)
 
def test_dictionary_with_char_none (self)
 
def test_dictionary_with_child_message (self)
 
def test_dictionary_with_child_message_none (self)
 
def test_dictionary_with_duration (self)
 
def test_dictionary_with_duration_nested_none (self)
 
def test_dictionary_with_duration_none (self)
 
def test_dictionary_with_empty (self)
 
def test_dictionary_with_empty_additional_args_forgiving (self)
 
def test_dictionary_with_empty_additional_args_strict_mode (self)
 
def test_dictionary_with_empty_service (self)
 
def test_dictionary_with_float32 (self)
 
def test_dictionary_with_float32_none (self)
 
def test_dictionary_with_float64 (self)
 
def test_dictionary_with_float64_none (self)
 
def test_dictionary_with_header (self)
 
def test_dictionary_with_header_none (self)
 
def test_dictionary_with_header_with_no_prefix (self)
 
def test_dictionary_with_int16 (self)
 
def test_dictionary_with_int16_none (self)
 
def test_dictionary_with_int32 (self)
 
def test_dictionary_with_int32_none (self)
 
def test_dictionary_with_int64 (self)
 
def test_dictionary_with_int64_none (self)
 
def test_dictionary_with_int8 (self)
 
def test_dictionary_with_int8_none (self)
 
def test_dictionary_with_invalid_kind (self)
 
def test_dictionary_with_invalid_message_fields (self)
 
def test_dictionary_with_missing_field_checked (self)
 
def test_dictionary_with_missing_field_unchecked (self)
 
def test_dictionary_with_nested_additional_args_forgiving (self)
 
def test_dictionary_with_nested_additional_args_strict_mode (self)
 
def test_dictionary_with_nested_missing_field_checked (self)
 
def test_dictionary_with_nested_missing_field_unchecked (self)
 
def test_dictionary_with_nested_service (self)
 
def test_dictionary_with_numpy_conversions (self)
 
def test_dictionary_with_setbool_service (self)
 
def test_dictionary_with_string (self)
 
def test_dictionary_with_string_none (self)
 
def test_dictionary_with_time (self)
 
def test_dictionary_with_time_nested_none (self)
 
def test_dictionary_with_time_none (self)
 
def test_dictionary_with_time_now (self)
 
def test_dictionary_with_trigger_service (self)
 
def test_dictionary_with_uint16 (self)
 
def test_dictionary_with_uint16_none (self)
 
def test_dictionary_with_uint32 (self)
 
def test_dictionary_with_uint32_none (self)
 
def test_dictionary_with_uint64 (self)
 
def test_dictionary_with_uint64_none (self)
 
def test_dictionary_with_uint8 (self)
 
def test_dictionary_with_uint8_array_bytes (self)
 
def test_dictionary_with_uint8_array_bytes_unencoded (self)
 
def test_dictionary_with_uint8_array_list (self)
 
def test_dictionary_with_uint8_array_list_invalid (self)
 
def test_dictionary_with_uint8_array_none (self)
 
def test_dictionary_with_uint8_none (self)
 
def test_dictionary_with_unicode (self)
 
def test_dictionary_with_wrong_type (self)
 
def test_ros_message_with_3uint8_array (self)
 
def test_ros_message_with_3uint8_array_binary_array_as_array (self)
 
def test_ros_message_with_array (self)
 
def test_ros_message_with_bool (self)
 
def test_ros_message_with_byte (self)
 
def test_ros_message_with_char (self)
 
def test_ros_message_with_child_message (self)
 
def test_ros_message_with_duration (self)
 
def test_ros_message_with_empty (self)
 
def test_ros_message_with_empty_service (self)
 
def test_ros_message_with_float32 (self)
 
def test_ros_message_with_float64 (self)
 
def test_ros_message_with_header (self)
 
def test_ros_message_with_int16 (self)
 
def test_ros_message_with_int32 (self)
 
def test_ros_message_with_int64 (self)
 
def test_ros_message_with_int8 (self)
 
def test_ros_message_with_nested_service (self)
 
def test_ros_message_with_nested_uint8_array (self)
 
def test_ros_message_with_nested_uint8_array_binary_array_as_array (self)
 
def test_ros_message_with_string (self)
 
def test_ros_message_with_time (self)
 
def test_ros_message_with_uint16 (self)
 
def test_ros_message_with_uint32 (self)
 
def test_ros_message_with_uint64 (self)
 
def test_ros_message_with_uint8 (self)
 
def test_ros_message_with_uint8_array (self)
 
def test_ros_message_with_unicode (self)
 

Detailed Description

Definition at line 49 of file test_message_converter.py.

Member Function Documentation

◆ test_dictionary_with_3uint8_array_bytes()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_3uint8_array_bytes (   self)

Definition at line 450 of file test_message_converter.py.

◆ test_dictionary_with_3uint8_array_list()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_3uint8_array_list (   self)

Definition at line 462 of file test_message_converter.py.

◆ test_dictionary_with_3uint8_array_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_3uint8_array_none (   self)

Definition at line 949 of file test_message_converter.py.

◆ test_dictionary_with_array()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_array (   self)

Definition at line 360 of file test_message_converter.py.

◆ test_dictionary_with_array_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_array_none (   self)

Definition at line 929 of file test_message_converter.py.

◆ test_dictionary_with_bool()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_bool (   self)

Definition at line 473 of file test_message_converter.py.

◆ test_dictionary_with_bool_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_bool_none (   self)

Definition at line 960 of file test_message_converter.py.

◆ test_dictionary_with_byte()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_byte (   self)

Definition at line 482 of file test_message_converter.py.

◆ test_dictionary_with_byte_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_byte_none (   self)

Definition at line 969 of file test_message_converter.py.

◆ test_dictionary_with_char()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_char (   self)

Definition at line 491 of file test_message_converter.py.

◆ test_dictionary_with_char_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_char_none (   self)

Definition at line 978 of file test_message_converter.py.

◆ test_dictionary_with_child_message()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_child_message (   self)

Definition at line 759 of file test_message_converter.py.

◆ test_dictionary_with_child_message_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_child_message_none (   self)

Definition at line 1132 of file test_message_converter.py.

◆ test_dictionary_with_duration()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_duration (   self)

Definition at line 500 of file test_message_converter.py.

◆ test_dictionary_with_duration_nested_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_duration_nested_none (   self)

Definition at line 996 of file test_message_converter.py.

◆ test_dictionary_with_duration_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_duration_none (   self)

Definition at line 987 of file test_message_converter.py.

◆ test_dictionary_with_empty()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_empty (   self)

Definition at line 510 of file test_message_converter.py.

◆ test_dictionary_with_empty_additional_args_forgiving()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_empty_additional_args_forgiving (   self)

Definition at line 527 of file test_message_converter.py.

◆ test_dictionary_with_empty_additional_args_strict_mode()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_empty_additional_args_strict_mode (   self)

Definition at line 519 of file test_message_converter.py.

◆ test_dictionary_with_empty_service()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_empty_service (   self)

Definition at line 799 of file test_message_converter.py.

◆ test_dictionary_with_float32()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_float32 (   self)

Definition at line 603 of file test_message_converter.py.

◆ test_dictionary_with_float32_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_float32_none (   self)

Definition at line 1005 of file test_message_converter.py.

◆ test_dictionary_with_float64()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_float64 (   self)

Definition at line 612 of file test_message_converter.py.

◆ test_dictionary_with_float64_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_float64_none (   self)

Definition at line 1014 of file test_message_converter.py.

◆ test_dictionary_with_header()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_header (   self)

Definition at line 621 of file test_message_converter.py.

◆ test_dictionary_with_header_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_header_none (   self)

Definition at line 1023 of file test_message_converter.py.

◆ test_dictionary_with_header_with_no_prefix()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_header_with_no_prefix (   self)

Definition at line 636 of file test_message_converter.py.

◆ test_dictionary_with_int16()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int16 (   self)

Definition at line 669 of file test_message_converter.py.

◆ test_dictionary_with_int16_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int16_none (   self)

Definition at line 1050 of file test_message_converter.py.

◆ test_dictionary_with_int32()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int32 (   self)

Definition at line 687 of file test_message_converter.py.

◆ test_dictionary_with_int32_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int32_none (   self)

Definition at line 1068 of file test_message_converter.py.

◆ test_dictionary_with_int64()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int64 (   self)

Definition at line 705 of file test_message_converter.py.

◆ test_dictionary_with_int64_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int64_none (   self)

Definition at line 1086 of file test_message_converter.py.

◆ test_dictionary_with_int8()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int8 (   self)

Definition at line 651 of file test_message_converter.py.

◆ test_dictionary_with_int8_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_int8_none (   self)

Definition at line 1032 of file test_message_converter.py.

◆ test_dictionary_with_invalid_kind()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_invalid_kind (   self)

Definition at line 867 of file test_message_converter.py.

◆ test_dictionary_with_invalid_message_fields()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_invalid_message_fields (   self)

Definition at line 794 of file test_message_converter.py.

◆ test_dictionary_with_missing_field_checked()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_missing_field_checked (   self)

Definition at line 572 of file test_message_converter.py.

◆ test_dictionary_with_missing_field_unchecked()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_missing_field_unchecked (   self)

Definition at line 563 of file test_message_converter.py.

◆ test_dictionary_with_nested_additional_args_forgiving()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_nested_additional_args_forgiving (   self)

Definition at line 550 of file test_message_converter.py.

◆ test_dictionary_with_nested_additional_args_strict_mode()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_nested_additional_args_strict_mode (   self)

Definition at line 536 of file test_message_converter.py.

◆ test_dictionary_with_nested_missing_field_checked()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_nested_missing_field_checked (   self)

Definition at line 589 of file test_message_converter.py.

◆ test_dictionary_with_nested_missing_field_unchecked()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_nested_missing_field_unchecked (   self)

Definition at line 578 of file test_message_converter.py.

◆ test_dictionary_with_nested_service()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_nested_service (   self)

Definition at line 813 of file test_message_converter.py.

◆ test_dictionary_with_numpy_conversions()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_numpy_conversions (   self)

Definition at line 872 of file test_message_converter.py.

◆ test_dictionary_with_setbool_service()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_setbool_service (   self)

Definition at line 839 of file test_message_converter.py.

◆ test_dictionary_with_string()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_string (   self)

Definition at line 723 of file test_message_converter.py.

◆ test_dictionary_with_string_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_string_none (   self)

Definition at line 1104 of file test_message_converter.py.

◆ test_dictionary_with_time()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_time (   self)

Definition at line 742 of file test_message_converter.py.

◆ test_dictionary_with_time_nested_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_time_nested_none (   self)

Definition at line 1122 of file test_message_converter.py.

◆ test_dictionary_with_time_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_time_none (   self)

Definition at line 1113 of file test_message_converter.py.

◆ test_dictionary_with_time_now()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_time_now (   self)

Definition at line 753 of file test_message_converter.py.

◆ test_dictionary_with_trigger_service()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_trigger_service (   self)

Definition at line 853 of file test_message_converter.py.

◆ test_dictionary_with_uint16()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint16 (   self)

Definition at line 678 of file test_message_converter.py.

◆ test_dictionary_with_uint16_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint16_none (   self)

Definition at line 1059 of file test_message_converter.py.

◆ test_dictionary_with_uint32()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint32 (   self)

Definition at line 696 of file test_message_converter.py.

◆ test_dictionary_with_uint32_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint32_none (   self)

Definition at line 1077 of file test_message_converter.py.

◆ test_dictionary_with_uint64()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint64 (   self)

Definition at line 714 of file test_message_converter.py.

◆ test_dictionary_with_uint64_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint64_none (   self)

Definition at line 1095 of file test_message_converter.py.

◆ test_dictionary_with_uint8()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8 (   self)

Definition at line 660 of file test_message_converter.py.

◆ test_dictionary_with_uint8_array_bytes()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_array_bytes (   self)
rospy treats uint8[] data as `bytes`, which is the Python representation for byte data. In Python 2, this is
the same as `str`. The `bytes` value must be base64-encoded.

Definition at line 369 of file test_message_converter.py.

◆ test_dictionary_with_uint8_array_bytes_unencoded()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_array_bytes_unencoded (   self)
If the value of a uint8[] field has type `bytes`, rospy_message_converter expects that data to be
base64-encoded and runs b64decode on it. This test documents what happens if the value is
not base64-encoded.

Definition at line 408 of file test_message_converter.py.

◆ test_dictionary_with_uint8_array_list()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_array_list (   self)
Even though rospy treats uint8[] data as `bytes`, rospy_message_converter also handles lists of int. In that
case, the input data must *not* be base64-encoded.

Definition at line 385 of file test_message_converter.py.

◆ test_dictionary_with_uint8_array_list_invalid()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_array_list_invalid (   self)

Definition at line 400 of file test_message_converter.py.

◆ test_dictionary_with_uint8_array_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_array_none (   self)

Definition at line 938 of file test_message_converter.py.

◆ test_dictionary_with_uint8_none()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_uint8_none (   self)

Definition at line 1041 of file test_message_converter.py.

◆ test_dictionary_with_unicode()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_unicode (   self)

Definition at line 732 of file test_message_converter.py.

◆ test_dictionary_with_wrong_type()

def test.test_message_converter.TestMessageConverter.test_dictionary_with_wrong_type (   self)

Definition at line 597 of file test_message_converter.py.

◆ test_ros_message_with_3uint8_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_3uint8_array (   self)

Definition at line 167 of file test_message_converter.py.

◆ test_ros_message_with_3uint8_array_binary_array_as_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_3uint8_array_binary_array_as_array (   self)

Definition at line 178 of file test_message_converter.py.

◆ test_ros_message_with_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_array (   self)

Definition at line 50 of file test_message_converter.py.

◆ test_ros_message_with_bool()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_bool (   self)

Definition at line 59 of file test_message_converter.py.

◆ test_ros_message_with_byte()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_byte (   self)

Definition at line 68 of file test_message_converter.py.

◆ test_ros_message_with_char()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_char (   self)

Definition at line 77 of file test_message_converter.py.

◆ test_ros_message_with_child_message()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_child_message (   self)

Definition at line 292 of file test_message_converter.py.

◆ test_ros_message_with_duration()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_duration (   self)

Definition at line 86 of file test_message_converter.py.

◆ test_ros_message_with_empty()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_empty (   self)

Definition at line 96 of file test_message_converter.py.

◆ test_ros_message_with_empty_service()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_empty_service (   self)

Definition at line 323 of file test_message_converter.py.

◆ test_ros_message_with_float32()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_float32 (   self)

Definition at line 105 of file test_message_converter.py.

◆ test_ros_message_with_float64()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_float64 (   self)

Definition at line 114 of file test_message_converter.py.

◆ test_ros_message_with_header()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_header (   self)

Definition at line 123 of file test_message_converter.py.

◆ test_ros_message_with_int16()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_int16 (   self)

Definition at line 206 of file test_message_converter.py.

◆ test_ros_message_with_int32()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_int32 (   self)

Definition at line 224 of file test_message_converter.py.

◆ test_ros_message_with_int64()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_int64 (   self)

Definition at line 242 of file test_message_converter.py.

◆ test_ros_message_with_int8()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_int8 (   self)

Definition at line 138 of file test_message_converter.py.

◆ test_ros_message_with_nested_service()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_nested_service (   self)

Definition at line 337 of file test_message_converter.py.

◆ test_ros_message_with_nested_uint8_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_nested_uint8_array (   self)

Definition at line 196 of file test_message_converter.py.

◆ test_ros_message_with_nested_uint8_array_binary_array_as_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_nested_uint8_array_binary_array_as_array (   self)

Definition at line 187 of file test_message_converter.py.

◆ test_ros_message_with_string()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_string (   self)

Definition at line 260 of file test_message_converter.py.

◆ test_ros_message_with_time()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_time (   self)

Definition at line 281 of file test_message_converter.py.

◆ test_ros_message_with_uint16()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_uint16 (   self)

Definition at line 215 of file test_message_converter.py.

◆ test_ros_message_with_uint32()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_uint32 (   self)

Definition at line 233 of file test_message_converter.py.

◆ test_ros_message_with_uint64()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_uint64 (   self)

Definition at line 251 of file test_message_converter.py.

◆ test_ros_message_with_uint8()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_uint8 (   self)

Definition at line 147 of file test_message_converter.py.

◆ test_ros_message_with_uint8_array()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_uint8_array (   self)

Definition at line 156 of file test_message_converter.py.

◆ test_ros_message_with_unicode()

def test.test_message_converter.TestMessageConverter.test_ros_message_with_unicode (   self)
Test that strings are encoded as utf8

Definition at line 269 of file test_message_converter.py.


The documentation for this class was generated from the following file:


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