您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
677 B
22 行
677 B
FROM ros:foxy-ros-base
|
|
|
|
# Make ROS2 Workspace Dirss
|
|
RUN mkdir -p /home/dev_ws/src
|
|
|
|
# Copy ROS2 packages into workspace
|
|
COPY ./ros2_packages/ /home/dev_ws/src
|
|
|
|
#Check out ROS-TCP-Endpoint, ROS2 version
|
|
RUN git clone https://github.com/Unity-Technologies/ROS-TCP-Endpoint /home/dev_ws/src/ros_tcp_endpoint -b ROS2v0.5.0
|
|
|
|
# Reference script with commands to source workspace
|
|
COPY ./ros2_docker/source_ros.sh /home/dev_ws/source_ros.sh
|
|
|
|
# Change to workspace on sign in
|
|
RUN echo "cd home/dev_ws" >> ~/.bashrc
|
|
|
|
# Build the workspace
|
|
RUN cd home/dev_ws && . /opt/ros/foxy/setup.sh && colcon build
|
|
|
|
# Source the workspace on sign in
|
|
RUN echo ". install/local_setup.bash" >> ~/.bashrc
|