From e0bdf59a27f7f024179e66cb94313354a7c924ba Mon Sep 17 00:00:00 2001 From: Paul Dandignac <pdandign@laas.fr> Date: Mon, 10 Sep 2018 13:22:34 +0200 Subject: [PATCH] Actualisation of _lastPublicated - otherwise it would trigger some exceptions "exception caught while running periodical commands (after)" --- src/ros_publish.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ros_publish.cpp b/src/ros_publish.cpp index 20c4b9d..49bf2d2 100644 --- a/src/ros_publish.cpp +++ b/src/ros_publish.cpp @@ -258,6 +258,8 @@ namespace dynamicgraph if (dt < rate_) return dummy; + lastPublicated_ = ros::Time::now(); + while(! mutex_.try_lock() ){} for (iterator_t it = bindedSignal_.begin (); it != bindedSignal_.end (); ++it) -- GitLab