Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ROS packages
Building ROS nodes
Directory Explanation
include/ C++ include headers
src/ Source files
msg/ Folder containing Message (msg) types
srv/ Folder containing Service (srv) types
launch/ Folder containing launch files
package.xml The package manifest
CMakeLists.txt CMake build file
#include "ros/ros.h"
ros::NodeHandle nh;
ros::Rate loop_rate(10);
int count = 0;
while (ros::ok()) // Keep spinning loop until user presses Ctrl+C
{
ROS_INFO_STREAM("hello world" << count);
return 0;
}
• ros::Rate::sleep() method
– Sleeps for any leftover time in a cycle.
– Calculated from the last time sleep, reset, or the
constructor was called
• Restart Eclipse
• Then you will be able to use the standard
debugging tools in Eclipse