Skip to content

Commit

Permalink
Add
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Jan 8, 2024
1 parent aa5f8b4 commit 26c55b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions ros/kxr_controller/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
requirements.txt
requirements.in.with_rcb4
9 changes: 8 additions & 1 deletion ros/kxr_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ if(GCC_VERSION VERSION_LESS 9.4.0 AND (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR C
message(STATUS "GCC version is less than 9.4.0 and target architecture is ARM. Setting CXX_FLAGS_RELEASE to -O2.")
endif()

get_filename_component(RCB4_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../.." ABSOLUTE)
message(STATUS "RCB4 Directory: ${RCB4_DIR}")

# Command to copy the modified requirements.in to requirements.in.with_rcb4
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/requirements.in ${CMAKE_CURRENT_SOURCE_DIR}/requirements.in.with_rcb4 COPYONLY)
file(APPEND ${CMAKE_CURRENT_SOURCE_DIR}/requirements.in.with_rcb4 "${RCB4_DIR}\n")

find_package(catkin REQUIRED COMPONENTS
catkin_virtualenv
actionlib
Expand Down Expand Up @@ -47,7 +54,7 @@ catkin_package(
)

catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in
INPUT_REQUIREMENTS requirements.in.with_rcb4
PYTHON_INTERPRETER python3
USE_SYSTEM_PACKAGES TRUE
ISOLATE_REQUIREMENTS FALSE
Expand Down

0 comments on commit 26c55b7

Please sign in to comment.