Go to the documentation of this file.
35 #ifndef ROSCPP_SERVICE_SERVER_LINK_H
36 #define ROSCPP_SERVICE_SERVER_LINK_H
38 #include "ros/common.h"
40 #include <boost/thread/condition_variable.hpp>
41 #include <boost/thread/mutex.hpp>
42 #include <boost/shared_array.hpp>
43 #include <boost/enable_shared_from_this.hpp>
44 #include <boost/thread.hpp>
59 class ROSCPP_DECL
ServiceServerLink :
public boost::enable_shared_from_this<ServiceServerLink>
81 typedef std::map<std::string, std::string>
M_string;
82 ServiceServerLink(
const std::string& service_name,
bool persistent,
const std::string& request_md5sum,
const std::string& response_md5sum,
const M_string& header_values);
124 void processNextCall();
132 void cancelCall(
const CallInfoPtr& info);
160 #endif // ROSCPP_SERVICE_SERVER_LINK_H
bool call(const std::string &service_name, MReq &req, MRes &res)
Invoke an RPC service.
ConnectionPtr connection_
const std::string & getRequestMD5Sum() const
SerializedMessage * resp_
boost::mutex finished_mutex_
const std::string & getResponseMD5Sum() const
std::string service_name_
const ConnectionPtr & getConnection() const
const std::string & getServiceName() const
boost::condition_variable finished_condition_
boost::shared_ptr< ServiceServerLink > ServiceServerLinkPtr
std::map< std::string, std::string > M_string
std::string exception_string_
std::queue< CallInfoPtr > Q_CallInfo
bool isPersistent() const
Returns whether this is a persistent connection.
boost::shared_ptr< Connection > ConnectionPtr
boost::shared_ptr< CallInfo > CallInfoPtr
std::string response_md5sum_
boost::thread::id caller_thread_id_
ROSCONSOLE_DECL void initialize()
CallInfoPtr current_call_
Handles a connection to a service. If it's a non-persistent client, automatically disconnects when it...
M_string extra_outgoing_header_values_
boost::mutex call_queue_mutex_
std::string request_md5sum_
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:35