Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

fix src/k4a_ros_device.cpp rclcpp::Duration(double) #275

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/k4a_ros_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down