From 7a6c4d47da1850c5c3835b754d2f2edb8c045de1 Mon Sep 17 00:00:00 2001 From: RonaldsonBellande Date: Thu, 6 Jun 2024 02:40:58 -0400 Subject: [PATCH] key --- .../CMakeLists.txt | 13 +++++++++++-- .../config/configs.json | 3 ++- ros_web_api_bellande_step/config/configs.json | 3 ++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ros_web_api_bellande_2d_computer_vision/CMakeLists.txt b/ros_web_api_bellande_2d_computer_vision/CMakeLists.txt index 6bf5ded..9fa2462 100644 --- a/ros_web_api_bellande_2d_computer_vision/CMakeLists.txt +++ b/ros_web_api_bellande_2d_computer_vision/CMakeLists.txt @@ -39,13 +39,22 @@ if($ENV{ROS_VERSION} EQUAL 1) ) endif() +# Install Python scripts for both ROS 1 +if($ENV{ROS_VERSION} EQUAL 1) + catkin_install_python( + PROGRAMS + src/bellande_2d_computer_vision_prediction.py + DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} + ) +endif() + # Install Python scripts, configuration files, and launch files if($ENV{ROS_VERSION} EQUAL "1") - install(PROGRAMS src/bellande_2d_computer_vision_api_2d.py DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) + install(PROGRAMS src/bellande_2d_computer_vision_prediction.py DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) install(DIRECTORY config/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config) install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch) else() - install(PROGRAMS src/bellande_2d_computer_vision_api_2d.py DESTINATION lib/${PROJECT_NAME}) + install(PROGRAMS src/bellande_2d_computer_vision_prediction.py DESTINATION lib/${PROJECT_NAME}) install(DIRECTORY config/ DESTINATION share/${PROJECT_NAME}/config) install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch) ament_package() diff --git a/ros_web_api_bellande_2d_computer_vision/config/configs.json b/ros_web_api_bellande_2d_computer_vision/config/configs.json index b65e364..7d8704d 100644 --- a/ros_web_api_bellande_2d_computer_vision/config/configs.json +++ b/ros_web_api_bellande_2d_computer_vision/config/configs.json @@ -5,5 +5,6 @@ "object_detection": "/api/Bellande_2D_Computer_Vision/bellande_object_detection", "instance_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_instance_segmentation", "sementic_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_sementic_segmentation" - } + }, + "access_key": "bellande_web_api_opensource" } diff --git a/ros_web_api_bellande_step/config/configs.json b/ros_web_api_bellande_step/config/configs.json index b7b3d37..2c40b05 100644 --- a/ros_web_api_bellande_step/config/configs.json +++ b/ros_web_api_bellande_step/config/configs.json @@ -10,5 +10,6 @@ "8d": "/api/Bellande_Step/bellande_step_8d", "9d": "/api/Bellande_Step/bellande_step_9d", "10d": "/api/Bellande_Step/bellande_step_10d" - } + }, + "access_key": "bellande_web_api_opensource" }