ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Zeromq in ROS as external library

asked 2014-06-18 09:02:57 -0600

bvbdort gravatar image

updated 2014-06-18 09:03:29 -0600

Hi all,

I am trying to use zeromq in ros as external library to communicate with other device(no ros on this device).

For testing i wrote a rosnode with zeromq reciever and zeromq sender with zeromq sample code and ran both on my pc .

i am using port tcp://

If i start rosnode first, zeromq sender not able to connect with and exits with below error.

terminate called after throwing an instance of 'zmq::error_t'
  what():  Address already in use
Aborted (core dumped)

If i start zeromq sender first, rosnode not able to connect with and exits with error at

zmq_bind (responder, "tcp://");

I went through ros networking little but i couldn't figure it out why its not working.

thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-20 04:37:28 -0600

bvbdort gravatar image

It was working well now, mistake was i was using trying to bind from both rosnode with zeromq reciever and zeromq sender i.e zmq_bind() causing problem. I modified as per sample code in zeromq and its working well.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-06-18 09:02:57 -0600

Seen: 1,448 times

Last updated: Jun 20 '14