Go to the documentation of this file.
   56 #ifndef __SIM_LOC_COLA_TRANSMITTER_H_INCLUDED 
   57 #define __SIM_LOC_COLA_TRANSMITTER_H_INCLUDED 
   78     ColaTransmitter(
const std::string & server_adress = 
"192.168.0.1", 
int tcp_port = 2111, 
double default_receive_timeout = 1);
 
   95     virtual bool close(
void);
 
  103     virtual bool send(
const std::vector<uint8_t> & 
data, ROS::Time & send_timestamp);
 
  112     static bool send(boost::asio::ip::tcp::socket & socket, 
const std::vector<uint8_t> & 
data, ROS::Time & send_timestamp);
 
  121     virtual bool receive(std::vector<uint8_t> & telegram, 
double timeout, ROS::Time & receive_timestamp);
 
  131     static bool receive(boost::asio::ip::tcp::socket & socket, std::vector<uint8_t> & telegram, 
double timeout,ROS::Time & receive_timestamp);
 
  156     virtual bool waitPopResponse(std::vector<uint8_t> & telegram, 
double timeout, ROS::Time & receive_timestamp);
 
  179     static bool dataEndWithETX(
const std::vector<uint8_t> & data, 
const std::vector<uint8_t> & etx);
 
  202 #endif // __SIM_LOC_COLA_TRANSMITTER_H_INCLUDED 
  
sick_scan::ClientSocket m_tcp_socket
tcp socket connected to the localization controller
virtual bool startReceiverThread(void)
virtual bool connect(void)
virtual ~ColaTransmitter()
double m_receive_timeout
default timeout in seconds for receive functions
int m_tcp_port
tcp port of the localization controller, default: 2111 for command requests and 2112 for command resp...
virtual bool stopReceiverThread(void)
boost::asio::io_service m_ioservice
boost io service for tcp connections
void runReceiverThreadCb(void)
std::vector< uint8_t > telegram_data
received telegram_data (Cola-Ascii or Cola-Binary)
ROS::Time receive_timestamp
receive timestamp in seconds (ros timestamp immediately after first response byte received)
virtual bool send(const std::vector< uint8_t > &data, ROS::Time &send_timestamp)
ColaTransmitter(const std::string &server_adress="192.168.0.1", int tcp_port=2111, double default_receive_timeout=1)
boost::thread * m_receiver_thread
thread to receive responses from localization server
static bool dataEndWithETX(const std::vector< uint8_t > &data, const std::vector< uint8_t > &etx)
virtual bool waitPopResponse(std::vector< uint8_t > &telegram, double timeout, ROS::Time &receive_timestamp)
virtual bool receive(std::vector< uint8_t > &telegram, double timeout, ROS::Time &receive_timestamp)
sick_scan::FifoBuffer< ColaResponseContainer, boost::mutex > m_response_fifo
fifo buffer for receiver thread for responses from localization server
bool m_receiver_thread_running
true: m_receiver_thread is running, otherwise false
std::string m_server_adress
ip adress of the localization controller, default: 192.168.0.1
sick_scan
Author(s): Michael Lehning 
, Jochen Sprickerhof , Martin Günther 
autogenerated on Thu Sep 8 2022 02:30:19