Ask Your Question
0

How to establish a TCP connection

asked 2016-12-21 11:28:50 -0500

Cayero gravatar image

updated 2016-12-21 11:30:52 -0500

I need to implement something that could send data from a not-ROS-running System(A) to a ROS-running System(Z) and later sending data from Z back to A using a TCP connection (using socket). I was looking for something on that page http://wiki.ros.org/ROS/TCPROS but it is not clear for me. Are there any tutorials/codes to launch a server on a ROS-running System and listening for clients? Are there any packages that allow to implement TCP communication?

edit retag flag offensive close merge delete

Comments

Hello, did you solve your problem? Now i have the same Problem. I really want to know what you have done. And i can not run the code from https://github.com/abhinavjain241/com... in ROS. I look forward to your answer.

bluesnow gravatar image bluesnow  ( 2019-04-26 08:53:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-21 12:46:43 -0500

ahendrix gravatar image

ROSTCP is an adapter that lets ROS send messages over TCP for topics; not for general use.

If you want a TCP socket, use the standard OS interface for creating a TCP socket.

There are many good tutorials about this online; here are a few:

edit flag offensive delete link more

Comments

Thank you for your answer, I'll on that. I found some helpful code. But client_node cannot connect to the server. https://github.com/abhinavjain241/com...

Cayero gravatar image Cayero  ( 2016-12-21 13:26:37 -0500 )edit

I'm not familiar with that project, and I can't help you with it. I'd recommend that you ask a new question or open an issue on that repository. For either, I recommend that you include the specifics of your issue such as the exact commands and exact output.

ahendrix gravatar image ahendrix  ( 2016-12-26 12:51:29 -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

2 followers

Stats

Asked: 2016-12-21 11:28:50 -0500

Seen: 4,067 times

Last updated: Dec 21 '16