Functions | |
def | callback (data, args) |
Variables | |
int | attempt = 0 |
string | command = "roslaunch openni_launch openni.launch depth_registered:=%s" % ns |
int | consecutive_failures = 0 |
string | core_name = "core_%d" % attempt |
duration = time.time() - start | |
float | end = start + 15.0 |
int | failures = 0 |
string | ns = "depth_reg_%d" % attempt |
p = subprocess.Popen(shlex.split(command), stdout=tmp, stderr=subprocess.STDOUT) | |
list | received = [False] |
start = time.time() | |
string | status = "success" |
sub = rospy.Subscriber(topic, PointCloud2, callback, callback_args=received) | |
int | successes = 0 |
tmp = open(os.devnull, 'w') | |
string | topic = "/camera/%s/points" % ns |
def test_launch.callback | ( | data, | |
args | |||
) |
Definition at line 14 of file test_launch.py.
int test_launch.attempt = 0 |
Definition at line 19 of file test_launch.py.
string test_launch.command = "roslaunch openni_launch openni.launch depth_registered:=%s" % ns |
Definition at line 32 of file test_launch.py.
int test_launch.consecutive_failures = 0 |
Definition at line 22 of file test_launch.py.
string test_launch.core_name = "core_%d" % attempt |
Definition at line 64 of file test_launch.py.
test_launch.duration = time.time() - start |
Definition at line 40 of file test_launch.py.
float test_launch.end = start + 15.0 |
Definition at line 37 of file test_launch.py.
int test_launch.failures = 0 |
Definition at line 21 of file test_launch.py.
string test_launch.ns = "depth_reg_%d" % attempt |
Definition at line 27 of file test_launch.py.
Definition at line 35 of file test_launch.py.
list test_launch.received = [False] |
Definition at line 26 of file test_launch.py.
test_launch.start = time.time() |
Definition at line 36 of file test_launch.py.
string test_launch.status = "success" |
Definition at line 51 of file test_launch.py.
Definition at line 30 of file test_launch.py.
int test_launch.successes = 0 |
Definition at line 20 of file test_launch.py.
test_launch.tmp = open(os.devnull, 'w') |
Definition at line 34 of file test_launch.py.
string test_launch.topic = "/camera/%s/points" % ns |
Definition at line 28 of file test_launch.py.