Go to the documentation of this file.
28 #ifndef ROSCPP_SUBSCRIPTION_CALLBACK_HELPER_H
29 #define ROSCPP_SUBSCRIPTION_CALLBACK_HELPER_H
42 #include <boost/type_traits/add_const.hpp>
43 #include <boost/type_traits/remove_const.hpp>
44 #include <boost/type_traits/remove_reference.hpp>
45 #include <boost/type_traits/is_base_of.hpp>
46 #include <boost/utility/enable_if.hpp>
47 #include <boost/make_shared.hpp>
75 virtual const std::type_info& getTypeInfo() = 0;
76 virtual bool isConst() = 0;
86 template<
typename P,
typename Enabled =
void>
93 typedef typename boost::add_const<NonConstType>::type
ConstType;
115 return message_traits::hasHeader<typename ParameterAdapter<P>::Message>();
120 namespace ser = serialization;
130 ser::PreDeserializeParams<NonConstType> predes_params;
131 predes_params.message = msg;
133 ser::PreDeserialize<NonConstType>::notify(predes_params);
136 ser::deserialize(stream, *msg);
164 #endif // ROSCPP_SUBSCRIPTION_CALLBACK_HELPER_H
virtual ~SubscriptionCallbackHelper()
SubscriptionCallbackHelperT(const Callback &callback, const CreateFunction &create=DefaultMessageCreator< NonConstType >())
boost::shared_ptr< SubscriptionCallbackHelper > SubscriptionCallbackHelperPtr
bool call(const std::string &service_name, MReq &req, MRes &res)
Invoke an RPC service.
void deserialize(Stream &stream, boost::array< T, N > &t)
ParameterAdapter< P >::Event Event
virtual void call(SubscriptionCallbackHelperCallParams ¶ms)
void setCreateFunction(const CreateFunction &create)
ParameterAdapter< P > Adapter
Concrete generic implementation of SubscriptionCallbackHelper for any normal message type....
Generally not for outside use. Adapts a function parameter type into the message type,...
MessageEvent< void const > event
boost::add_const< NonConstType >::type ConstType
virtual VoidConstPtr deserialize(const SubscriptionCallbackHelperDeserializeParams ¶ms)
ParameterAdapter< P >::Message NonConstType
boost::shared_ptr< void const > VoidConstPtr
boost::shared_ptr< ConstType > ConstTypePtr
boost::remove_reference< typename boost::remove_const< M >::type >::type Message
static const bool is_const
boost::function< NonConstTypePtr()> CreateFunction
boost::function< void(typename Adapter::Parameter)> Callback
Abstract base class used by subscriptions to deal with concrete message types through a common interf...
boost::shared_ptr< M_string > connection_header
virtual const std::type_info & getTypeInfo()
boost::shared_ptr< NonConstType > NonConstTypePtr
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:36