Ask Your Question
1

Zeromq in ROS as external library

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

bvbdort gravatar image

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

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://10.64.7.220:9000

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://10.64.7.220:9000");

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
0

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

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

Stats

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

Seen: 1,044 times

Last updated: Jun 20 '14