Skip to content

Commit

Permalink
Merge pull request #3 from NVIDIA-ISAAC-ROS/release-dp-1.1
Browse files Browse the repository at this point in the history
Isaac ROS 0.11.0 (DP1.1)
  • Loading branch information
hemalshahNV authored Sep 2, 2022
2 parents 47628d0 + 1292e1d commit afffb79
Show file tree
Hide file tree
Showing 26 changed files with 1,007 additions and 85 deletions.
51 changes: 28 additions & 23 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions isaac_ros_bi3d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ add_library(bi3d_postprocess SHARED IMPORTED)
if(${ARCHITECTURE} STREQUAL "x86_64")
set_property(
TARGET bi3d_postprocess PROPERTY IMPORTED_LOCATION
${CMAKE_CURRENT_SOURCE_DIR}/cvcore/cvcore_bi3d/lib/x86_64/libgxf_bi3d_postprocess.so)
${CMAKE_CURRENT_SOURCE_DIR}/cvcore/cvcore_bi3d/lib/x86_64/libgxf_bi3d_postprocessor.so)
elseif(${ARCHITECTURE} STREQUAL "aarch64")
set_property(
TARGET bi3d_postprocess PROPERTY IMPORTED_LOCATION
${CMAKE_CURRENT_SOURCE_DIR}/cvcore/cvcore_bi3d/lib/jetpack50/libgxf_bi3d_postprocess.so)
${CMAKE_CURRENT_SOURCE_DIR}/cvcore/cvcore_bi3d/lib/jetpack50/libgxf_bi3d_postprocessor.so)
endif()

# bi3d_node
Expand Down
169 changes: 156 additions & 13 deletions isaac_ros_bi3d/config/bi3d_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
##################################################
---
name: sync
components:
- name: data_receiver_left
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 1
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
Expand All @@ -21,7 +22,7 @@ components:
- name: data_receiver_right
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 1
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
Expand Down Expand Up @@ -100,17 +101,49 @@ components:
parameters:
capacity: 1
---
name: disparity_roundrobin
components:
- name: data_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 1
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver
min_size: 1
- type: nvidia::gxf::Broadcast
parameters:
source: data_receiver
mode: RoundRobin
- name: data_transmitter_dla0
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 1
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: data_transmitter_dla0
min_size: 1
- name: data_transmitter_dla1
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 1
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: data_transmitter_dla1
min_size: 1
---
name: gather
components:
- name: input_dla0
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
capacity: 6
policy: 0
- name: input_dla1
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
capacity: 6
policy: 0
- type: nvidia::gxf::MultiMessageAvailableSchedulingTerm
parameters:
Expand Down Expand Up @@ -148,6 +181,15 @@ components:
parameters:
receiver: data_receiver_right
min_size: 1
- name: data_receiver_disparity
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 6
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver_disparity
min_size: 1
- name: data_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
Expand All @@ -161,7 +203,13 @@ components:
parameters:
storage_type: 1
block_size: 2211840
num_blocks: 50
num_blocks: 12
- name: forward_pool
type: nvidia::gxf::BlockMemoryPool
parameters:
storage_type: 0
block_size: 256
num_blocks: 12
- name: stream
type: nvidia::gxf::CudaStreamPool
parameters:
Expand All @@ -176,10 +224,12 @@ components:
right_image_name: "right_image"
output_name: "disparity"
pool: pool
forward_pool: forward_pool
stream_pool: stream
left_image_receiver: data_receiver_left
right_image_receiver: data_receiver_right
output_transmitter: data_transmitter
disparity_receiver: data_receiver_disparity

