Skip to content

Commit 12f99f8

Browse files
committed
Isaac ROS 2.0.0
1 parent d31cf36 commit 12f99f8

File tree

75 files changed

+3572
-2032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3572
-2032
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# ROS Bags
2323
**/resources/**/*.db3 filter=lfs diff=lfs merge=lfs -text
2424
**/resources/**/*.yaml filter=lfs diff=lfs merge=lfs -text
25+
**/resources/**/*.bag filter=lfs diff=lfs merge=lfs -text
2526

2627
# DNN Model files
2728
*.onnx filter=lfs diff=lfs merge=lfs -text

README.md

Lines changed: 80 additions & 362 deletions
Large diffs are not rendered by default.

docs/centerpose.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

docs/dope-custom-model.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/dope-custom-size.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/dope-triton.md

Lines changed: 0 additions & 128 deletions
This file was deleted.
Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
2-
# Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -15,27 +15,45 @@
1515
#
1616
# SPDX-License-Identifier: Apache-2.0
1717

18-
cmake_minimum_required(VERSION 3.23.2)
19-
project(isaac_ros_centerpose LANGUAGES PYTHON)
18+
cmake_minimum_required(VERSION 3.22.1)
19+
project(isaac_ros_centerpose LANGUAGES C CXX)
2020

2121
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2222
add_compile_options(-Wall -Wextra -Wpedantic)
2323
endif()
2424

25-
find_package(ament_cmake REQUIRED)
2625
find_package(ament_cmake_auto REQUIRED)
27-
find_package(ament_cmake_python REQUIRED)
28-
find_package(rclpy REQUIRED)
2926
ament_auto_find_build_dependencies()
3027

31-
# Install Python modules
32-
ament_python_install_package(${PROJECT_NAME})
28+
# Decoder node
29+
ament_auto_add_library(centerpose_decoder_node SHARED src/centerpose_decoder_node.cpp)
30+
rclcpp_components_register_nodes(centerpose_decoder_node "nvidia::isaac_ros::centerpose::CenterPoseDecoderNode")
31+
set(node_plugins "${node_plugins}nvidia::isaac_ros::centerpose::CenterPoseDecoderNode;$<TARGET_FILE:centerpose_decoder_node>\n")
3332

34-
# Install Python executables
35-
install(PROGRAMS
36-
isaac_ros_centerpose/CenterPoseDecoder.py
37-
isaac_ros_centerpose/CenterPoseDecoderUtils.py
38-
DESTINATION lib/${PROJECT_NAME}
39-
)
33+
# Visualizer node
34+
ament_auto_add_library(centerpose_visualizer_node SHARED src/centerpose_visualizer_node.cpp)
35+
rclcpp_components_register_nodes(centerpose_visualizer_node "nvidia::isaac_ros::centerpose::CenterPoseVisualizerNode")
36+
set(node_plugins "${node_plugins}nvidia::isaac_ros::centerpose::CenterPoseVisualizerNode;$<TARGET_FILE:centerpose_visualizer_node>\n")
4037

41-
ament_auto_package()
38+
### Install extensions built from source
39+
40+
# CenterPose
41+
add_subdirectory(gxf/centerpose)
42+
install(TARGETS gxf_centerpose DESTINATION share/${PROJECT_NAME}/gxf/lib/centerpose)
43+
44+
### End extensions
45+
if(BUILD_TESTING)
46+
find_package(ament_lint_auto REQUIRED)
47+
ament_lint_auto_find_test_dependencies()
48+
49+
# The FindPythonInterp and FindPythonLibs modules are removed
50+
if(POLICY CMP0148)
51+
cmake_policy(SET CMP0148 OLD)
52+
endif()
53+
54+
find_package(launch_testing_ament_cmake REQUIRED)
55+
add_launch_test(test/test_centerpose_pol.py TIMEOUT "600")
56+
add_launch_test(test/test_centerpose_pol_triton.py TIMEOUT "600")
57+
endif()
58+
59+
ament_auto_package(INSTALL_TO_SHARE config launch)

0 commit comments

Comments
 (0)