Attention
As of June 30, 2025, the Isaac ROS Buildfarm for Isaac ROS 2.1 on Ubuntu 20.04 Focal is no longer supported.
Due to an isolated infrastructure event, all ROS 2 Humble Debian packages that were previously built for Ubuntu 20.04 are no longer available in the Isaac Apt Repository. All artifacts for Isaac ROS 3.0 and later are built and maintained with a more robust pipeline.
Users are encouraged to migrate to the latest version of Isaac ROS. The source code for Isaac ROS 2.1
continues to be available on the release-2.1
branches of the Isaac ROS
GitHub repositories.
The original documentation for Isaac ROS 2.1 is preserved below.
isaac_ros_h264_encoder
Source code on GitHub.
Quickstart
Please see the quickstart from isaac_ros_h264_decoder.
Try More Examples
To continue your exploration, check out the following suggested examples:
API
Usage
ros2 launch isaac_ros_h264_encoder isaac_ros_h264_encoder.launch.py input_width:=<"your input image width"> input_height:=<"your input image height">
ROS Parameters
ROS Parameter |
Type |
Default |
Description |
---|---|---|---|
|
|
|
The width of the input image. |
|
|
|
The height of the input image. |
|
|
|
The encoder constant QP value. |
|
|
|
The encoder hardware preset type. The value can be an integer from |
|
|
|
The profile to be used for encoding. The value can be an integer from |
|
|
|
Interval between two I frames, in number of frames. E.g., |
|
|
|
A preset combination of |
ROS Topics Subscribed
ROS Topic |
Type |
Description |
---|---|---|
|
Raw input image. |
Warning
All input images are required to have height and width that are both an even number of pixels.
ROS Topics Published
ROS Topic |
Interface |
Description |
---|---|---|
|
H.264 compressed image. |
Input Restrictions
The input image resolution must be the same as the dimension you provided, and the resolution must be no larger than ``1920x1200``.
The input image should be in
rgb8
orbgr8
format, and it will be converted tonv12
format before being sent to the encoder.
Output Interpretations
The encoder could perform All-I frame or P-frame encoding and output the H.264 compressed data. The input and output are one-to-one mapped.