Functions | |
def | get_camera_params_and_values (args) |
def | is_log_contains_keyword (log_file, keyword) |
def | parse_camera_type (args) |
def | shell_cmd_timeout (cmd, timeout=0) |
Variables | |
tuple | BASE_LOG_DIR = (os.path.expanduser('~/.ros/log/')) |
key | |
LOG_FOLDER = os.listdir(BASE_LOG_DIR) | |
string | LOGFILE = BASE_LOG_DIR+LOG_FOLDER[-1]+'/rosout.log' |
@file rs_general.py
def rs_general.rs_general.get_camera_params_and_values | ( | args | ) |
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.
rs_general.rs_general.key |
Definition at line 18 of file rs_general.py.
rs_general.rs_general.LOG_FOLDER = os.listdir(BASE_LOG_DIR) |
Definition at line 17 of file rs_general.py.
string rs_general.rs_general.LOGFILE = BASE_LOG_DIR+LOG_FOLDER[-1]+'/rosout.log' |
Definition at line 20 of file rs_general.py.