From 097384066e5a5e626c683e7f8070fd98c2b887dc Mon Sep 17 00:00:00 2001 From: Barry Xu Date: Thu, 14 Dec 2023 13:24:07 +0800 Subject: [PATCH] Use consistent variable name Signed-off-by: Barry Xu --- ros2bag/ros2bag/verb/record.py | 2 +- rosbag2_py/src/rosbag2_py/_transport.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ros2bag/ros2bag/verb/record.py b/ros2bag/ros2bag/verb/record.py index e2d5e484c4..9c9ffd098c 100644 --- a/ros2bag/ros2bag/verb/record.py +++ b/ros2bag/ros2bag/verb/record.py @@ -288,7 +288,7 @@ def main(self, *, args): # noqa: D102 record_options.regex = args.regex record_options.exclude_regex = args.exclude_regex record_options.exclude_topics = args.exclude_topics if args.exclude_topics else [] - record_options.exclude_services = \ + record_options.exclude_service_events = \ convert_service_to_service_event_topic(args.exclude_services) record_options.node_prefix = NODE_NAME_PREFIX record_options.compression_mode = args.compression_mode diff --git a/rosbag2_py/src/rosbag2_py/_transport.cpp b/rosbag2_py/src/rosbag2_py/_transport.cpp index 0e3cb12afb..6593b75ae4 100644 --- a/rosbag2_py/src/rosbag2_py/_transport.cpp +++ b/rosbag2_py/src/rosbag2_py/_transport.cpp @@ -358,7 +358,7 @@ PYBIND11_MODULE(_transport, m) { .def_readwrite("regex", &RecordOptions::regex) .def_readwrite("exclude_regex", &RecordOptions::exclude_regex) .def_readwrite("exclude_topics", &RecordOptions::exclude_topics) - .def_readwrite("exclude_services", &RecordOptions::exclude_service_events) + .def_readwrite("exclude_service_events", &RecordOptions::exclude_service_events) .def_readwrite("node_prefix", &RecordOptions::node_prefix) .def_readwrite("compression_mode", &RecordOptions::compression_mode) .def_readwrite("compression_format", &RecordOptions::compression_format)