35 #include <gtest/gtest.h> 58 namespace message_traits
91 MsgPtr msg(boost::make_shared<Msg>());
146 int main(
int argc,
char **argv){
147 testing::InitGoogleTest(&argc, argv);
149 ros::init(argc, argv,
"time_sequencer_test");
153 return RUN_ALL_TESTS();
Sequences messages based on the timestamp of their header.
ros::Time getReceiptTime() const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void add(const EventType &evt)
void cb(const ros::MessageEvent< Msg const > &evt)
boost::shared_ptr< Msg const > MsgConstPtr
std_msgs::Header * header(M &m)
ros::MessageEvent< Msg const > event_
static void setNow(const Time &new_now)
static ros::Time value(const Msg &m)
TEST(TimeSequencer, simple)
void cb(const MsgConstPtr &)
boost::shared_ptr< Msg > MsgPtr
void connectInput(F &f)
Connect this filter's input to another filter's output.
ROSCPP_DECL void spinOnce()
int main(int argc, char **argv)
boost::shared_ptr< M > getMessage() const
Connection registerCallback(const C &callback)
Register a callback to be called when this filter has passed.