ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

What is 'slop' in ApproximateTimeSynchronizer?

asked 2020-11-03 17:11:19 -0600

paul_shuvo gravatar image

updated 2020-11-03 23:52:30 -0600

jayess gravatar image

I'm going through the message filters in ros noetic and came across the following class.

class message_filters.ApproximateTimeSynchronizer(fs, queue_size, slop, allow_headerless=False, reset=False)

What does the parameter slop stand for?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-03 17:43:38 -0600

JackB gravatar image

From this documentation line 237:

"slop" parameter in the constructor that defines the delay (in seconds) with which messages can be synchronized

edit flag offensive delete link more


I would point to the Python API documentation for ApproximateTimeSynchronizer instead.

gvdhoorn gravatar image gvdhoorn  ( 2020-11-04 03:45:46 -0600 )edit

Very good point, thank you!

JackB gravatar image JackB  ( 2020-11-04 09:47:18 -0600 )edit

Hello, however this param is missing in the C++ API. May I know why?

BCJ gravatar image BCJ  ( 2021-06-14 04:49:55 -0600 )edit

Please see #q375572 (among others, such as #q284758). The comments point to setMaxIntervalDuration(..).

And in the future: please don't post comments with follow-up questions under questions with accepted answers from N years ago. Your comment will have almost 0 visibility.

gvdhoorn gravatar image gvdhoorn  ( 2021-06-14 04:52:33 -0600 )edit

Question Tools



Asked: 2020-11-03 17:11:19 -0600

Seen: 2,302 times

Last updated: Nov 03 '20