diff --git a/Dockerfile.cpu b/Dockerfile.cpu index d81060e..ff0f561 100644 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -26,7 +26,8 @@ RUN apt-get update && \ # Build RUN source /opt/ros/$ROS_DISTRO/setup.bash && \ - colcon build + colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release && \ + rm -rf build log src # Git action version RUN echo $(cat /ros2_ws/src/zed_cpu/package.xml | grep '' | sed -r 's/.*([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') >> /version.txt diff --git a/Dockerfile.desktop b/Dockerfile.desktop index 346b98d..32f69fc 100755 --- a/Dockerfile.desktop +++ b/Dockerfile.desktop @@ -190,7 +190,7 @@ RUN echo $(cat /ros2_ws/src/zed-ros2-wrapper/zed_wrapper/package.xml | grep 'create_subscription( - topic_name, rclcpp::SensorDataQoS(), msg_callback); + topic_name, rclcpp::SensorDataQoS().keep_last(1), msg_callback); while (rclcpp::ok()) { rclcpp::spin_some(node);