From dba573b0dca52b68e6ad377049231040a625ee0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20S=C3=B6r=C3=B6s?= Date: Wed, 13 Sep 2023 14:24:08 +0200 Subject: [PATCH] fix src/k4a_ros_device.cpp rclcpp::Duration(double) rclcpp::Duration(double) does not exist in ROS humble --- src/k4a_ros_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k4a_ros_device.cpp b/src/k4a_ros_device.cpp index b17884fd..5a3726d3 100644 --- a/src/k4a_ros_device.cpp +++ b/src/k4a_ros_device.cpp @@ -768,7 +768,7 @@ k4a_result_t K4AROSDevice::getBodyMarker(const k4abt_body_t& body, std::shared_p // Set the lifetime to 0.25 to prevent flickering for even 5fps configurations. // New markers with the same ID will replace old markers as soon as they arrive. - marker_msg->lifetime = rclcpp::Duration(0.25); + marker_msg->lifetime = rclcpp::Duration::from_seconds(0.25); marker_msg->id = body.id * 100 + jointType; marker_msg->type = Marker::SPHERE;