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

How to create TCP socket on Robot to communicate with PC?

asked 2015-11-20 18:03:47 -0600

zxzhijia gravatar image

I'm a new user of ROS. I'm trying to sending commend from a PC to a robot. The reason is that only my PC has a CUDA capable video card. My neural network program will run on the PC's GPU and send its output as the commend to the robot. My desktop is using Win7.

I know generally that I need to use TCP socket to let them communicate. But I don't know how to do that in detail. Can someone help me? Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-26 13:36:30 -0600

Shawn Schaerer gravatar image

Just create a ROS client and Server and pass ROS messages between the two. It will take care of all of the low level socket details.

look at the ROS tutorials for help on that

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-20 18:03:47 -0600

Seen: 434 times

Last updated: Nov 26 '15