You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pixel_format: "uyvy": image_raw is displayed normally image_raw/compressed is not displayed correctly.
pixel_format: "uyvy2rgb": image_raw display exception image_raw/compressed is not displayed correctly.
Using opencv API, vyvu to rgb: image_raw is displayed normally image_raw/compressed is displayed normally
Error prompt
ros2 run rqt_image_view rqt_image_view
while trying to convert image from 'rgb8' to 'rgb8' an exception was thrown (Image is wrongly formed: step < width * byte_depth * num_channels or 3840 != 1920 * 1 * 3)
config file
/**:
ros__parameters:
video_device: "/dev/video0"
framerate: 30.0
io_method: "mmap"
frame_id: "camera1"
# pixel_format: "yuyv2rgb"
pixel_format: "uyvy2rgb"
# pixel_format: "uyvy"
image_width: 1920
image_height: 1080
camera_name: "camera1"
# reusing same camera intrinsics only for demo, should really be unique for camera2"
camera_info_url: "package://usb_cam/config/camera_info.yaml"
brightness: -1
contrast: -1
saturation: -1
sharpness: -1
gain: -1
auto_white_balance: true
white_balance: 4000
autoexposure: true
exposure: 100
autofocus: false
focus: -1
Description of the problem
pixel_format: "uyvy" display normal
pixel_format: "uyvy2rgb" displays incorrectly
My modifications
I chose pixel_format: "uyvy", and then converted m_image_msg to rgb format, and that worked!
branch: ros2
commit: 64c417f
settled
pixel_format
: "uyvy":image_raw
is displayed normallyimage_raw/compressed
is not displayed correctly.pixel_format
: "uyvy2rgb":image_raw
display exceptionimage_raw/compressed
is not displayed correctly.opencv
API,vyvu
torgb
:image_raw
is displayed normallyimage_raw/compressed
is displayed normallyError prompt
ros2 run rqt_image_view rqt_image_view
while trying to convert image from 'rgb8' to 'rgb8' an exception was thrown (Image is wrongly formed: step < width * byte_depth * num_channels or 3840 != 1920 * 1 * 3)
config file
Description of the problem
pixel_format: "uyvy" display normal
pixel_format: "uyvy2rgb" displays incorrectly
My modifications
The text was updated successfully, but these errors were encountered: