in ROS2 Environment when I run with ./ros2bag2video.py ~
./ros2bag2video.py: line 17: import: command not found
./ros2bag2video.py: line 18: import: command not found
./ros2bag2video.py: line 19: import: command not found
./ros2bag2video.py: line 20: import: command not found
./ros2bag2video.py: line 21: import: command not found
./ros2bag2video.py: line 22: import: command not found
./ros2bag2video.py: line 23: from: command not found
./ros2bag2video.py: line 24: from: command not found
./ros2bag2video.py: line 26: from: command not found
./ros2bag2video.py: line 27: from: command not found
./ros2bag2video.py: line 28: try:: command not found
./ros2bag2video.py: line 29: from: command not found
./ros2bag2video.py: line 30: except: command not found
./ros2bag2video.py: line 31: pass: command not found
./ros2bag2video.py: line 32: from: command not found
./ros2bag2video.py: line 33: from: command not found
./ros2bag2video.py: line 34: from: command not found
./ros2bag2video.py: line 35: from: command not found
./ros2bag2video.py: line 37: VIDEO_CONVERTER_TO_USE: command not found
./ros2bag2video.py: line 40: syntax error near unexpected token (' ./ros2bag2video.py: line 40:def print_help():'
in ROS2 Environment when I run with python3 ros2bag2video.py ~
AttributeError: 'CompressedImage' object has no attribute 'encoding'
Type: sensor_msgs/msg/CompressedImage
I am trying to convert Type: sensor_msgs/msg/CompressedImage to viedo file
in ROS2 Environment when I run with ./ros2bag2video.py ~
./ros2bag2video.py: line 17: import: command not found ./ros2bag2video.py: line 18: import: command not found ./ros2bag2video.py: line 19: import: command not found ./ros2bag2video.py: line 20: import: command not found ./ros2bag2video.py: line 21: import: command not found ./ros2bag2video.py: line 22: import: command not found ./ros2bag2video.py: line 23: from: command not found ./ros2bag2video.py: line 24: from: command not found ./ros2bag2video.py: line 26: from: command not found ./ros2bag2video.py: line 27: from: command not found ./ros2bag2video.py: line 28: try:: command not found ./ros2bag2video.py: line 29: from: command not found ./ros2bag2video.py: line 30: except: command not found ./ros2bag2video.py: line 31: pass: command not found ./ros2bag2video.py: line 32: from: command not found ./ros2bag2video.py: line 33: from: command not found ./ros2bag2video.py: line 34: from: command not found ./ros2bag2video.py: line 35: from: command not found ./ros2bag2video.py: line 37: VIDEO_CONVERTER_TO_USE: command not found ./ros2bag2video.py: line 40: syntax error near unexpected token
(' ./ros2bag2video.py: line 40:
def print_help():'in ROS2 Environment when I run with python3 ros2bag2video.py ~
AttributeError: 'CompressedImage' object has no attribute 'encoding'
Type: sensor_msgs/msg/CompressedImage
I am trying to convert Type: sensor_msgs/msg/CompressedImage to viedo file
how can I solve this problem?