Public Member Functions | |
def | setUp (self) |
def | test_grepros (self) |
![]() | |
def | __init__ (self, *args, **kwargs) |
def | create_publisher (self, topic, cls) |
def | init_node (self) |
def | run_command (self, communicate=True) |
def | run_rostest (cls) |
def | shutdown_node (self) |
def | spin_once (self, timeout) |
def | subTest (self, msg=None, **params) |
def | tearDown (self) |
def | verify_bags (self) |
def | verify_topics (self, topics, messages=None) |
Static Public Attributes | |
NAME = os.path.splitext(os.path.basename(__file__))[0] | |
Test name used in flow logging. More... | |
string | OUTPUT_LABEL = "console" |
Name used in flow logging. More... | |
![]() | |
string | BAG_SUFFIX = "1" else ".db3" |
ROS bagfile extension. More... | |
list | CMD_BASE = ["grepros"] + SEARCH_WORDS + \ |
Base command for running grepros. More... | |
DATA_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "data")) | |
Test bags directory. More... | |
list | EXPECTED_TOPIC_BASES = ["/match/this/intarray", "/match/this/header"] |
Topics expected in output, bag name appended. More... | |
list | EXPECTED_WORDS = ["match_this"] |
Words expected in matched messages, bag name appended. More... | |
string | INPUT_LABEL = "ROS bags" |
Name used in flow logging. More... | |
string | NAME = "" |
Test name used in flow logging. More... | |
string | OUTPUT_LABEL = "" |
Name used in flow logging. More... | |
OUTPUT_SUFFIX = None | |
Suffix for write output file, if any. More... | |
list | SEARCH_WORDS = ["this"] |
Words searched in bag. More... | |
list | SKIPPED_TOPIC_BASES = ["/not/this/intarray", "/match/this/not"] |
Topics not expected in output, bag name appended. More... | |
list | SKIPPED_WORDS = ["not_this"] |
Words not expected in matched messages, bag name appended. More... | |
Private Attributes | |
_cmd | |
Additional Inherited Members | |
![]() | |
maxDiff | |
Tests grepping from input bags and printing matches to console.
Definition at line 25 of file test_bag_to_console.py.
def test.test_bag_to_console.TestBagInputConsoleOutput.setUp | ( | self | ) |
Collects bags in data directory, assembles command.
Reimplemented from test.testbase.TestBase.
Definition at line 34 of file test_bag_to_console.py.
def test.test_bag_to_console.TestBagInputConsoleOutput.test_grepros | ( | self | ) |
Runs grepros on bags in data directory, verifies console output.
Definition at line 39 of file test_bag_to_console.py.
|
private |
Definition at line 37 of file test_bag_to_console.py.
|
static |
Test name used in flow logging.
Definition at line 29 of file test_bag_to_console.py.
|
static |
Name used in flow logging.
Definition at line 32 of file test_bag_to_console.py.