isaac_ros_image_pipeline icon indicating copy to clipboard operation
isaac_ros_image_pipeline copied to clipboard

h264_decoder crashes with error GXF_ENTITY_NOT_FOUND

Open hawl666 opened this issue 5 months ago • 0 comments

Hi, i encoder multi camera data with isaac_ros_h264_encoder,when i decoder one topic data,the node crashes with error GXF_ENTITY_NOT_FOUND:

Image

my launch file:

def generate_launch_description(): """Launch the H.264 Decoder Node with configurable parameters.""" # 声明可配置参数 launch_args = [ DeclareLaunchArgument( 'input_topic', default_value='/camera/h264/compressed', description='Input H.264 compressed image topic (sensor_msgs/msg/CompressedImage)' ), DeclareLaunchArgument( 'output_topic', default_value='/camera/h264/uncompressed', description='Output uncompressed image topic (sensor_msgs/msg/Image)' ), DeclareLaunchArgument( 'input_width', default_value='1920', description='输入图像的宽度(像素)' ), DeclareLaunchArgument( 'input_height', default_value='1080', description='输入图像的高度(像素)' ), ] input_height = LaunchConfiguration('input_height') input_width = LaunchConfiguration('input_width')

name_uuid = str(uuid.uuid4())[:8]
# H.264解码器节点
h264_decoder_node = ComposableNode(
    name=f'h264_decoder_node_{name_uuid}',
    namespace=f'/h264_decoder_node/id_{name_uuid}',
    package='isaac_ros_h264_decoder',
    plugin='nvidia::isaac_ros::h264_decoder::DecoderNode',
    parameters=[{
        'input_width': input_width,
        'input_height': input_height,
    }],
    remappings=[
        ('image_compressed', LaunchConfiguration('input_topic')),
        ('image_uncompressed', LaunchConfiguration('output_topic'))
    ],
    extra_arguments=[
        {'use_intra_process_comms': False},
        {'extensions': ['gxf/std', 'gxf/cuda', 'gxf/isaac_media', 'gxf/isaac_tensorops', 'gxf/serialization']}
    ]
)
container = ComposableNodeContainer(
    name=f'h264_decoder_container_{name_uuid}',
    namespace=f'/h264_decoder_container/id_{name_uuid}',
    package='rclcpp_components',
    executable='component_container',
    composable_node_descriptions=[h264_decoder_node],
    output='screen',
    arguments=['--ros-args', '--log-level', 'debug']
)
return launch.LaunchDescription(launch_args + [container])

hawl666 avatar Aug 07 '25 07:08 hawl666