Skip to content

Conversation

ZhenshengLee
Copy link

Continue the work from PR #38 . Originally created by @jacobperron

Add policies to store the most recent received messages (based on their timestamp or on the order of arrival); These policies do not call any callback automatically. It is up to the programmer to call the call method when it is time to process the information.
These policies are meant to be used in networks where information is processed periodically.

The existing change requests in #38 are resolved.

UT passed, Please review @clalancette

@ZhenshengLee
Copy link
Author

@clalancette @gbiggs friendly ping for updates.

@@ -0,0 +1,131 @@
/*********************************************************************
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use hpp extension instead of h.

Comment on lines +43 to +47
#include "message_filters/connection.h"
#include "message_filters/message_traits.h"
#include "message_filters/null_types.h"
#include "message_filters/signal9.h"
#include "message_filters/synchronizer.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use hpp includes.

* It is up to the programmer to call #call when it is time to process the information. This policy class
* is meant to be used in networks where information is processed periodically.
*/
template<typename M0, typename M1, typename M2 = NullType, typename M3 = NullType, typename M4 = NullType,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use variadoc templates like in this PR https://github.com/ros2/message_filters/pull/93/files

In the others files as well

/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this correct? you can use 2024 and Open Robotics

header.stamp = stamp;
}
};
typedef std::shared_ptr<Msg> MsgPtr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include <memory>

ASSERT_TRUE(helper.e1_ == evt_2);
ASSERT_TRUE(helper.e2_ == evt_2_hl);
ASSERT_TRUE(helper.e3_ == evt_3);
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants