Functions | |
| def | callback |
Variables | |
| int | breaker_number = 1 |
| list | command = command_list[ try_count % len(command_list) ] |
| list | command_list = ["start", "stop"] |
| tuple | control = rospy.ServiceProxy('power_board/control', PowerBoardCommand) |
| tuple | current_state = PowerBoardState() |
| tuple | delay = rospy.Duration(3.0) |
| int | fail_count = 0 |
| int | flags = 0 |
| int | last_fail_count = 0 |
| tuple | line = sys.stdin.readline() |
| int | other_breaker1 = 0 |
| int | other_breaker2 = 2 |
| int | pause_on_fail = 0 |
| tuple | resp1 = control(serial, breaker_number, command, flags) |
| int | serial = 0 |
| tuple | state = rospy.Subscriber("/power_board/state", PowerBoardState, callback) |
| int | try_count = 1000 |
| def test_power.callback | ( | data | ) |
Definition at line 14 of file test_power.py.
| int test_power::breaker_number = 1 |
Definition at line 31 of file test_power.py.
| list test_power::command = command_list[ try_count % len(command_list) ] |
Definition at line 44 of file test_power.py.
| list test_power::command_list = ["start", "stop"] |
Definition at line 34 of file test_power.py.
| tuple test_power::control = rospy.ServiceProxy('power_board/control', PowerBoardCommand) |
Definition at line 27 of file test_power.py.
| tuple test_power::current_state = PowerBoardState() |
Definition at line 12 of file test_power.py.
| tuple test_power::delay = rospy.Duration(3.0) |
Definition at line 38 of file test_power.py.
| int test_power::fail_count = 0 |
Definition at line 39 of file test_power.py.
| int test_power::flags = 0 |
Definition at line 36 of file test_power.py.
Definition at line 40 of file test_power.py.
| tuple test_power::line = sys.stdin.readline() |
Definition at line 77 of file test_power.py.
| int test_power::other_breaker1 = 0 |
Definition at line 32 of file test_power.py.
| int test_power::other_breaker2 = 2 |
Definition at line 33 of file test_power.py.
| int test_power::pause_on_fail = 0 |
Definition at line 30 of file test_power.py.
| tuple test_power::resp1 = control(serial, breaker_number, command, flags) |
Definition at line 48 of file test_power.py.
| int test_power::serial = 0 |
Definition at line 35 of file test_power.py.
| tuple test_power::state = rospy.Subscriber("/power_board/state", PowerBoardState, callback) |
Definition at line 28 of file test_power.py.
| int test_power::try_count = 1000 |
Definition at line 37 of file test_power.py.