timers.cpp File Reference

#include "ros/ros.h"
Include dependency graph for timers.cpp:

Go to the source code of this file.

Functions

void callback1 (const ros::TimerEvent &e)
void callback2 (const ros::TimerEvent &e)
int main (int argc, char **argv)

Function Documentation

void callback1 ( const ros::TimerEvent &  e  ) 

This tutorial demonstrates the use of timer callbacks.

Definition at line 35 of file timers.cpp.

void callback2 ( const ros::TimerEvent &  e  ) 

Definition at line 40 of file timers.cpp.

int main ( int  argc,
char **  argv 
)

Timers allow you to get a callback at a specified rate. Here we create two timers at different rates as a demonstration.

Definition at line 45 of file timers.cpp.

 All Classes Namespaces Files Functions Variables Typedefs


roscpp_tutorials
Author(s): Morgan Quigley
autogenerated on Fri Jan 11 09:54:50 2013