TCPROS for strings [closed]
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?
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?