Skip to content

tunchunairarko/ros_zeromq_tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ros ZeroMQ Tutorial

This tutorial shows how to use ZeroMQ with ROS for publishing and subscribing to messages. The following two languages are supported:

  • CPP
  • Python (see thanks section)

Dependencies

  1. ZeroMQ: Install ZeroMQ using following command:
    sudo apt-get install libzmq3-dev
    
    It should be easy to install newer versions of ZeroMQ, and this repository should be compatible with them. However, please note that this repository is only for demonstration purposes. Therefore, we have not tested it thoroughly. In such cases, please feel free to open a new issue to inform the changes to authors.

Compilation

  1. Make sure to download compelte repository. Use git clone or download zip as per convenience.
  2. Invoke catkin tool inside ros workspace i.e., catkin_make

Steps to run

  1. Start ROS Core by using the following command:
    roscore
    
  2. Invoke the publisher by using the following command:
    rosrun ros_zeromq_tutorial talker_zmq
    
    Alternatively, the python version of talker can be started by using the following command:
    rosrun ros_zeromq_tutorial talker_zmq.py
    
  3. The published data can be seen by using the following command:
    rosrun ros_zeromq_tutorial listener_zmq
    
    Alternatively, the python version of listener can be started by using the following command:
    rosrun ros_zeromq_tutorial listener_zmq.py
    

Issue

Please check here and create issues accordingly.

Thanks

The following authors are sincerely acknowledged for the improvements of this package:

Releases

No releases published

Packages

No packages published

Languages

  • CMake 62.9%
  • C++ 23.3%
  • Python 13.8%