Classes | |
class | LandmarkIdSampler |
class | LandmarkSampler |
class | LandmarkSamplerOptions |
class | SampledLandmarkPublisher |
Variables | |
string | action = "store_true" |
float | default = 0.1 |
string | DESC |
string | help = "Baseline period for publishing empty landmark lists." |
tuple | landmark_sampler_options = LandmarkSamplerOptions(**args.__dict__) |
string | nargs = '+' |
tuple | parser |
tuple | sampler |
string | TOPIC = "landmark" |
type = float, |
string publish_fake_random_landmarks::action = "store_true" |
Definition at line 181 of file publish_fake_random_landmarks.py.
int publish_fake_random_landmarks::default = 0.1 |
Definition at line 152 of file publish_fake_random_landmarks.py.
00001 ''' 00002 Samples a number of random landmarks at a specified rate. 00003 Can be used to test the timing of landmark input or the effect of erroneous 00004 landmarks with duplicate IDs (if --allow_duplicate_ids is set). 00005 00006 For example: 00007 00008 ./publish_fake_random_landmarks.py \\ 00009 --publish_period 0.1 \\ 00010 --id_vocabulary A B C \\ 00011 --id_length 5 \\ 00012 --sample_period 1.0 00013 00014 will publish empty landmark lists at 10Hz and random landmarks every second. 00015 IDs are also sampled, using the cartesian product of the provided "vocabulary". 00016 In the above example, a sampled ID could be e.g. "AACBC" (length=5). 00017 '''
Definition at line 26 of file publish_fake_random_landmarks.py.
string publish_fake_random_landmarks::help = "Baseline period for publishing empty landmark lists." |
Definition at line 153 of file publish_fake_random_landmarks.py.
tuple publish_fake_random_landmarks::landmark_sampler_options = LandmarkSamplerOptions(**args.__dict__) |
Definition at line 187 of file publish_fake_random_landmarks.py.
string publish_fake_random_landmarks::nargs = '+' |
Definition at line 171 of file publish_fake_random_landmarks.py.
00001 argparse.ArgumentParser( 00002 description=DESC, formatter_class=argparse.RawTextHelpFormatter)
Definition at line 145 of file publish_fake_random_landmarks.py.
00001 SampledLandmarkPublisher(args.publish_period, args.sample_period, 00002 landmark_sampler_options)
Definition at line 188 of file publish_fake_random_landmarks.py.
string publish_fake_random_landmarks::TOPIC = "landmark" |
Definition at line 44 of file publish_fake_random_landmarks.py.
Definition at line 151 of file publish_fake_random_landmarks.py.