Skip to content

Remove handler format fallbacks#9

Merged
hect95 merged 4 commits intomainfrom
remove-handler-format-fallbacks
Mar 24, 2025
Merged

Remove handler format fallbacks#9
hect95 merged 4 commits intomainfrom
remove-handler-format-fallbacks

Conversation

@hect95
Copy link
Contributor

@hect95 hect95 commented Mar 20, 2025

  • Enforce image extensions and remove encoding fallbacks

    • Force .jpg or .png extensions for CompressedImage
      • Throw an exception otherwise
    • Remove image encoding fallbacks in ImageHandler and throw an exception
      if cv_bridge fails
  • Ensure only point cloud messages with intensity field are supported

    • Throw an exception otherwise
  • Throw exception if messages exportation failed in BagExporter

hect95 added 2 commits March 20, 2025 15:08
- Force `.jpg` or `.png` extensions for `CompressedImage`
  - Throw an exception otherwise
- Remove image encoding fallbacks in `ImageHandler` and throw an exception
  if `cv_bridge` fails
@hect95 hect95 self-assigned this Mar 20, 2025
@hect95 hect95 linked an issue Mar 20, 2025 that may be closed by this pull request
@hect95 hect95 force-pushed the remove-handler-format-fallbacks branch from cc09e93 to d6f9277 Compare March 20, 2025 16:14
@hect95 hect95 requested a review from GreatAlexander March 20, 2025 16:15
@hect95 hect95 marked this pull request as ready for review March 20, 2025 16:15
GreatAlexander
GreatAlexander previously approved these changes Mar 24, 2025
Copy link
Member

@GreatAlexander GreatAlexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor suggestions, it's up to you if we could do with slightly more specific std exceptions or not. Feel free to ignore, :shipit:

@hect95 hect95 force-pushed the remove-handler-format-fallbacks branch from 94a3680 to 1c118df Compare March 24, 2025 17:32
@hect95 hect95 merged commit 551d348 into main Mar 24, 2025
1 check passed
@hect95 hect95 deleted the remove-handler-format-fallbacks branch March 24, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unnecessary image and pointcloud formating fallbacks

2 participants