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

Go to the source code of this file.

Classes

class  ROS1Bag
 

Namespaces

namespace  grepros
 
namespace  grepros.ros1
 

Functions

 canonical (typename, unbounded=False)
 
 create_publisher (topic, cls_or_typename, queue_size)
 
 create_subscriber (topic, typename, handler, queue_size)
 
 deserialize_message (raw, cls_or_typename)
 
 format_message_value (msg, name, value)
 
 generate_message_classes (typename, typedef)
 
 get_message_class (typename)
 
 get_message_definition (msg_or_type)
 
 get_message_fields (val)
 
 get_message_type (msg_or_cls)
 
 get_message_type_hash (msg_or_type)
 
 get_message_value (msg, name, typename=None, default=Ellipsis)
 
 get_rostime (fallback=False)
 
 get_topic_types ()
 
 init_node (name)
 
 is_ros_message (val, ignore_time=False)
 
 is_ros_time (val)
 
 make_duration (secs=0, nsecs=0)
 
 make_time (secs=0, nsecs=0)
 
 scalar (typename)
 
 serialize_message (msg)
 
 set_message_value (obj, name, value)
 
 shutdown_node ()
 
 to_duration (val)
 
 to_nsec (val)
 
 to_sec (val)
 
 to_sec_nsec (val)
 
 to_time (val)
 
 validate (live=False)
 

Variables

 Bag = ROS1Bag
 
tuple BAG_EXTENSIONS = (".bag", ".bag.active")
 Bagfile extensions to seek.
 
 genpy_mtx = threading.RLock()
 Mutex for ensuring exclusive access to genpy generator (genpy.dynamic is not thread-safe)
 
 master = None
 rospy.MasterProxy instance
 
dict ROS_ALIAS_TYPES = {"byte": "int8", "char": "uint8"}
 Mapping between type aliases and real types, like {"byte": "int8"}.
 
dict ROS_TIME_CLASSES = {rospy.Time: "time", rospy.Duration: "duration"}
 ROS1 time/duration types mapped to type names.
 
list ROS_TIME_TYPES = ["time", "duration"]
 ROS1 time/duration types.
 
tuple SKIP_EXTENSIONS = (".bag.orig.active", )
 Bagfile extensions to skip.
 
float SLEEP_INTERVAL = 0.5
 Seconds between checking whether ROS master is available.
 
dict TYPECLASSES = {}
 {(typename, typehash): message type class}