Skip to content

Commit 4bb598b

Browse files
committed
test(franka): libxml, poco and bridge console in cmake
1 parent 64ac60e commit 4bb598b

File tree

3 files changed

+73
-11
lines changed

3 files changed

+73
-11
lines changed

debian_deps.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
build-essential
22
gcc
3-
libpoco-dev
4-
libglfw3-dev
5-
libconsole-bridge-dev
6-
libtinyxml2-dev
3+
libglfw3-dev

extensions/rcs_fr3/CMakeLists.txt

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,42 @@ FetchContent_Declare(Eigen3
6767
GIT_PROGRESS TRUE
6868
EXCLUDE_FROM_ALL
6969
)
70+
# --- tinyxml2 ---
71+
FetchContent_Declare(
72+
tinyxml2
73+
GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git
74+
GIT_TAG 10.0.0 # Or the specific version you need
75+
GIT_PROGRESS TRUE
76+
EXCLUDE_FROM_ALL
77+
)
78+
79+
# --- console_bridge ---
80+
FetchContent_Declare(
81+
console_bridge
82+
GIT_REPOSITORY https://github.com/ros/console_bridge.git
83+
GIT_TAG 1.0.2 # Standard version used in ROS 2 Humble
84+
GIT_PROGRESS TRUE
85+
EXCLUDE_FROM_ALL
86+
)
87+
88+
# --- POCO C++ Libraries ---
89+
# POCO is a massive framework. Building the whole thing takes a long time.
90+
# We disable tests, examples, and heavy components you likely don't need for a robot control stack.
91+
set(ENABLE_TESTS OFF CACHE BOOL "Disable POCO tests" FORCE)
92+
set(ENABLE_DATA_MYSQL OFF CACHE BOOL "Disable POCO MySQL" FORCE)
93+
set(ENABLE_DATA_ODBC OFF CACHE BOOL "Disable POCO ODBC" FORCE)
94+
set(ENABLE_PAGECOMPILER OFF CACHE BOOL "Disable POCO PageCompiler" FORCE)
95+
set(ENABLE_PAGECOMPILER_FILE2PAGE OFF CACHE BOOL "" FORCE)
96+
97+
FetchContent_Declare(
98+
poco
99+
GIT_REPOSITORY https://github.com/pocoproject/poco.git
100+
GIT_TAG poco-1.13.3-release
101+
GIT_PROGRESS TRUE
102+
EXCLUDE_FROM_ALL
103+
)
70104

71-
FetchContent_MakeAvailable(Eigen3)
72-
FetchContent_MakeAvailable(libfranka pybind11)
105+
FetchContent_MakeAvailable(pybind11 Eigen3 tinyxml2 console_bridge poco)
106+
FetchContent_MakeAvailable(libfranka)
73107

74108
add_subdirectory(src)

extensions/rcs_panda/CMakeLists.txt

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3535
# turn off libfranka tests
3636
set(BUILD_TESTS OFF)
3737
set(BUILD_EXAMPLES OFF)
38-
set(RL_BUILD_DEMOS OFF)
39-
set(RL_BUILD_RL_SG OFF)
40-
set(RL_BUILD_TESTS OFF)
41-
set(RL_BUILD_EXTRAS OFF)
4238
set(BUILD_PYTHON_INTERFACE OFF)
4339
set(BUILD_DOCUMENTATION OFF)
4440

@@ -67,8 +63,43 @@ FetchContent_Declare(Eigen3
6763
GIT_PROGRESS TRUE
6864
EXCLUDE_FROM_ALL
6965
)
66+
# --- tinyxml2 ---
67+
FetchContent_Declare(
68+
tinyxml2
69+
GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git
70+
GIT_TAG 10.0.0 # Or the specific version you need
71+
GIT_PROGRESS TRUE
72+
EXCLUDE_FROM_ALL
73+
)
74+
75+
# --- console_bridge ---
76+
FetchContent_Declare(
77+
console_bridge
78+
GIT_REPOSITORY https://github.com/ros/console_bridge.git
79+
GIT_TAG 1.0.2 # Standard version used in ROS 2 Humble
80+
GIT_PROGRESS TRUE
81+
EXCLUDE_FROM_ALL
82+
)
83+
84+
# --- POCO C++ Libraries ---
85+
# POCO is a massive framework. Building the whole thing takes a long time.
86+
# We disable tests, examples, and heavy components you likely don't need for a robot control stack.
87+
set(ENABLE_TESTS OFF CACHE BOOL "Disable POCO tests" FORCE)
88+
set(ENABLE_DATA_MYSQL OFF CACHE BOOL "Disable POCO MySQL" FORCE)
89+
set(ENABLE_DATA_ODBC OFF CACHE BOOL "Disable POCO ODBC" FORCE)
90+
set(ENABLE_PAGECOMPILER OFF CACHE BOOL "Disable POCO PageCompiler" FORCE)
91+
set(ENABLE_PAGECOMPILER_FILE2PAGE OFF CACHE BOOL "" FORCE)
92+
93+
FetchContent_Declare(
94+
poco
95+
GIT_REPOSITORY https://github.com/pocoproject/poco.git
96+
GIT_TAG poco-1.13.3-release
97+
GIT_PROGRESS TRUE
98+
EXCLUDE_FROM_ALL
99+
)
70100

71-
FetchContent_MakeAvailable(libfranka pybind11 Eigen3)
101+
FetchContent_MakeAvailable(pybind11 Eigen3 tinyxml2 console_bridge poco)
102+
FetchContent_MakeAvailable(libfranka)
72103
set_target_properties(franka PROPERTIES CXX_STANDARD 17)
73104

74105
add_subdirectory(src_fr3)

0 commit comments

Comments
 (0)