latest pushes
This commit is contained in:
		| @@ -14,7 +14,7 @@ The primary functionality of this API is to provide access to Bellande Algorithm | |||||||
|  |  | ||||||
| ## 🐳 API | ## 🐳 API | ||||||
| - [](https://github.com/Robotics-Sensors/bellande_robots_step) | - [](https://github.com/Robotics-Sensors/bellande_robots_step) | ||||||
| - [](https://github.com/Robotics-Sensors/bellande_search_path) | - [](https://github.com/Robotics-Sensors/bellande_search_path) | ||||||
|  |  | ||||||
|  |  | ||||||
| ## 💻 Usage | ## 💻 Usage | ||||||
|   | |||||||
| @@ -44,8 +44,9 @@ 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_api_2d.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) | ||||||
| elseif($ENV{ROS_VERSION} EQUAL "2") | else() | ||||||
|     install(PROGRAMS src/bellande_2d_computer_vision_api_2d.py DESTINATION lib/${PROJECT_NAME}) |     install(PROGRAMS src/bellande_2d_computer_vision_api_2d.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() | ||||||
| endif() | endif() | ||||||
|   | |||||||
| @@ -39,6 +39,15 @@ 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_step_api_2d.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_step_api_2d.py DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) |     install(PROGRAMS src/bellande_step_api_2d.py DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||||||
| @@ -48,11 +57,5 @@ elseif($ENV{ROS_VERSION} EQUAL "2") | |||||||
|     install(PROGRAMS src/bellande_step_api_2d.py DESTINATION lib/${PROJECT_NAME}) |     install(PROGRAMS src/bellande_step_api_2d.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() | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| # Install Python scripts for both ROS 1 and ROS 2 |  | ||||||
| catkin_install_python( |  | ||||||
|   PROGRAMS |  | ||||||
|   src/bellande_step_api_2d.py |  | ||||||
|   DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} |  | ||||||
| ) |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user