ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
1

What is 'slop' in ApproximateTimeSynchronizer?

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

paul_shuvo gravatar image

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

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
2

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

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

Comments

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

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

Very good point, thank you!

JackB gravatar image JackB  ( 2020-11-04 09:47:18 -0500 )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 -0500 )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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 1,038 times

Last updated: Nov 03 '20