Functions | Variables
test_subscription Namespace Reference

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
 

Function Documentation

◆ callback()

def test_subscription.callback (   data,
  args 
)

Definition at line 14 of file test_subscription.py.

Variable Documentation

◆ attempt

int test_subscription.attempt = 0

Definition at line 19 of file test_subscription.py.

◆ command

string test_subscription.command = "rosrun openni_camera openni_node_unstable depth/image_raw:=%s" % topic

Definition at line 31 of file test_subscription.py.

◆ consecutive_failures

int test_subscription.consecutive_failures = 0

Definition at line 22 of file test_subscription.py.

◆ core_name

string test_subscription.core_name = "core_%d" % attempt

Definition at line 78 of file test_subscription.py.

◆ duration

test_subscription.duration = time.time() - start

Definition at line 39 of file test_subscription.py.

◆ end

float test_subscription.end = start + 10.0

Definition at line 36 of file test_subscription.py.

◆ failures

int test_subscription.failures = 0

Definition at line 21 of file test_subscription.py.

◆ p

test_subscription.p = subprocess.Popen(shlex.split(command), stdout=tmp, stderr=subprocess.STDOUT)

Definition at line 34 of file test_subscription.py.

◆ received

list test_subscription.received = [False]

Definition at line 26 of file test_subscription.py.

◆ start

test_subscription.start = time.time()

Definition at line 35 of file test_subscription.py.

◆ status

string test_subscription.status = "success"

Definition at line 66 of file test_subscription.py.

◆ sub

test_subscription.sub = rospy.Subscriber(topic, Image, callback, callback_args=received)

Definition at line 29 of file test_subscription.py.

◆ successes

int test_subscription.successes = 0

Definition at line 20 of file test_subscription.py.

◆ tmp

test_subscription.tmp = tempfile.TemporaryFile(mode='r+')

Definition at line 32 of file test_subscription.py.

◆ topic

string test_subscription.topic = "image_%d" % attempt

Definition at line 27 of file test_subscription.py.



openni_camera
Author(s): Patrick Mihelich, Suat Gedikli, Radu Bogdan Rusu
autogenerated on Thu Apr 21 2022 02:37:23