Comments (1)
using /usr/bin/python3.10
fixed the issue.
(base) mona@ada:~/rosbag2video$ /usr/bin/python3.10 ros2bag2video.py ~/Downloads/cheezit_1280_whole.bag
FPS (int) = 25
Rate (float) = 1.0
Topic (str) =
Output File (str) = output.mp4
Verbose (bool) = False
Reading info from bag file: /home/mona/Downloads/cheezit_1280_whole.bag
[ERROR] [1698850707.416016253] [rosbag2_storage]: No storage id specified, and no plugin found that could open URI
No plugin detected that could open file /home/mona/Downloads/cheezit_1280_whole.bag
ROS Message name =
Image count = 0
msgtype = None
AJB: subscribing to msg: None on topic:
Traceback (most recent call last):
File "/home/mona/rosbag2video/ros2bag2video.py", line 430, in <module>
main(sys.argv)
File "/home/mona/rosbag2video/ros2bag2video.py", line 420, in main
videowriter = RosVideoWriter(args)
File "/home/mona/rosbag2video/ros2bag2video.py", line 142, in __init__
self.subscription = self.create_subscription(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1356, in create_subscription
raise ex from None
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1354, in create_subscription
self._validate_topic_or_service_name(topic)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1183, in _validate_topic_or_service_name
validate_topic_name(topic_or_service_name, is_service=is_service)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/validate_topic_name.py", line 43, in validate_topic_name
raise InvalidTopicNameException(name, error_msg, invalid_index)
rclpy.exceptions.InvalidTopicNameException: Invalid topic name: topic name must not be empty string:
''
^
(base) mona@ada:~/rosbag2video$ ls
total 72K
-rwxrwxr-x 1 mona mona 14K Nov 1 09:31 rosbag2video.py
-rwxrwxr-x 1 mona mona 14K Nov 1 09:31 ros2bag2video.py
-rw-rw-r-- 1 mona mona 2.5K Nov 1 09:31 README.md
-rw-rw-r-- 1 mona mona 18K Nov 1 09:31 LICENSE
-rw-rw-r-- 1 mona mona 755 Nov 1 09:31 .gitignore
drwxrwxr-x 8 mona mona 4.0K Nov 1 09:31 .git
drwxrwxr-x 3 mona mona 4.0K Nov 1 09:31 .
drwxr-x--- 55 mona mona 4.0K Nov 1 10:48 ..
(base) mona@ada:~/rosbag2video$ mkdir bag_out
(base) mona@ada:~/rosbag2video$ /usr/bin/python3.10 ros2bag2video.py ~/Downloads/cheezit_1280_whole.bag bag_out/
FPS (int) = 25
Rate (float) = 1.0
Topic (str) =
Output File (str) = output.mp4
Verbose (bool) = False
Reading info from bag file: /home/mona/Downloads/cheezit_1280_whole.bag
[ERROR] [1698850810.162299632] [rosbag2_storage]: No storage id specified, and no plugin found that could open URI
No plugin detected that could open file /home/mona/Downloads/cheezit_1280_whole.bag
ROS Message name =
Image count = 0
msgtype = None
AJB: subscribing to msg: None on topic:
Traceback (most recent call last):
File "/home/mona/rosbag2video/ros2bag2video.py", line 430, in <module>
main(sys.argv)
File "/home/mona/rosbag2video/ros2bag2video.py", line 420, in main
videowriter = RosVideoWriter(args)
File "/home/mona/rosbag2video/ros2bag2video.py", line 142, in __init__
self.subscription = self.create_subscription(
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1356, in create_subscription
raise ex from None
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1354, in create_subscription
self._validate_topic_or_service_name(topic)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1183, in _validate_topic_or_service_name
validate_topic_name(topic_or_service_name, is_service=is_service)
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/validate_topic_name.py", line 43, in validate_topic_name
raise InvalidTopicNameException(name, error_msg, invalid_index)
rclpy.exceptions.InvalidTopicNameException: Invalid topic name: topic name must not be empty string:
''
^
from rosbag2video.
Related Issues (20)
- rosbag2video not showingup any output
- Code correction suggestion !!
- Code is not working HOT 4
- dependencies not found HOT 10
- arg parse error HOT 1
- Port to ROS2 HOT 8
- Object has no attribute 'format' HOT 5
- Transfer Process Doesn't Move Further HOT 6
- E: Unable to locate package python3-roslib & python3-sensor-msgs HOT 2
- AttributeError: 'CompressedImage' object has no attribute 'encoding' HOT 3
- no roslib module HOT 1
- unsupported encoding: mono16 /depth_image HOT 4
- Generated video file is black HOT 2
- please,helpe me.How did this error occur
- /usr/bin/python3.10 ros2bag2video.py ~/Downloads/cheezit_1280_whole.bag --> rclpy.exceptions.InvalidTopicNameException: Invalid topic name: topic name must not be empty string: '' HOT 1
- how to convert a ros2 humble bag to a video using ros2bag2video.py Python script? HOT 4
- ros2bag2video.py script gets stuck Python 3.10, ros2 humble, Ubuntu 22.04 in converting color raw bag to video HOT 4
- Update Readme To Make the Features of the Package Explicit. ros2bag2video.py only works with compressed image stream
- ros2bag2video.py script gets stuck Python 3.10, ros2 humble, Ubuntu 22.04 in converting color raw bag to video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosbag2video.