Classes | Variables
console_generator Namespace Reference

Classes

class  LogT
 

Variables

list log_templates
 
 msg = random.choice(log_templates).generate()
 
 rosout = rospy.Publisher('/rosout', Log, queue_size=0)
 

Detailed Description

This is a test script to generate console messages for testing /
demonstration.

Variable Documentation

list console_generator.log_templates
Initial value:
1 = [
2  LogT('typewriter/src/linebreak.cpp', 'break_lines', 50,
3  '/typewriter/output', Log.DEBUG, "Breaking\nLines."),
4  LogT('taco_system/src/taste_evaluator.cpp', 'calc_spicy', 225,
5  '/taste/taco_manager', Log.WARN, lambda : ('sample exceeds max capsaicin levels (%.2f)' % random.uniform(12, 19))),
6  LogT('squirrel_observer/src/distraction.cpp', 'handle_distraction', 891,
7  '/vision/squirrel', Log.INFO, 'squirrel detected! sending voice notification'),
8  LogT('squirrel_observer/src/classification.cpp', 'handle_distraction', 891,
9  '/vision/squirrel', Log.WARN, 'covariance too high, classifying as squirrel to be on safe side'),
10  LogT('order_processing/src/obedience.cpp', 'process_orders', 12,
11  '/behavior/mission', Log.ERROR, 'implement me!'),
12  LogT('joint_control/src/joint_trajectory.cpp', 'iteration', 348,
13  '/mobility/knee_controller', Log.WARN, 'low stability margin detected'),
14  LogT('laser/src/safety_lock.cpp', 'activate_lock', 921,
15  '/weapons/laser_eyes', Log.FATAL, 'segmentation fault')
16  ]

Definition at line 36 of file console_generator.py.

console_generator.msg = random.choice(log_templates).generate()

Definition at line 58 of file console_generator.py.

console_generator.rosout = rospy.Publisher('/rosout', Log, queue_size=0)

Definition at line 54 of file console_generator.py.



swri_console
Author(s):
autogenerated on Fri Apr 3 2020 03:20:03