ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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
1

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

ahendrix gravatar image

rospy does not support the unreliable (UDP) transport. ( http://answers.ros.org/question/28322... ).

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

Comments

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

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

an idea about what?

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

I meant how to write raw sockets code.

shantanu543 gravatar image shantanu543  ( 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 image ahendrix  ( 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 image ahendrix  ( 2017-06-20 12:18:17 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 632 times

Last updated: Jun 20 '17