Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording A Bag From Your Own Node Py #1091

Closed
marcoag opened this issue Apr 29, 2024 · 3 comments
Closed

Recording A Bag From Your Own Node Py #1091

marcoag opened this issue Apr 29, 2024 · 3 comments

Comments

@marcoag
Copy link
Member

marcoag commented Apr 29, 2024

Check the documentation for the 'Recording A Bag From Your Own Node Py' page

Configuration

  • Chip set: AMD64
  • Build type: Debian
  • OS: Ubuntu Noble 24.04
  • DDS: FastDDS

Links

Process

Step 1 - I was able to follow the documentation.

Step 2 - The documentation seemed clear to me.

Step 3 - The documentation didn't have any obvious errors.

@fujitatomoya
Copy link

This tutorial is broken, the following error is detected.

root@51cdd59e1f3e:~/ros2_ws# ros2 run bag_recorder_nodes_py simple_bag_recorder
Traceback (most recent call last):
  File "/root/ros2_ws/install/bag_recorder_nodes_py/lib/bag_recorder_nodes_py/simple_bag_recorder", line 33, in <module>
    sys.exit(load_entry_point('bag-recorder-nodes-py==0.0.0', 'console_scripts', 'simple_bag_recorder')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ros2_ws/install/bag_recorder_nodes_py/lib/python3.12/site-packages/bag_recorder_nodes_py/simple_bag_recorder.py", line 41, in main
    sbr = SimpleBagRecorder()
          ^^^^^^^^^^^^^^^^^^^
  File "/root/ros2_ws/install/bag_recorder_nodes_py/lib/python3.12/site-packages/bag_recorder_nodes_py/simple_bag_recorder.py", line 19, in __init__
    topic_info = rosbag2_py._storage.TopicMetadata(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. rosbag2_py._storage.TopicMetadata(id: int, name: str, type: str, serialization_format: str, offered_qos_profiles: List[rosbag2_py._storage.QoS] = [], type_description_hash: str = '')

Invoked with: kwargs: name='chatter', type='std_msgs/msg/String', serialization_format='cdr'
[ros2run]: Process exited with failure 1

this is generated by ros2/rosbag2#1569.

@fujitatomoya
Copy link

with ros2/ros2_documentation#4357 fix for the documentation, this entire procedure works fine.

@marcoag after ros2/ros2_documentation#4357 is merged, we can close this one.

@marcoag
Copy link
Member Author

marcoag commented May 4, 2024

Thanks!

@marcoag marcoag closed this as completed May 4, 2024
ahcorde pushed a commit to ros2/ros2_documentation that referenced this issue May 6, 2024
mergify bot pushed a commit to ros2/ros2_documentation that referenced this issue May 6, 2024
ahcorde pushed a commit to ros2/ros2_documentation that referenced this issue May 6, 2024
Ref: osrf/ros2_test_cases#1091

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

Co-authored-by: Tomoya Fujita <[email protected]>
@marcoag marcoag added the jazzy label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants