#include <gtest/gtest.h>
#include <ros/callback_queue.h>
#include <ros/console.h>
#include <ros/timer.h>
#include <boost/atomic.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/bind/bind.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
Go to the source code of this file.
Classes | |
class | BlockingCallback |
class | ConditionObject |
class | CountingCallback |
class | ros::NodeHandle |
class | RaceConditionCallback |
class | RecursiveCallback |
class | SelfRemovingCallback |
class | TimerRecursionCallback |
Namespaces | |
ros | |
Typedefs | |
typedef boost::shared_ptr< BlockingCallback > | BlockingCallbackPtr |
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, multipleCallbacksCallAvailable) | |
TEST (CallbackQueue, multipleCallbacksCallOne) | |
TEST (CallbackQueue, raceConditionCallback) | |
TEST (CallbackQueue, recursive1) | |
TEST (CallbackQueue, recursive2) | |
TEST (CallbackQueue, recursive3) | |
TEST (CallbackQueue, recursive4) | |
TEST (CallbackQueue, recursiveTimer) | |
TEST (CallbackQueue, remove) | |
TEST (CallbackQueue, removeCallbackWhileExecuting) | |
TEST (CallbackQueue, removeSelf) | |
TEST (CallbackQueue, singleCallback) | |
TEST (CallbackQueue, threadedCallAvailable) | |
TEST (CallbackQueue, threadedCallOne) | |
Variables | |
CallbackQueueInterface * | recursiveTimerQueue |
Definition at line 205 of file test_callback_queue.cpp.
Definition at line 67 of file test_callback_queue.cpp.
Definition at line 289 of file test_callback_queue.cpp.
Definition at line 166 of file test_callback_queue.cpp.
Definition at line 444 of file test_callback_queue.cpp.
void callAvailableThread | ( | CallbackQueue * | queue, |
bool & | done | ||
) |
Definition at line 69 of file test_callback_queue.cpp.
void callOneThread | ( | CallbackQueue * | queue, |
bool & | done | ||
) |
Definition at line 377 of file test_callback_queue.cpp.
void dummyTimer | ( | const ros::TimerEvent & | ) |
Definition at line 407 of file test_callback_queue.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 547 of file test_callback_queue.cpp.
void recursiveTimer | ( | const ros::TimerEvent & | ) |
Definition at line 413 of file test_callback_queue.cpp.
size_t runThreadedTest | ( | const CountingCallbackPtr & | cb, |
const boost::function< void(CallbackQueue *, bool &)> & | threadFunc | ||
) |
Definition at line 339 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallAvailable | |||
) |
Definition at line 99 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallOne | |||
) |
Definition at line 113 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
raceConditionCallback | |||
) |
Definition at line 522 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive1 | |||
) |
Definition at line 291 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive2 | |||
) |
Definition at line 303 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive3 | |||
) |
Definition at line 315 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive4 | |||
) |
Definition at line 327 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursiveTimer | |||
) |
Definition at line 446 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
remove | |||
) |
Definition at line 129 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
removeCallbackWhileExecuting | |||
) |
Definition at line 209 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
removeSelf | |||
) |
Definition at line 168 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
singleCallback | |||
) |
Definition at line 78 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallAvailable | |||
) |
Definition at line 369 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallOne | |||
) |
Definition at line 385 of file test_callback_queue.cpp.
CallbackQueueInterface* recursiveTimerQueue |
Definition at line 411 of file test_callback_queue.cpp.