Functions | |
| def | compare (ref_msg, uut_msg) |
| def | get_topic_list (bag_name) |
| def | is_close (a, b, rel_tol=1e-9, abs_tol=0.0) |
| def | is_collection (item) |
| def | is_float_type (item) |
| def | is_primitive (item) |
| def | item_gen (item) |
| def | make_msg_gen (bag_name, topic) |
| def | verify_bag_equivalency (ref_bag, uut_bag) |
Variables | |
| tuple | collection_types = (list, tuple) |
| tuple | float_type = (float) |
| def | mgen = make_msg_gen(sys.argv[1], sys.argv[2]) |
| tuple | primitive_types = (int, float, bool, str) |
| def oem7_decoder_test.compare | ( | ref_msg, | |
| uut_msg | |||
| ) |
Compares contents of two bags; fails if the contents are not identical (except for ROS seqno, timestamp).
Definition at line 79 of file oem7_decoder_test.py.
| def oem7_decoder_test.get_topic_list | ( | bag_name | ) |
Return a list of topics stored in this bag
Definition at line 35 of file oem7_decoder_test.py.
| def oem7_decoder_test.is_close | ( | a, | |
| b, | |||
rel_tol = 1e-9, |
|||
abs_tol = 0.0 |
|||
| ) |
Checks equivalency between two float numbers - Following rules of Python PEP485 - https://peps.python.org/pep-0485/#proposed-implementation
Definition at line 55 of file oem7_decoder_test.py.
| def oem7_decoder_test.is_collection | ( | item | ) |
Definition at line 52 of file oem7_decoder_test.py.
| def oem7_decoder_test.is_float_type | ( | item | ) |
Definition at line 53 of file oem7_decoder_test.py.
| def oem7_decoder_test.is_primitive | ( | item | ) |
Definition at line 51 of file oem7_decoder_test.py.
| def oem7_decoder_test.item_gen | ( | item | ) |
Generates values of various types (int, bool, str, float) from a nested bag object
Definition at line 59 of file oem7_decoder_test.py.
| def oem7_decoder_test.make_msg_gen | ( | bag_name, | |
| topic | |||
| ) |
Generates a sequence of messages in the topic from the bag
Definition at line 40 of file oem7_decoder_test.py.
| def oem7_decoder_test.verify_bag_equivalency | ( | ref_bag, | |
| uut_bag | |||
| ) |
Verifies that two bags contain semantically identical sequence of messages.
Definition at line 108 of file oem7_decoder_test.py.
| tuple oem7_decoder_test.collection_types = (list, tuple) |
Definition at line 49 of file oem7_decoder_test.py.
| tuple oem7_decoder_test.float_type = (float) |
Definition at line 50 of file oem7_decoder_test.py.
| def oem7_decoder_test.mgen = make_msg_gen(sys.argv[1], sys.argv[2]) |
Definition at line 147 of file oem7_decoder_test.py.
| tuple oem7_decoder_test.primitive_types = (int, float, bool, str) |
Definition at line 48 of file oem7_decoder_test.py.