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

[image_saver_node]: Unable to convert 8UC3 image to bgr8 #1029

Open
HaiCLi opened this issue Sep 4, 2024 · 5 comments
Open

[image_saver_node]: Unable to convert 8UC3 image to bgr8 #1029

HaiCLi opened this issue Sep 4, 2024 · 5 comments

Comments

@HaiCLi
Copy link

HaiCLi commented Sep 4, 2024

Hi guys,

I met this problem when I try to save the images from rosbag2 with timestamp. Did anyone knows how to solve it?

Thanks!

image

@HaiCLi
Copy link
Author

HaiCLi commented Sep 4, 2024

"ros2 run image_view image_saver --encoding=8Uc3 --ros-args -r image:=/cam/video0 " the command I used

@mikeferguson
Copy link
Member

It would appear to me that you are not passing the parameters correctly since it is still using the default "bgr8":

 ros2 run image_view image_saver --ros-args -p encoding:=8UC3 -r image:=/cam/video0

@HaiCLi
Copy link
Author

HaiCLi commented Sep 5, 2024

It would appear to me that you are not passing the parameters correctly since it is still using the default "bgr8":

 ros2 run image_view image_saver --ros-args -p encoding:=8UC3 -r image:=/cam/video0

could you provide the correct one? I can not find it on RosWiki. Thanks!

@mikeferguson
Copy link
Member

The command I posted would be the correct one - you move the parameter after --ros-args and add the -p as shown

@HaiCLi
Copy link
Author

HaiCLi commented Sep 5, 2024

The command I posted would be the correct one - you move the parameter after --ros-args and add the -p as shown

Thanks for your reply! However, I found the results are lack of timestamps. I need this attribution for the use of sensor fusion with lidar. Do you have any suggestions? Thanks!

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