ROS subscriber integration
Hi,
I have a 32-bit C program that sends data over UDP to a windows GUI. I need to integrate a simple ros subscriber node into the program to subscribe to a node publishing a joy message. I've had no luck following the tutorials or methods I've been able to find. What is the normal method for doing such a task?
I've checked a couple of Q/A already, such as: http://answers.ros.org/question/3277/wrap-existing-crrcsim-project-in-ros with no luck.
EDIT:
After making a new project, adding the file to the CMakeLists.txt, and adding ros.h to the c program, I get the following error:
In file included from /opt/ros/electric/stacks/ros_comm/utilities/rostime/include/ros/time.h:53:0, from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/ros.h:38, from .../ros_workspace/project_1/src/project_1.c:26:
/opt/ros/electric/stacks/ros_comm/utilities/cpp_common/include/ros/platform.h:55:18:
fatal error: string: No such file or directory