Functions | |
def | get_camera_params_and_values |
def | is_log_contains_keyword |
def | parse_camera_type |
def | shell_cmd_timeout |
Variables | |
tuple | BASE_LOG_DIR = (os.path.expanduser('~/.ros/log/')) |
tuple | LOG_FOLDER = os.listdir(BASE_LOG_DIR) |
list | LOGFILE = BASE_LOG_DIR+LOG_FOLDER[-1] |
parse args to get all the camera parameters and paired values the args transferred from .test file, should remove 4 elements in args: start 1 - script name; last 3 - '--gtest_output', '--name', '_log'; @fn parse_camera_type @param args: all the arguments @return param_dict: dictionary of camera params
Definition at line 38 of file rs_general.py.
def rs_general.rs_general.is_log_contains_keyword | ( | log_file, | |
keyword | |||
) |
check if the keyword contains in log
Definition at line 60 of file rs_general.py.
def rs_general.rs_general.parse_camera_type | ( | args | ) |
parse args to get camera type @fn parse_camera_type @param args: all the arguments @return camera_type
Definition at line 23 of file rs_general.py.
def rs_general.rs_general.shell_cmd_timeout | ( | cmd, | |
timeout = 0 |
|||
) |
Execute shell command till timeout
Definition at line 75 of file rs_general.py.
tuple rs_general::rs_general::BASE_LOG_DIR = (os.path.expanduser('~/.ros/log/')) |
Definition at line 16 of file rs_general.py.
tuple rs_general::rs_general::LOG_FOLDER = os.listdir(BASE_LOG_DIR) |
Definition at line 17 of file rs_general.py.
Definition at line 20 of file rs_general.py.