Skip to content

Commit

Permalink
pip install gtsam now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcmurray123 committed Nov 7, 2024
1 parent 00ce2d9 commit 438594a
Show file tree
Hide file tree
Showing 27 changed files with 2,479 additions and 12 deletions.
1 change: 1 addition & 0 deletions build/.built_by
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
colcon
Empty file added build/COLCON_IGNORE
Empty file.
1 change: 1 addition & 0 deletions build/cougars_localization/colcon_build.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
26 changes: 14 additions & 12 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,23 @@ RUN apt install -y ros-humble-ros-base
USER ${LABNAME}

# # Build and install gtsam (from source)
USER root
RUN apt update && apt install -y \
libboost-all-dev \
python3-pip
USER ${LABNAME}
# USER root
# RUN apt update && apt install -y \
# libboost-all-dev \
# python3-pip
# USER ${LABNAME}

RUN git clone --depth 1 --branch 4.2 https://github.com/borglab/gtsam.git
RUN mkdir /home/${LABNAME}/gtsam/build
# RUN git clone --depth 1 --branch 4.2 https://github.com/borglab/gtsam.git
# RUN mkdir /home/${LABNAME}/gtsam/build

WORKDIR /home/${LABNAME}/gtsam/build
RUN cmake .. -DGTSAM_BUILD_PYTHON=ON -DGTSAM_PYTHON_VERSION=3.10.12
RUN make python-install
WORKDIR /home/${LABNAME}
# WORKDIR /home/${LABNAME}/gtsam/build
# RUN cmake .. -DGTSAM_BUILD_PYTHON=ON -DGTSAM_PYTHON_VERSION=3.10.12
# RUN make python-install
# WORKDIR /home/${LABNAME}

# RUN rm -r gtsam

RUN rm -r gtsam
RUN pip install gtsam

# Install Eigen
RUN wget -O Eigen.zip https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
Expand Down
1 change: 1 addition & 0 deletions install/.colcon_install_layout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
isolated
Empty file added install/COLCON_IGNORE
Empty file.
Loading

0 comments on commit 438594a

Please sign in to comment.