grepros 1.2.2
grep for ROS bag files and live topics
Loading...
Searching...
No Matches
generate_msgs.py File Reference

Go to the source code of this file.

Classes

class  generator
 Generates random ROS values and message attributes. More...
 
class  rosapi
 Generic interface for accessing ROS1 / ROS2 API. More...
 

Namespaces

namespace  generate_msgs
 

Functions

 make_argparser ()
 Returns a populated ArgumentParser instance.
 
 plural (word, items)
 Returns "N words" or "1 word".
 
 process_args (args)
 Converts or combines arguments where necessary, returns args.
 
 run (args)
 Generates messages until Ctrl-C or end condition reached.
 
 take_sample (population, k)
 Returns a list of k randomly chosen elements from population.
 
 wildcard_to_regex (text, end=True)
 Returns plain wildcard like "foo*bar" as re.Pattern("foo.*bar", re.I).
 

Variables

dict ARGUMENTS
 Configuration for argparse, as {description, epilog, args: [..], groups: {name: [..]}}.
 
str NAME = "generate_msgs"
 Name used for node.
 
 rospy = None
 
 runargs = process_args(make_argparser().parse_args())