Skip to content

[CPU usage] High CPU usage when rqt_image_view subscribes to compressed topics #297

Open
@zymouse

Description

@zymouse

recognize

  • branch: ros2
  • commit: c052be0
  • pixel_format: "uyvy2rgb"
  • image_width: 1920
  • image_height: 1080

Test results

  • image_raw
image
  • image_raw/compressed
image

Possible issues arising

High CPU usage for compressed images

Multiple usb cameras are used in autopilot.
When multiple cameras are used at the same time, the usb_cam driver will use up most of the system CPU resources. Affecting the whole autopilot system

Reason for high compressed image usage: Because image_raw has a large transmission bandwidth (190MB/s), the compressed image usage will also be very high.

suggestion

image
Subscribe to image_raw: Because of the large transmission bandwidth (>100MB/s), the frequency of subscribing to image_raw is reduced. This affects the autopilot perception

Subscribe to /image_raw/compressed: affects image quality and high CPU usage.

We are using opencv's resize method:
Posted by: 1920x1080 -> 540x960
Subscriber: 540x960 -> 1920x1080
This way to avoid - large transfer bandwidth causing frequency degradation and compression increasing CPU usage - image quality degradation issues

ultimate

Thank you very much, a great driver!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions