This commit is contained in:
Ronaldson Bellande 2024-06-06 02:40:58 -04:00
parent 1869b728bb
commit 7a6c4d47da
3 changed files with 15 additions and 4 deletions

View File

@ -39,13 +39,22 @@ if($ENV{ROS_VERSION} EQUAL 1)
) )
endif() 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 # Install Python scripts, configuration files, and launch files
if($ENV{ROS_VERSION} EQUAL "1") 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 config/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config)
install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch) install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
else() 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 config/ DESTINATION share/${PROJECT_NAME}/config)
install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch) install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch)
ament_package() ament_package()

View File

@ -5,5 +5,6 @@
"object_detection": "/api/Bellande_2D_Computer_Vision/bellande_object_detection", "object_detection": "/api/Bellande_2D_Computer_Vision/bellande_object_detection",
"instance_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_instance_segmentation", "instance_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_instance_segmentation",
"sementic_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_sementic_segmentation" "sementic_segmentation": "/api/Bellande_2D_Computer_Vision/bellande_sementic_segmentation"
} },
"access_key": "bellande_web_api_opensource"
} }

View File

@ -10,5 +10,6 @@
"8d": "/api/Bellande_Step/bellande_step_8d", "8d": "/api/Bellande_Step/bellande_step_8d",
"9d": "/api/Bellande_Step/bellande_step_9d", "9d": "/api/Bellande_Step/bellande_step_9d",
"10d": "/api/Bellande_Step/bellande_step_10d" "10d": "/api/Bellande_Step/bellande_step_10d"
} },
"access_key": "bellande_web_api_opensource"
} }