Changes to build on ROS humble.

This commit is contained in:
James Goppert
2022-07-25 22:41:10 -04:00
parent b81009b9f6
commit 97b5bb1785
8 changed files with 32 additions and 33 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ void RGBDSync::callback(
bool publishCompressed = true;
if (compressedRate_ > 0.0)
{
if ( lastCompressedPublished_ + rclcpp::Duration(1.0/compressedRate_) > now())
if ( lastCompressedPublished_ + rclcpp::Duration::from_seconds(1.0/compressedRate_) > now())
{
RCLCPP_DEBUG(this->get_logger(), "throttle last update at %f skipping", lastCompressedPublished_.seconds());
publishCompressed = false;