-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from juandpenan/rolling
Added Jazzy compilation
- Loading branch information
Showing
45 changed files
with
331 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Dockerfile for ROSCon 2024 Deliberation Workshop | ||
|
||
FROM ros:jazzy AS robocup2024 | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# Install apt dependencies. | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
||
RUN apt-get update \ | ||
&& apt-get -y --quiet --no-install-recommends install \ | ||
gcc \ | ||
git \ | ||
wget \ | ||
portaudio19-dev \ | ||
python3 \ | ||
python3-pip \ | ||
ros-jazzy-moveit \ | ||
nlohmann-json3-dev | ||
|
||
|
||
# Create a ROS 2 workspace. | ||
RUN mkdir -p /robocup/src/ | ||
WORKDIR /robocup | ||
|
||
ADD https://raw.githubusercontent.com/mgonzs13/audio_common/refs/heads/main/requirements.txt /robocup/requirements1.txt | ||
ADD https://raw.githubusercontent.com/mgonzs13/whisper_ros/refs/heads/main/requirements.txt /robocup/requirements2.txt | ||
ADD https://raw.githubusercontent.com/mgonzs13/llama_ros/refs/heads/main/requirements.txt /robocup/requirements3.txt | ||
ADD https://raw.githubusercontent.com/jmguerreroh/yolov8_ros/refs/heads/main/requirements.txt /robocup/requirements4.txt | ||
ADD https://raw.githubusercontent.com/mgonzs13/tts_ros/refs/heads/main/requirements.txt /robocup/requirements5.txt | ||
|
||
# Install external dependencies. | ||
RUN pip install -r requirements1.txt --break-system-packages | ||
RUN pip install -r requirements2.txt --break-system-packages | ||
RUN pip install -r requirements3.txt --break-system-packages | ||
RUN pip install -r requirements4.txt --break-system-packages | ||
RUN pip install -r requirements5.txt --break-system-packages | ||
|
||
|
||
WORKDIR /robocup/src | ||
RUN git clone https://github.com/CoreSenseEU/CoreSense4Home.git -b jazzy | ||
RUN vcs import --recursive < ./CoreSense4Home/robocup_bringup/thirdparty.repos | ||
|
||
WORKDIR /robocup | ||
RUN rosdep install --from-paths src --ignore-src -r -y | ||
|
||
# Set up the entrypoint. | ||
# Install CUDA nvcc | ||
ARG USE_CUDA | ||
ARG CUDA_VERSION=12-6 | ||
|
||
RUN if [ "$USE_CUDA" = "1" ]; then \ | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \ | ||
dpkg -i cuda-keyring_1.1-1_all.deb && \ | ||
rm cuda-keyring_1.1-1_all.deb; \ | ||
apt-get update && apt-get install -y cuda-toolkit-$CUDA_VERSION; \ | ||
echo "export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}" >> ~/.bashrc; \ | ||
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> ~/.bashrc; \ | ||
fi | ||
|
||
# Install gdp grasp generator library | ||
WORKDIR /robocup/src/ThirdParty/gpd | ||
RUN mkdir build | ||
WORKDIR /robocup/src/ThirdParty/gpd/build | ||
RUN cmake .. | ||
RUN make -j | ||
RUN make install | ||
|
||
# Colcon the ws | ||
WORKDIR /robocup | ||
FROM robocup2024 AS builder | ||
ARG CMAKE_BUILD_TYPE=Release | ||
|
||
ENV PATH=/usr/local/cuda/bin${PATH:+:${PATH}} | ||
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64 | ||
|
||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \ | ||
if [ "$USE_CUDA" = "1" ]; then \ | ||
source ~/.bashrc && \ | ||
colcon build --packages-skip tts_bringup --cmake-args -DGGML_CUDA=ON; \ | ||
else \ | ||
colcon build --packages-skip tts_bringup; \ | ||
fi | ||
|
||
# Source the ROS 2 setup file | ||
RUN echo "source /root/robocup/install/setup.bash" >> ~/.bashrc | ||
|
||
# Run a default command, e.g., starting a bash shell | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: jazzy | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- jazzy | ||
push: | ||
branches: | ||
- jazzy | ||
schedule: | ||
- cron: '0 0 * * 6' | ||
jobs: | ||
docker_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build Docker | ||
uses: docker/build-push-action@v6 | ||
with: | ||
file: .docker/Dockerfile | ||
push: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,15 @@ jobs: | |
- name: Setup ROS 2 | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: humble | ||
required-ros-distributions: jazzy | ||
- name: Install nlohmann | ||
run: sudo apt -y install nlohmann-json3-dev | ||
- name: Install ceres dependencies | ||
run: sudo apt -y install libunwind-dev libgoogle-glog-dev libatlas-base-dev libsuitesparse-dev libgflags-dev | ||
- name: Install ceres | ||
run: sudo apt -y install libceres-dev | ||
- name | ||
- name: build and test | ||
uses: ros-tooling/[email protected] | ||
with: | ||
package-name: arm bt_test hri motion perception robocup_bringup cs4home_core | ||
target-ros2-distro: humble | ||
target-ros2-distro: jazzy | ||
colcon-defaults: | | ||
{ | ||
"test": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.