Skip to content

Auto Image Compressor. sensor_msgs/Image to sensor_msgs/CompressedImage ROS 1&2 compatible

License

Notifications You must be signed in to change notification settings

mjlee111/image_compressed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Compressed ROS Package

ROS2 Support Available

branch - ros2

Overview

The image_compressed package is a ROS node designed to subscribe to image topics, compress the images using JPEG encoding, and publish the compressed images to new topics. This package is useful for reducing the bandwidth usage when transmitting images over a ROS network.

Features

  • Subscribes to all available sensor_msgs/Image topics.
  • Compresses images using JPEG encoding with configurable quality.
  • Publishes the compressed images to new topics with a /compressed suffix.
  • Automatically updates the list of image topics and handles new or lost topics dynamically.

Dependencies

  • ROS (Robot Operating System)
  • OpenCV
  • cv_bridge

Installation

  1. Make sure you have ROS installed on your system.
  2. Install the required dependencies:
    sudo apt-get install ros-<ros-distro>-cv-bridge ros-<ros-distro>-image-transport
    sudo apt-get install libopencv-dev
  3. Clone the image_compressed package into your catkin workspace:
    cd ~/catkin_ws/src
    git clone <repository-url>
    cd ~/catkin_ws
    catkin_make

Usage

To run the image_compressed node, use the following command:

rosrun image_compressed image_compressed_node

Configuration

The JPEG quality for image compression can be configured through a ROS parameter. The default quality is set to 95.

About

Auto Image Compressor. sensor_msgs/Image to sensor_msgs/CompressedImage ROS 1&2 compatible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published