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

I finally just ran ROS as a separate thread, then shared data between the updateLoop() and the ROS Node via volatile variables. Before doing this, however, I had to implement NodeMain in the starting class, and create a global volatile to hold the NodeConfiguration passed to the main method. Then I created and ran the ROS thread and passed the NodeConfiguration as mentioned in this post. This does the job just fine.