Ask Your Question

Set socket to UDP in rospy

asked 2017-06-19 23:50:58 -0500

shantanu543 gravatar image

Can anyone tell me how to set UDP socket in service based client server code in ros ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-06-20 00:16:35 -0500

ahendrix gravatar image

rospy does not support the unreliable (UDP) transport. ( ).

If you want to use a raw UDP socket in your node to communicate with some other, non-ROS UDP device, you'll need to write raw sockets code (or find a different library to wrap your UDP sockets)

edit flag offensive delete link more


can you provide me some reference link or some github project where I can get idea about it.

shantanu543 gravatar imageshantanu543 ( 2017-06-20 01:25:37 -0500 )edit

an idea about what?

ahendrix gravatar imageahendrix ( 2017-06-20 02:36:22 -0500 )edit

I meant how to write raw sockets code.

shantanu543 gravatar imageshantanu543 ( 2017-06-20 03:43:11 -0500 )edit

I learned from one of my college courses; our textbook was Advanced Programming in the Unix Environment

ahendrix gravatar imageahendrix ( 2017-06-20 12:16:33 -0500 )edit

There are a bunch of tutorials online as well, but I haven't tried them so I can't recommend a specific tutorial. A google search for linux sockets programming turns up quite a few.

ahendrix gravatar imageahendrix ( 2017-06-20 12:18:17 -0500 )edit

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: 2017-06-19 23:50:58 -0500

Seen: 288 times

Last updated: Jun 20 '17