File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,17 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
54
54
# Install all ROS dependencies
55
55
RUN vcs import src < src/$PROJECT_NAME/ros2.repos
56
56
WORKDIR $USER_WORKSPACE
57
- # Skip for now while i fix
58
- # RUN sudo apt-get -q update \
59
- # && sudo apt-get -q -y upgrade \
60
- # && rosdep update \
61
- # && rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} \
62
- # && sudo apt-get autoremove -y \
63
- # && sudo apt-get clean -y \
64
- # && sudo rm -rf /var/lib/apt/lists/*
57
+ RUN sudo apt-get -q update \
58
+ && sudo apt-get -q -y upgrade \
59
+ && rosdep update \
60
+ && rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys nlohmann_json \
61
+ && sudo apt-get autoremove -y \
62
+ && sudo apt-get clean -y \
63
+ && sudo rm -rf /var/lib/apt/lists/*
65
64
66
65
RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" \
67
- # && colcon build \
68
- # && echo "source ${USER_WORKSPACE}/install/setup.bash" >> /home/$USERNAME/.bashrc \
66
+ && colcon build \
67
+ && echo "source ${USER_WORKSPACE}/install/setup.bash" >> /home/$USERNAME/.bashrc \
69
68
&& echo "if [ -f /opt/ros/${ROS_DISTRO}/setup.bash ]; then source /opt/ros/${ROS_DISTRO}/setup.bash; fi" >> /home/$USERNAME/.bashrc
70
69
71
70
WORKDIR $USER_WORKSPACE
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Then install the project dependencies using vcstool and rosdep
23
23
24
24
``` bash
25
25
vcs import src < src/waterlinked_dvl/ros2.repos && \
26
- rosdep install --from paths src -y --ignore-src
26
+ rosdep install --from paths src -y --ignore-src --skip-keys nlohmann_json
27
27
```
28
28
29
29
Finally, build the workspace using colcon
You can’t perform that action at this time.
0 commit comments