|
| | canonical (typename, unbounded=False) |
| |
| | create_publisher (topic, cls_or_typename, queue_size) |
| |
| | create_subscriber (topic, cls_or_typename, handler, queue_size) |
| |
| | deserialize_message (raw, cls_or_typename) |
| |
| | format_message_value (msg, name, value) |
| |
| | get_message_class (typename) |
| |
| | get_message_definition (msg_or_type) |
| |
| | get_message_definition_idl (typename) |
| |
| | 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_full_typename (typename) |
| |
| | make_subscriber_qos (topic, typename, queue_size=10) |
| |
| | make_time (secs=0, nsecs=0) |
| |
| | qos_to_dict (qos) |
| |
| | scalar (typename) |
| |
| | serialize_message (msg) |
| |
| | set_message_value (obj, name, value) |
| |
| | shutdown_node () |
| |
| | time_message (val, to_message=True, clock_type=None) |
| |
| | to_duration (val) |
| |
| | to_nsec (val) |
| |
| | to_sec (val) |
| |
| | to_sec_nsec (val) |
| |
| | to_time (val) |
| |
| | validate (live=False) |
| |
|
| | Bag = ROS2Bag |
| |
| tuple | BAG_EXTENSIONS = (".db3", ) |
| | Bagfile extensions to seek.
|
| |
| | context = None |
| | rclpy.context.Context instance
|
| |
| dict | DDS_TYPES |
| | Data Distribution Service types to ROS builtins.
|
| |
| | executor = None |
| | rclpy.executors.Executor instance
|
| |
| | node = None |
| | rclpy.node.Node instance
|
| |
| dict | ROS_ALIAS_TYPES = {"byte": "uint8", "char": "int8"} |
| | Mapping between type aliases and real types, like {"byte": "uint8"}.
|
| |
| dict | ROS_TIME_CLASSES |
| | ROS2 time/duration types and message types mapped to type names.
|
| |
| dict | ROS_TIME_MESSAGES |
| | ROS2 time/duration types mapped to message types.
|
| |
| list | ROS_TIME_TYPES = ["builtin_interfaces/Time", "builtin_interfaces/Duration"] |
| | ROS2 time/duration message types.
|
| |
| tuple | SKIP_EXTENSIONS = () |
| | Bagfile extensions to skip.
|
| |
ROS2 interface.
------------------------------------------------------------------------------
This file is part of grepros - grep for ROS bag files and live topics.
Released under the BSD License.
@author Erki Suurjaak
@created 02.11.2021
@modified 20.11.2024
------------------------------------------------------------------------------
| canonical |
( |
|
typename, |
|
|
|
unbounded = False |
|
) |
| |
Returns "pkg/Type" for "pkg/msg/Type", standardizes various ROS2 formats.
Converts DDS types like "octet" to "byte", and "sequence<uint8, 100>" to "uint8[100]".
@param unbounded drop constraints like array and string bounds,
e.g. returning "uint8[]" for "uint8[10]" and "string" for "string<=8"
Definition at line 588 of file ros2.py.