Skip to content

Commit

Permalink
Merge pull request #15 from NVIDIA-ISAAC-ROS/release-2.0.0
Browse files Browse the repository at this point in the history
Isaac ROS 2.0.0
  • Loading branch information
jaiveersinghNV authored Oct 19, 2023
2 parents fd902ff + f9ccf18 commit 3e73c7f
Show file tree
Hide file tree
Showing 202 changed files with 5,189 additions and 21,521 deletions.
371 changes: 59 additions & 312 deletions README.md

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions docs/bi3d-example.md

This file was deleted.

52 changes: 0 additions & 52 deletions docs/tutorial-bi3d-isaac-sim.md

This file was deleted.

14 changes: 8 additions & 6 deletions isaac_ros_bi3d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.23.2)
cmake_minimum_required(VERSION 3.22.1)
project(isaac_ros_bi3d LANGUAGES C CXX)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand All @@ -33,13 +33,9 @@ set(node_plugins "${node_plugins}nvidia::isaac_ros::bi3d::Bi3DNode;$<TARGET_FILE
### Install extensions built from source

# Bi3d
add_subdirectory(gxf/bi3d)
add_subdirectory(gxf)
install(TARGETS gxf_cvcore_bi3d DESTINATION share/${PROJECT_NAME}/gxf/lib/bi3d)

# Bi3d postprocessor
add_subdirectory(gxf/bi3d_postprocessor)
install(TARGETS gxf_bi3d_postprocessor DESTINATION share/${PROJECT_NAME}/gxf/lib/bi3d)

### End extensions

install(PROGRAMS scripts/isaac_ros_bi3d_visualizer.py DESTINATION lib/${PROJECT_NAME})
Expand All @@ -48,6 +44,12 @@ if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()


# The FindPythonInterp and FindPythonLibs modules are removed
if(POLICY CMP0148)
cmake_policy(SET CMP0148 OLD)
endif()

find_package(launch_testing_ament_cmake REQUIRED)
add_launch_test(test/isaac_ros_bi3d_test.py TIMEOUT "1000")
endif()
Expand Down
156 changes: 136 additions & 20 deletions isaac_ros_bi3d/config/bi3d_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,47 +18,92 @@
---
name: sync
components:
- name: data_receiver_left
- name: left_image_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver_left
receiver: left_image_receiver
min_size: 1
- name: data_receiver_right
- name: right_image_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: data_receiver_right
receiver: right_image_receiver
min_size: 1
- name: data_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 12
policy: 0
- name: left_cam_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: left_cam_receiver
min_size: 1
- name: right_cam_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: right_cam_receiver
min_size: 1
- type: nvidia::isaac_ros::Synchronization
parameters:
left_input_placeholder: data_receiver_left
left_output_placeholder: left_data_transmitter
right_input_placeholder: data_receiver_right
right_output_placeholder: right_data_transmitter
inputs: [data_receiver_left, data_receiver_right]
outputs: [left_data_transmitter, right_data_transmitter]
- name: left_data_transmitter
left_image_input: left_image_receiver
right_image_input: right_image_receiver
left_cam_input: left_cam_receiver
right_cam_input: right_cam_receiver
left_image_output: left_image_transmitter
right_image_output: right_image_transmitter
left_cam_output: left_cam_transmitter
right_cam_output: right_cam_transmitter
inputs: [left_image_receiver, right_image_receiver, left_cam_receiver, right_cam_receiver]
outputs: [left_image_transmitter, right_image_transmitter, left_cam_transmitter, right_cam_transmitter]
- name: left_image_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 1
capacity: 12
policy: 0
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: left_image_transmitter
min_size: 1
- name: right_image_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 12
policy: 0
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: left_data_transmitter
transmitter: right_image_transmitter
min_size: 1
- name: right_data_transmitter
- name: left_cam_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 1
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: right_data_transmitter
transmitter: left_cam_transmitter
min_size: 1
- name: right_cam_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 12
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: right_cam_transmitter
min_size: 1
---
name: left_roundrobin
Expand Down Expand Up @@ -226,7 +271,7 @@ components:
stream_priority: 0
reserved_size: 1
max_size: 1
- type: nvidia::cvcore::Bi3D
- type: nvidia::isaac::Bi3DInference
parameters:
left_image_name: "left_image"
right_image_name: "right_image"
Expand Down Expand Up @@ -264,6 +309,7 @@ components:
threshold_value_low: 0.0
threshold_value_high: 1.0
max_disparity_levels: 64
disparity_values: [18]
---
name: bi3d_dla1
components:
Expand Down Expand Up @@ -322,7 +368,7 @@ components:
stream_priority: 0
reserved_size: 1
max_size: 1
- type: nvidia::cvcore::Bi3D
- type: nvidia::isaac::Bi3DInference
parameters:
left_image_name: "left_image"
right_image_name: "right_image"
Expand Down Expand Up @@ -360,6 +406,7 @@ 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 @@ -434,13 +481,61 @@ components:
parameters:
transmitter: data_transmitter
min_size: 1
- type: nvidia::isaac_ros::Bi3DPostprocessor
- type: nvidia::isaac::bi3d::Bi3DPostprocessor
parameters:
bi3d_receiver: data_receiver
output_transmitter: data_transmitter
pool: pool
disparity_tensor_name: "disparity"
disparity_values_tensor_name: "bi3d_inference_disparities"
disparity_values: [18]
---
name: disparity_compositor
components:
- name: disparity_in
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 2
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: disparity_in
min_size: 1
- name: left_cam_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 2
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: left_cam_receiver
min_size: 1
- name: right_cam_receiver
type: nvidia::gxf::DoubleBufferReceiver
parameters:
capacity: 2
policy: 0
- type: nvidia::gxf::MessageAvailableSchedulingTerm
parameters:
receiver: right_cam_receiver
min_size: 1
- name: data_transmitter
type: nvidia::gxf::DoubleBufferTransmitter
parameters:
capacity: 1
policy: 0
- type: nvidia::gxf::DownstreamReceptiveSchedulingTerm
parameters:
transmitter: data_transmitter
min_size: 1
- type: nvidia::isaac::DisparityCompositor
parameters:
left_camera_model_receiver: left_cam_receiver
right_camera_model_receiver: right_cam_receiver
disparity_receiver: disparity_in
output_transmitter: data_transmitter
min_disparity: 0
max_disparity: -1
---
name: bi3d_output_sink
components:
Expand All @@ -462,17 +557,31 @@ components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: sync/left_data_transmitter
source: sync/left_image_transmitter
target: left_roundrobin/data_receiver
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: sync/right_data_transmitter
source: sync/right_image_transmitter
target: right_roundrobin/data_receiver
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: sync/left_cam_transmitter
target: disparity_compositor/left_cam_receiver
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: sync/right_cam_transmitter
target: disparity_compositor/right_cam_receiver
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
Expand Down Expand Up @@ -554,6 +663,13 @@ components:
type: nvidia::gxf::Connection
parameters:
source: bi3d_postprocess/data_transmitter
target: disparity_compositor/disparity_in
---
components:
- name: connection
type: nvidia::gxf::Connection
parameters:
source: disparity_compositor/data_transmitter
target: bi3d_output_sink/input
---
name: scheduler
Expand Down
Loading

0 comments on commit 3e73c7f

Please sign in to comment.