Skip to content

Commit

Permalink
Managed to build most packages from sources
Browse files Browse the repository at this point in the history
Signed-off-by: Gianpaolo Macario <[email protected]>
  • Loading branch information
gmacario committed Sep 18, 2024
1 parent 6beaa7a commit 1f60d28
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions freisa_on_mars/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,40 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& /bin/bash -c 'source "${MOVEIT2_DIR}/install/setup.bash"' \
&& rosdep install --from-paths src --ignore-src -r -y --rosdistro ${ROSDISTRO}

# # Build the demo
# RUN /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"' \
# && /bin/bash -c 'source "${MOVEIT2_DIR}/install/setup.bash"' \
# && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
RUN vcs import src < "${DEMO_DIR}/src/mini_pupper_ros/.minipupper.repos"

# HACK: Move out package whose build still fails
RUN /bin/mkdir -p ../NO_src \
&& for d in champ ros2_controllers; do mv "src/$d" "../NO_src/"; done

# Build the demo
RUN /bin/bash -c '\
source "${SPACEROS_DIR}/install/setup.bash" \
&& source "${MOVEIT2_DIR}/install/setup.bash" \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release'

# === TODO: The command above fails ============================================
# --- stderr: forward_command_controller
# CMake Error at CMakeLists.txt:26 (find_package):
# By not providing "Findcontroller_interface.cmake" in CMAKE_MODULE_PATH this
# project has asked CMake to find a package configuration file provided by
# "controller_interface", but CMake did not find one.
#
# Could not find a package configuration file provided by
# "controller_interface" with any of the following names:
#
# controller_interfaceConfig.cmake
# controller_interface-config.cmake
#
# Add the installation prefix of "controller_interface" to CMAKE_PREFIX_PATH
# or set "controller_interface_DIR" to a directory containing one of the
# above files. If "controller_interface" provides a separate development
# package or SDK, be sure it has been installed.
#
#
# ---
# Failed <<< forward_command_controller [1.84s, exited with code 1]
# ==============================================================================

RUN touch DEBUG-21.txt

Expand Down

0 comments on commit 1f60d28

Please sign in to comment.