Functions | |
def | callback (data, args) |
Variables | |
int | attempt = 0 |
string | command = "rosrun openni_camera openni_node_unstable depth/image_raw:=%s" % topic |
int | consecutive_failures = 0 |
string | core_name = "core_%d" % attempt |
duration = time.time() - start | |
float | end = start + 10.0 |
int | failures = 0 |
p = subprocess.Popen(shlex.split(command), stdout=tmp, stderr=subprocess.STDOUT) | |
list | received = [False] |
start = time.time() | |
string | status = "success" |
sub = rospy.Subscriber(topic, Image, callback, callback_args=received) | |
int | successes = 0 |
tmp = tempfile.TemporaryFile(mode='r+') | |
string | topic = "image_%d" % attempt |
def test_subscription.callback | ( | data, | |
args | |||
) |
Definition at line 14 of file test_subscription.py.
int test_subscription.attempt = 0 |
Definition at line 19 of file test_subscription.py.
string test_subscription.command = "rosrun openni_camera openni_node_unstable depth/image_raw:=%s" % topic |
Definition at line 31 of file test_subscription.py.
int test_subscription.consecutive_failures = 0 |
Definition at line 22 of file test_subscription.py.
string test_subscription.core_name = "core_%d" % attempt |
Definition at line 78 of file test_subscription.py.
test_subscription.duration = time.time() - start |
Definition at line 39 of file test_subscription.py.
float test_subscription.end = start + 10.0 |
Definition at line 36 of file test_subscription.py.
int test_subscription.failures = 0 |
Definition at line 21 of file test_subscription.py.
Definition at line 34 of file test_subscription.py.
list test_subscription.received = [False] |
Definition at line 26 of file test_subscription.py.
test_subscription.start = time.time() |
Definition at line 35 of file test_subscription.py.
string test_subscription.status = "success" |
Definition at line 66 of file test_subscription.py.
Definition at line 29 of file test_subscription.py.
int test_subscription.successes = 0 |
Definition at line 20 of file test_subscription.py.
test_subscription.tmp = tempfile.TemporaryFile(mode='r+') |
Definition at line 32 of file test_subscription.py.
string test_subscription.topic = "image_%d" % attempt |
Definition at line 27 of file test_subscription.py.