2023-12-19 08:11:39 +03:00
|
|
|
FROM billf1nger/ros2-humble-cuda:v12.2.2-cudnn8-ubuntu22.04-gz-nvidia
|
2023-12-11 18:29:05 +03:00
|
|
|
|
|
|
|
ARG WSDIR=rbs_ws
|
2023-12-22 13:52:31 +03:00
|
|
|
ARG config_type=sim
|
2023-12-11 18:29:05 +03:00
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
ENV RBS_ASSEMBLY_DIR=/assembly
|
2023-12-14 12:00:35 +03:00
|
|
|
|
|
|
|
# COPY /home/bill-finger/assembly /assembly
|
2023-12-12 00:54:55 +03:00
|
|
|
ENV IGN_GAZEBO_RESOURCE_PATH=/${WSDIR}/install/rbs_simulation/share/rbs_simulation/
|
2023-12-11 18:29:05 +03:00
|
|
|
|
|
|
|
RUN apt update && apt install -y \
|
|
|
|
git \
|
|
|
|
python3-pip \
|
|
|
|
lsb-release \
|
2023-12-12 00:54:55 +03:00
|
|
|
wget \
|
|
|
|
gnupg
|
2023-12-11 18:29:05 +03:00
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
RUN pip install vcstool
|
2023-12-11 18:29:05 +03:00
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
WORKDIR /libs
|
|
|
|
RUN wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz &&\
|
|
|
|
tar -xf v3.11.3.tar.gz &&\
|
|
|
|
cd json-3.11.3 &&\
|
|
|
|
mkdir build &&\
|
|
|
|
cd build &&\
|
|
|
|
cmake .. &&\
|
|
|
|
make &&\
|
|
|
|
make install
|
2023-12-11 18:29:05 +03:00
|
|
|
|
2023-12-14 17:09:16 +03:00
|
|
|
RUN git clone https://gitlab.com/robossembler/forks/megapose6d.git &&\
|
|
|
|
cd megapose6d &&\
|
|
|
|
pip install bokeh joblib pin torch transforms3d webdataset omegaconf tqdm &&\
|
2023-12-19 08:11:39 +03:00
|
|
|
pip install -e .
|
2023-12-14 17:09:16 +03:00
|
|
|
RUN git clone https://github.com/thodan/bop_toolkit &&\
|
|
|
|
cd bop_toolkit &&\
|
2023-12-19 08:11:39 +03:00
|
|
|
pip install -e .
|
2023-12-14 17:09:16 +03:00
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
WORKDIR /${WSDIR}
|
2023-12-11 18:29:05 +03:00
|
|
|
|
|
|
|
COPY . src/robossembler-ros2/
|
|
|
|
|
2023-12-22 13:52:31 +03:00
|
|
|
RUN vcs import src/. < src/robossembler-ros2/rbs.${config_type}.repos
|
2023-12-14 17:09:16 +03:00
|
|
|
RUN apt update && rosdep update && \
|
2023-12-11 18:29:05 +03:00
|
|
|
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro humble
|
|
|
|
RUN . /opt/ros/humble/setup.sh && \
|
2023-12-22 13:52:31 +03:00
|
|
|
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
|