Skip to content

Commit

Permalink
avoid using internal modules for examples. (backport #1905) (#1907)
Browse files Browse the repository at this point in the history
* avoid using internal modules for examples. (#1905)

Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit d8d5108)

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2025
1 parent 69009cf commit e27f242
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
def main(args=None):
writer = rosbag2_py.SequentialWriter()

storage_options = rosbag2_py._storage.StorageOptions(
storage_options = rosbag2_py.StorageOptions(
uri='big_synthetic_bag',
storage_id='sqlite3')
converter_options = rosbag2_py._storage.ConverterOptions('', '')
converter_options = rosbag2_py.ConverterOptions('', '')
writer.open(storage_options, converter_options)

topic_info = rosbag2_py._storage.TopicMetadata(
topic_info = rosbag2_py.TopicMetadata(
id=0,
name='synthetic',
type='example_interfaces/msg/Int32',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def __init__(self):
self.data.data = 0
self.writer = rosbag2_py.SequentialWriter()

storage_options = rosbag2_py._storage.StorageOptions(
storage_options = rosbag2_py.StorageOptions(
uri='timed_synthetic_bag',
storage_id='sqlite3')
converter_options = rosbag2_py._storage.ConverterOptions('', '')
converter_options = rosbag2_py.ConverterOptions('', '')
self.writer.open(storage_options, converter_options)

topic_info = rosbag2_py._storage.TopicMetadata(
topic_info = rosbag2_py.TopicMetadata(
id=0,
name='synthetic',
type='example_interfaces/msg/Int32',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def __init__(self):
super().__init__('simple_bag_recorder')
self.writer = rosbag2_py.SequentialWriter()

storage_options = rosbag2_py._storage.StorageOptions(
storage_options = rosbag2_py.StorageOptions(
uri='my_bag',
storage_id='sqlite3')
converter_options = rosbag2_py._storage.ConverterOptions('', '')
converter_options = rosbag2_py.ConverterOptions('', '')
self.writer.open(storage_options, converter_options)

topic_info = rosbag2_py._storage.TopicMetadata(
topic_info = rosbag2_py.TopicMetadata(
id=0,
name='chatter',
type='std_msgs/msg/String',
Expand Down

0 comments on commit e27f242

Please sign in to comment.