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

Revision history [back]

click to hide/show revision 1
initial version

Hi guys,

thanks for the answers, it's really appreciated! Like Eric Perko, we're using the cRIO for low-level and x86 PCs for high-level. I checked out the examples you posted (without understanding much of it... :P), but ended up just making a simple hack to call a simple UDP client and server through shell from ROS (specifically from the listener.cpp from the ROS tutorials), without having ROS handling the UDP directly.

It's rather inelegant and I don't recommend it for anyone with a jot more skills, but for those interested, the relevant additional code is simply:

std::stringstream stream;
stream <<"./udp/client localhost [%s]" << msg->data.c_str();
system(stream.str().c_str());

Where msg->data.c_str() contains the message to be send.

Hi guys,

thanks for the answers, it's really appreciated! Like Eric Perko, we're using the cRIO for low-level and x86 PCs for high-level. I checked out the examples you posted (without understanding much of it... :P), but ended up just making a simple hack to call a simple UDP client and server through shell from ROS (specifically from the listener.cpp from the ROS tutorials), without having ROS handling the UDP directly.

It's rather inelegant and I don't recommend it for anyone with a jot more skills, but for those interested, the relevant additional code is simply:

std::stringstream stream;
stream <<"./udp/client localhost [%s]" << msg->data.c_str();
system(stream.str().c_str());

Where msg->data.c_str() contains the message to be send.send. Note this is only for sending messages from high to low.

Hi guys,

thanks for the answers, it's really appreciated! Like Eric Perko, we're using the cRIO for low-level and x86 PCs for high-level. I checked out the examples you posted (without understanding much of it... :P), but ended up just making a simple hack to call a simple UDP client and server through shell from ROS (specifically from the listener.cpp from the ROS tutorials), without having ROS handling the UDP directly.

It's rather inelegant and I don't recommend it for anyone with a jot more skills, but for those interested, the relevant additional code is simply:

std::stringstream stream;
stream <<"./udp/client localhost [%s]" << msg->data.c_str();
system(stream.str().c_str());

Where msg->data.c_str() contains the message to be send. send, and udp/client is the standalone udp client (which needs to be built before hand). Note this is only for sending messages from high to low.low, but the other way is quite similar.