isaac_ros_tensor_proc#
Source code available on GitHub.
API#
Overview#
The isaac_ros_tensor_proc package offers functionality for processing tensors, such as normalizing tensors, converting images to tensors,
reshaping tensors and more. The main use case of this package is for preprocessing or postprocessing tensors following DNN model inference.
One major use case of this package can be found in Isaac ROS DNN Image Encoder.
The operations performed aim to be analogous to operations available in the PyTorch library.
Available Components#
Component |
Topics Subscribed |
Topics Published |
Parameters |
|---|---|---|---|
|
|
|
mean: The mean of the images per channel that will be used for normalizationstddev: The standard deviation of the images per channel that will be used for normalizationinput_tensor_name: The name of the input tensor to extractoutput_tensor_name: The name of the output tensor to publish |
|
|
|
scale: Whether to scale the image by 255 or nottensor_name: The name of the output tensor to publish |
|
|
|
input_tensor_shape: The shape of the interleaved_tensornum_blocks: The number of blocks to preallocateoutput_tensor_name: The name of the output tensor to publish |
|
|
|
image_mean: The mean of the images per channel that will be used for normalizationimage_stddev: The standard deviation of the images per channel that will be used for normalizationinput_image_width: The input image widthinput_image_height: The input image heightnum_blocks: The number of blocks to preallocateoutput_tensor_name: The name of the output tensor to publish |
|
|
|
output_tensor_name: The name of the output tensor to publishinput_tensor_shape: The shape of the input tensor, tensoroutput_tensor_shape: The desired shape of the output tensor, reshaped_tensornum_blocks: The number of blocks to preallocate |
|
tensor1 The first input tensortensor2 The second input tensor |
|
input_tensor1_name: The name of the first input tensor to extractinput_tensor2_name: The name of the second input tensor to extractoutput_tensor1_name: The name for the first tensor in the outputoutput_tensor2_name: The name for the second tensor in the outputinput_qos: QoS settings for input topicsoutput_qos: QoS settings for output topics |