Reliable TCP bridge for ros data transfer in unstable network. It will send/receive the specified ROS topics in ../config/ros_topics.yaml It uses zmq socket(PUB/SUB mode), which reconnects others autonomously and supports 1-N pub-sub connection even with TCP protocol. More...
#include "bridge_node.hpp"
Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | deserialize_pub (uint8_t *buffer_ptr, size_t msg_size, int i) |
| int | main (int argc, char **argv) |
| void | recv_func (int i) |
| bool | send_freq_control (int i) |
| void | stop_recv (int i) |
| void | stop_send (int i) |
| template<typename T , int i> | |
| void | sub_cb (const T &msg) |
Reliable TCP bridge for ros data transfer in unstable network. It will send/receive the specified ROS topics in ../config/ros_topics.yaml It uses zmq socket(PUB/SUB mode), which reconnects others autonomously and supports 1-N pub-sub connection even with TCP protocol.
Core Idea: It would create the receving thread for each receiving ROS topic and send ROS messages in each sub_cb() callback.
BSD 3-Clause License
Definition in file bridge_node.cpp.
| void deserialize_pub | ( | uint8_t * | buffer_ptr, |
| size_t | msg_size, | ||
| int | i | ||
| ) |
Definition at line 100 of file bridge_node.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 183 of file bridge_node.cpp.
| void recv_func | ( | int | i | ) |
Definition at line 113 of file bridge_node.cpp.
| bool send_freq_control | ( | int | i | ) |
Definition at line 43 of file bridge_node.cpp.
| void stop_recv | ( | int | i | ) |
Definition at line 173 of file bridge_node.cpp.
| void stop_send | ( | int | i | ) |
Definition at line 165 of file bridge_node.cpp.
| void sub_cb | ( | const T & | msg | ) |
Definition at line 65 of file bridge_node.cpp.