diff --git a/Dockerfile.hardware b/Dockerfile.hardware index a42a8a9..ba96bb0 100644 --- a/Dockerfile.hardware +++ b/Dockerfile.hardware @@ -81,9 +81,9 @@ RUN apt-get update && apt-get install -y \ pip3 install pyserial && \ MYDISTRO=${PREFIX:-ros}; MYDISTRO=${MYDISTRO//-/} && \ vcs import src < src/rosbot/rosbot_hardware.repos && \ - cp -r ros2_controllers/diff_drive_controller . && \ - cp -r ros2_controllers/imu_sensor_broadcaster . && \ - rm -rf ros2_controllers && \ + cp -r src/ros2_controllers/diff_drive_controller src/ && \ + cp -r src/ros2_controllers/imu_sensor_broadcaster src/ && \ + rm -rf src/ros2_controllers && \ # it is necessary to remove simulation - otherwise rosdep tries to install dependencies rm -r src/rosbot_gazebo && \ # without this line (using vulcanexus base image) rosdep init throws error: "ERROR: default sources list file already exists:"