File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ RUN bash -c "source /opt/ros/humble/setup.sh; source ~/.bashrc; MAKEFLAGS="-j${n
134134RUN echo "source ${COLCON_WS}/install/setup.bash" >> ~/.bashrc
135135
136136# Install UR, Kinova, Robotiq gripper
137- RUN apt-get install -y libserial-dev
137+ RUN apt-get install -y \
138+ libserial-dev \
139+ ament-cmake
138140RUN mkdir -p arm_ws/src
139141WORKDIR /root/arm_ws/src
140142RUN git clone --single-branch --branch ros2 https://github.com/tylerjw/serial
@@ -148,11 +150,15 @@ RUN git clone --single-branch --branch humble https://github.com/CroboticSolutio
148150RUN git clone --single-branch --branch humble https://github.com/CroboticSolutions/Universal_Robots_ROS2_Driver.git
149151RUN git clone --single-branch --branch humble https://github.com/CroboticSolutions/Universal_Robots_ROS2_GZ_Simulation.git
150152
153+ WORKDIR /root/arm_ws
154+ ENV ROS_DISTRO humble
155+ RUN rosdep update && rosdep install --ignore-src --from-paths src -y
156+
151157# Build arm_ws
152158WORKDIR /root/arm_ws/
153159RUN bash -c "source /opt/ros/humble/setup.bash; rosdep update && rosdep install --ignore-src --from-paths src -y"
154160RUN bash -c "source /opt/ros/humble/setup.bash; colcon build --symlink-install"
155161RUN echo "source /root/arm_ws/install/setup.bash" >> ~/.bashrc
156- RUN echo "export GZ_SIM_RESOURCE_PATH=/root/arm_ws/install/robotiq_description/share" >> ~.bashrc
162+ RUN echo "export GZ_SIM_RESOURCE_PATH=/root/arm_ws/install/robotiq_description/share" >> ~/ .bashrc
157163
158164CMD ["bash" ]
You can’t perform that action at this time.
0 commit comments