Skip to content

Commit 3603354

Browse files
committed
[humble] arm_api2 working docker for UR and kinova
1 parent cf47623 commit 3603354

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

ros2/humble/arm_api2/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ RUN bash -c "source /opt/ros/humble/setup.sh; source ~/.bashrc; MAKEFLAGS="-j${n
134134
RUN 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
138140
RUN mkdir -p arm_ws/src
139141
WORKDIR /root/arm_ws/src
140142
RUN 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
148150
RUN git clone --single-branch --branch humble https://github.com/CroboticSolutions/Universal_Robots_ROS2_Driver.git
149151
RUN 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
152158
WORKDIR /root/arm_ws/
153159
RUN bash -c "source /opt/ros/humble/setup.bash; rosdep update && rosdep install --ignore-src --from-paths src -y"
154160
RUN bash -c "source /opt/ros/humble/setup.bash; colcon build --symlink-install"
155161
RUN 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

158164
CMD ["bash"]

0 commit comments

Comments
 (0)