Go to the documentation of this file.
35 #include <gtest/gtest.h>
73 c.
add(boost::make_shared<Msg>());
75 c.
add(boost::make_shared<Msg>());
89 c.
add(boost::make_shared<Msg>());
91 c.
add(boost::make_shared<Msg>());
103 c.
add(boost::make_shared<Msg>());
109 c.
add(boost::make_shared<Msg>());
122 p.
add(boost::make_shared<Msg>());
125 p.
add(boost::make_shared<Msg>());
137 c.
add(boost::make_shared<Msg>());
139 c.
add(boost::make_shared<Msg>());
176 c.
addFilter(boost::make_shared<PTDerived>());
181 int main(
int argc,
char **argv){
182 testing::InitGoogleTest(&argc, argv);
185 return RUN_ALL_TESTS();
void add(const MConstPtr &msg)
Add a message to the start of this chain.
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
void connectInput(F &f)
Connect this filter's input to another filter's output.
boost::shared_ptr< F > getFilter(size_t index) const
Retrieve a filter from this chain by index. Returns an empty shared_ptr if the index is greater than ...
Base class for Chain, allows you to store multiple chains in the same container. Provides filter retr...
boost::shared_ptr< Msg > MsgPtr
int main(int argc, char **argv)
boost::shared_ptr< F > getFilter(size_t index) const
Retrieve a filter from this chain by index. Returns an empty shared_ptr if the index is greater than ...
boost::shared_ptr< PassThrough< Msg > > PassThroughPtr
Connection registerCallback(const C &callback)
Register a callback to be called when this filter has passed.
Chains a dynamic number of simple filters together. Allows retrieval of filters by index after they a...
size_t addFilter(F *filter)
Add a filter to this chain, by bare pointer. Returns the index of that filter in the chain.
boost::shared_ptr< Msg const > MsgConstPtr
void add(const MConstPtr &msg)
message_filters
Author(s): Josh Faust, Vijay Pradeep, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:47