$search

test_callback_queue.cpp File Reference

#include <gtest/gtest.h>
#include <ros/callback_queue.h>
#include <ros/console.h>
#include <ros/timer.h>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
Include dependency graph for test_callback_queue.cpp:

Go to the source code of this file.

Classes

class  CountingCallback
class  ros::NodeHandle
 roscpp's interface for creating subscribers, publishers, etc. More...
class  RecursiveCallback
class  SelfRemovingCallback
class  TimerRecursionCallback

Namespaces

namespace  ros

Typedefs

typedef boost::shared_ptr
< CountingCallback
CountingCallbackPtr
typedef boost::shared_ptr
< RecursiveCallback
RecursiveCallbackPtr
typedef boost::shared_ptr
< SelfRemovingCallback
SelfRemovingCallbackPtr
typedef boost::shared_ptr
< TimerRecursionCallback
TimerRecursionCallbackPtr

Functions

void callAvailableThread (CallbackQueue *queue, bool &done)
void callOneThread (CallbackQueue *queue, bool &done)
void dummyTimer (const ros::TimerEvent &)
int main (int argc, char **argv)
void recursiveTimer (const ros::TimerEvent &)
size_t runThreadedTest (const CountingCallbackPtr &cb, const boost::function< void(CallbackQueue *, bool &)> &threadFunc)
 TEST (CallbackQueue, recursiveTimer)
 TEST (CallbackQueue, threadedCallOne)
 TEST (CallbackQueue, threadedCallAvailable)
 TEST (CallbackQueue, recursive4)
 TEST (CallbackQueue, recursive3)
 TEST (CallbackQueue, recursive2)
 TEST (CallbackQueue, recursive1)
 TEST (CallbackQueue, removeSelf)
 TEST (CallbackQueue, remove)
 TEST (CallbackQueue, multipleCallbacksCallOne)
 TEST (CallbackQueue, multipleCallbacksCallAvailable)
 TEST (CallbackQueue, singleCallback)

Variables

CallbackQueueInterfacerecursiveTimerQueue

Typedef Documentation

typedef boost::shared_ptr<CountingCallback> CountingCallbackPtr

Definition at line 66 of file test_callback_queue.cpp.

typedef boost::shared_ptr<RecursiveCallback> RecursiveCallbackPtr

Definition at line 210 of file test_callback_queue.cpp.

typedef boost::shared_ptr<SelfRemovingCallback> SelfRemovingCallbackPtr

Definition at line 156 of file test_callback_queue.cpp.

Definition at line 373 of file test_callback_queue.cpp.


Function Documentation

void callAvailableThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 260 of file test_callback_queue.cpp.

void callOneThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 306 of file test_callback_queue.cpp.

void dummyTimer ( const ros::TimerEvent  ) 

Definition at line 336 of file test_callback_queue.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 401 of file test_callback_queue.cpp.

void recursiveTimer ( const ros::TimerEvent  ) 

Definition at line 342 of file test_callback_queue.cpp.

size_t runThreadedTest ( const CountingCallbackPtr cb,
const boost::function< void(CallbackQueue *, bool &)> &  threadFunc 
)

Definition at line 268 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursiveTimer   
)

Definition at line 375 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallOne   
)

Definition at line 314 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallAvailable   
)

Definition at line 298 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive4   
)

Definition at line 248 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive3   
)

Definition at line 236 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive2   
)

Definition at line 224 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive1   
)

Definition at line 212 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
removeSelf   
)

Definition at line 158 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
remove   
)

Definition at line 119 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallOne   
)

Definition at line 103 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallAvailable   
)

Definition at line 89 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
singleCallback   
)

Definition at line 68 of file test_callback_queue.cpp.


Variable Documentation

Definition at line 340 of file test_callback_queue.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


roscpp
Author(s): Morgan Quigley mquigley@cs.stanford.edu, Josh Faust jfaust@willowgarage.com, Brian Gerkey gerkey@willowgarage.com, Troy Straszheim straszheim@willowgarage.com
autogenerated on Sat Mar 2 13:23:21 2013