Go to the documentation of this file.
36 #include <gtest/gtest.h>
61 namespace serialization
66 template<
typename Stream>
71 template<
typename Stream>
85 template<
typename Stream>
90 template<
typename Stream>
106 params.
message->touched =
true;
118 TEST(PreDeserialize, preDeserialize)
132 EXPECT_TRUE(
g_msg->touched);
135 int main(
int argc,
char** argv)
137 testing::InitGoogleTest(&argc, argv);
141 return RUN_ALL_TESTS();
static void read(Stream &, IncomingMsg &)
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
boost::shared_ptr< IncomingMsg const > g_msg
TEST(PreDeserialize, preDeserialize)
ROSCPP_DECL void spinOnce()
static uint32_t serializedLength(const OutgoingMsg &)
void callback(const boost::shared_ptr< IncomingMsg const > &msg)
static void notify(const PreDeserializeParams< IncomingMsg > ¶ms)
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
boost::shared_ptr< M > message
int main(int argc, char **argv)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
static void read(Stream &, OutgoingMsg &)
static void write(Stream &, const IncomingMsg &)
static uint32_t serializedLength(const IncomingMsg &)
static void write(Stream &, const OutgoingMsg &)
ROS_IMPLEMENT_SIMPLE_TOPIC_TRAITS(IncomingMsg, "my_md5sum", "test_roscpp_serialization/IncomingMsg", "\n")
test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:57