Skip to content

Commit e0bdf59

Browse files
pdandignacolivier-stasse
authored andcommitted
Actualisation of _lastPublicated - otherwise it would trigger some exceptions "exception caught while running periodical commands (after)"
1 parent 64689b8 commit e0bdf59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ros_publish.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ namespace dynamicgraph
258258
if (dt < rate_)
259259
return dummy;
260260

261+
lastPublicated_ = ros::Time::now();
262+
261263
while(! mutex_.try_lock() ){}
262264
for (iterator_t it = bindedSignal_.begin ();
263265
it != bindedSignal_.end (); ++it)

0 commit comments

Comments
 (0)