Skip to content

Forward messages between ROS1 clusters using ROS bridge.

Notifications You must be signed in to change notification settings

MisterOwlPT/msg_forwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS Bridge Message Forwarder

A client ROS node for the ROS Bridge.

Use this node whenever you need ROS nodes located in separated ROS clusters to communicate with each other and don't feel to alter the code of your application.

Make sure one ROS cluster has a ROS Bridge instance. Run an instance of this node in the other cluster.

Input

This node takes as input a YAML configuration file.

---
remote_topics:
  -
    topic: '/a'
    type: 'std_msgs/String'

local_topics:
  -
    topic: '/b'
    type: 'std_msgs/String'

Each message publish on a declared remote topic will be republished locally on a ROS topic with the same name.

Each message published on a declared local topic will be republished in the remote ROS cluster on a ROS topic with the same name.

Launch

The node can be configured using the following arguments:

  • rosbridge_host: the IP address of the remote ROS Bridge server. Default value is 127.0.0.1;

  • rosbridge_port: the network port to connect. Default value is 9090;

  • topics_file: path for the YAML configuration file (REQUIRED).

To launch this node execute the following command:

roslaunch msg_forwarder run.launch rosbridge_host:=<REMOTE_ROSBRIDGE_IP_ADDR> rosbridge_port:=<REMOTE_ROSBRIDGE_IP_PORT> topics_file:=<CONFIG_FILE_PATH>

About

Forward messages between ROS1 clusters using ROS bridge.

Topics

Resources

Stars

Watchers

Forks