TCPROS for strings [closed]

asked 2012-07-23 09:03:33 -0600

allenh1 gravatar image

updated 2012-07-23 10:56:06 -0600

I'm sure there is a package out there that takes a regular expression for a TCP message and converts it to a rostopic. Anyone know of one? I know that TCPROS exists, so I figured there would be something for it to listen to other TCP commands.

What I'm going fore is a node that listens for a standard TCP message and uses a regular expression to convert the message into a ROS message (string).

QTcpSocket *pClientSocket = qobject_cast<QTcpSocket*>(sender());
const QRegExp rxlen("^(\\w+)\\s+(-*\\d*\\.?\\d*)\\s+(-*\\d*\\.?\\d*)$");
QString text(pClientSocket->read(length));

The code above is the current code for this. The issue: this code works for player. The reason I need this kind of message is as follows: The lab down the hall that uses the robots does not program the robots (lame, right?), they program in a Python library called Vizard. The robot communication solution was to use a TCP client. Any tips?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2012-09-15 14:14:46



Can you be a little more specific? What exactly are you trying to achieve? TCPROS is just the default transport for topics. What do you mean with TCP message?

Lorenz gravatar image Lorenz  ( 2012-07-23 10:51:33 -0600 )edit