Skip to content

Commit

Permalink
Build Release & Helthcheck decrease interval
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 6, 2023
1 parent a04267a commit 3a454fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<version>' | sed -r 's/.*<version>([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') >> /version.txt
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ RUN echo $(cat /ros2_ws/src/zed-ros2-wrapper/zed_wrapper/package.xml | grep '<ve
COPY ./ros_entrypoint.sh /

COPY ./healthcheck.sh /
HEALTHCHECK --interval=7s --timeout=2s --start-period=5s --retries=5 \
HEALTHCHECK --interval=5s --timeout=2s --start-period=5s --retries=4 \
CMD ["/healthcheck.sh"]

# Add Husarnet
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.jetson
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ RUN echo $(cat /ros2_ws/src/zed-ros2-wrapper/zed_wrapper/package.xml | grep '<ve
COPY ./ros_entrypoint.sh /

COPY ./healthcheck.sh /
HEALTHCHECK --interval=7s --timeout=2s --start-period=5s --retries=5 \
HEALTHCHECK --interval=5s --timeout=2s --start-period=5s --retries=4 \
CMD ["/healthcheck.sh"]

# Add Husarnet
Expand Down
2 changes: 1 addition & 1 deletion healthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {

std::cout << topic_name << std::endl;
auto sub = node->create_subscription<sensor_msgs::msg::Image>(
topic_name, rclcpp::SensorDataQoS(), msg_callback);
topic_name, rclcpp::SensorDataQoS().keep_last(1), msg_callback);

while (rclcpp::ok()) {
rclcpp::spin_some(node);
Expand Down

0 comments on commit 3a454fd

Please sign in to comment.