Skip to content

This a simple bridge that connect a ROS's system odometry topic to a UDP server trasmitting a JSON message

Notifications You must be signed in to change notification settings

plusangel/ros_udp_bridge

Repository files navigation

ROS UDP bridge

This repository engages a Poco net library with ROS to communicate with a non-ROS UDP client.

bring-up the server

To start the server, we need to use the following roslaung file:

roslaunch nautilus_udp_bridge bridge.launch

In case that we need a dummy odometry stub that is similar to the output of the robot_localization package (message type nav_msgs::Odometry), we can execute:

roslaunch nautilus_udp_bridge odometry_stub.launch

functionality

The bridge listens continiously the odometry topic. The client send 0 or 1 to enable transmition of UDP data or not.

testing

Use the standard linux tool nc like

nc -u 192.168.1.220 1234

if your host ip is that. After opening the connection, we send either 1 (to activate) or 0 (to shut down)

Or use the integrated dumb client by executing:

rosrun nautilus_udp_bridge dump_client

docker

Build the docker:

docker build . -t bridge:0.0.1

Run the docker:

docker run --network host -it bridge:0.0.1

built using

  • Ubuntu Linux 18 (Bionic)
  • ROS melodic
  • Poco library 1.8.0.1
  • Docker version 19.03.5

maintener

angelos plastropoulos

About

This a simple bridge that connect a ROS's system odometry topic to a UDP server trasmitting a JSON message

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published