Functions | Variables
test_power Namespace Reference

Functions

def callback (data)
 

Variables

int breaker_number = 1
 
list command = command_list[ try_count % len(command_list) ]
 
list command_list = ["start", "stop"]
 
 control = rospy.ServiceProxy('power_board/control', PowerBoardCommand)
 
 current_state = PowerBoardState()
 
 delay = rospy.Duration(3.0)
 
int fail_count = 0
 
int flags = 0
 
int last_fail_count = 0
 
 line = sys.stdin.readline()
 
int other_breaker1 = 0
 
int other_breaker2 = 2
 
int pause_on_fail = 0
 
 resp1 = control(serial, breaker_number, command, flags)
 
int serial = 0
 
 state = rospy.Subscriber("/power_board/state", PowerBoardState, callback)
 
int try_count = 1000
 

Function Documentation

◆ callback()

def test_power.callback (   data)

Definition at line 14 of file test_power.py.

Variable Documentation

◆ breaker_number

int test_power.breaker_number = 1

Definition at line 31 of file test_power.py.

◆ command

list test_power.command = command_list[ try_count % len(command_list) ]

Definition at line 44 of file test_power.py.

◆ command_list

list test_power.command_list = ["start", "stop"]

Definition at line 34 of file test_power.py.

◆ control

test_power.control = rospy.ServiceProxy('power_board/control', PowerBoardCommand)

Definition at line 27 of file test_power.py.

◆ current_state

test_power.current_state = PowerBoardState()

Definition at line 12 of file test_power.py.

◆ delay

test_power.delay = rospy.Duration(3.0)

Definition at line 38 of file test_power.py.

◆ fail_count

int test_power.fail_count = 0

Definition at line 39 of file test_power.py.

◆ flags

int test_power.flags = 0

Definition at line 36 of file test_power.py.

◆ last_fail_count

int test_power.last_fail_count = 0

Definition at line 40 of file test_power.py.

◆ line

test_power.line = sys.stdin.readline()

Definition at line 77 of file test_power.py.

◆ other_breaker1

int test_power.other_breaker1 = 0

Definition at line 32 of file test_power.py.

◆ other_breaker2

int test_power.other_breaker2 = 2

Definition at line 33 of file test_power.py.

◆ pause_on_fail

int test_power.pause_on_fail = 0

Definition at line 30 of file test_power.py.

◆ resp1

test_power.resp1 = control(serial, breaker_number, command, flags)

Definition at line 48 of file test_power.py.

◆ serial

int test_power.serial = 0

Definition at line 35 of file test_power.py.

◆ state

test_power.state = rospy.Subscriber("/power_board/state", PowerBoardState, callback)

Definition at line 28 of file test_power.py.

◆ try_count

int test_power.try_count = 1000

Definition at line 37 of file test_power.py.



pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Tue Mar 7 2023 03:19:35