image_type: "RGB_U8"
pixel_mean: [0.0078431372549, 0.0078431372549, 0.0078431372549]
Expand All @@ -206,7 +256,6 @@ components:
threshold_value_low: 0.0
threshold_value_high: 1.0
max_disparity_levels: 64
disparity_values: [18]
---
name: bi3d_dla1
components:
Expand All @@ -228,6 +277,15 @@ components:
parameters:
receiver: data_receiver_right
min_size: 1
- name: data_receiver_disparity
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 6
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver_disparity
min_size: 1
- name: data_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
Expand All @@ -241,7 +299,13 @@ components:
parameters:
storage_type: 1
block_size: 2211840
num_blocks: 50
num_blocks: 12
- name: forward_pool
type: nvidia::gxf::BlockMemoryPool
parameters:
storage_type: 0
block_size: 256
num_blocks: 12
- name: stream
type: nvidia::gxf::CudaStreamPool
parameters:
Expand All @@ -256,10 +320,12 @@ components:
right_image_name: "right_image"
output_name: "disparity"
pool: pool
forward_pool: forward_pool
stream_pool: stream
left_image_receiver: data_receiver_left
right_image_receiver: data_receiver_right
output_transmitter: data_transmitter
disparity_receiver: data_receiver_disparity

image_type: "RGB_U8"
pixel_mean: [0.0078431372549, 0.0078431372549, 0.0078431372549]
Expand All @@ -286,7 +352,6 @@ components:
threshold_value_low: 0.0
threshold_value_high: 1.0
max_disparity_levels: 64
disparity_values: [18]
---
name: sync_bi3d_dla0
components:
Expand Down Expand Up @@ -343,7 +408,7 @@ components:
parameters:
storage_type: 1
block_size: 2211840
num_blocks: 50
num_blocks: 24
- name: data_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
Expand All @@ -361,12 +426,46 @@ components:
parameters:
transmitter: data_transmitter
min_size: 1
- type: nvidia::isaac_ros::Bi3DPostprocess
- type: nvidia::isaac_ros::Bi3DPostprocessor
parameters:
bi3d_receiver: data_receiver
output_transmitter: data_transmitter
pool: pool
disparity_values: [18]
disparity_tensor_name: "disparity"
disparity_values_tensor_name: "bi3d_inference_disparities"
---
name: bi3d_output_message_splitter
components:
- name: data_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver
min_size: 1
- name: disparity_image_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 12
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: disparity_image_transmitter
min_size: 1
- name: disparity_values_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 12
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: disparity_values_transmitter
min_size: 1
- type: nvidia::isaac_ros::Bi3DMessageSplitter
parameters:
receiver: data_receiver
disparity_image_transmitter: disparity_image_transmitter
disparity_values_transmitter: disparity_values_transmitter
---
name: bi3d_output_vault
components:
Expand All @@ -386,6 +485,24 @@ components:
max_waiting_count: 1
drop_waiting: false
---
name: disparity_values_output_vault
components:
- name: input
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 1
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: input
min_size: 1
- name: vault
type: nvidia::gxf::Vault
parameters:
source: input
max_waiting_count: 1
drop_waiting: false
---
components:
- name: connection
type: nvidia::gxf::Connection
Expand Down Expand Up @@ -415,6 +532,20 @@ components:
target: bi3d_dla0/data_receiver_right
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: disparity_roundrobin/data_transmitter_dla0
target: bi3d_dla0/data_receiver_disparity
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: disparity_roundrobin/data_transmitter_dla1
target: bi3d_dla1/data_receiver_disparity
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
Expand Down Expand Up @@ -468,8 +599,22 @@ components:
type: nvidia::gxf::Connection
parameters:
source: bi3d_postprocess/data_transmitter
target: bi3d_output_message_splitter/data_receiver
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: bi3d_output_message_splitter/disparity_image_transmitter
target: bi3d_output_vault/input
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: bi3d_output_message_splitter/disparity_values_transmitter
target: disparity_values_output_vault/input
---
name: scheduler
components:
- name: clock
Expand All @@ -480,5 +625,3 @@ components:
worker_thread_number: 8
stop_on_deadlock: false



This file was deleted.

Git LFS file not shown
Git LFS file not shown
Git LFS file not shown

This file was deleted.

Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
2 changes: 1 addition & 1 deletion isaac_ros_bi3d/include/isaac_ros_bi3d/bi3d_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Bi3DNode : public nitros::NitrosNode
const std::vector<std::string> segnet_output_layers_name_;

// Bi3D extra parameters
std::vector<int64_t> disparity_values_;
int64_t max_disparity_values_;
};

} // namespace bi3d
Expand Down
Loading

0 comments on commit afffb79

Please sign in to comment.