#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>
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, singleCallback) | |
TEST (CallbackQueue, multipleCallbacksCallAvailable) | |
TEST (CallbackQueue, multipleCallbacksCallOne) | |
TEST (CallbackQueue, remove) | |
TEST (CallbackQueue, removeSelf) | |
TEST (CallbackQueue, recursive1) | |
TEST (CallbackQueue, recursive2) | |
TEST (CallbackQueue, recursive3) | |
TEST (CallbackQueue, recursive4) | |
TEST (CallbackQueue, threadedCallAvailable) | |
TEST (CallbackQueue, threadedCallOne) | |
TEST (CallbackQueue, recursiveTimer) | |
Variables | |
CallbackQueueInterface * | recursiveTimerQueue |
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.
typedef boost::shared_ptr<TimerRecursionCallback> TimerRecursionCallbackPtr |
Definition at line 373 of file test_callback_queue.cpp.
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 | , |
singleCallback | |||
) |
Definition at line 68 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallAvailable | |||
) |
Definition at line 89 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallOne | |||
) |
Definition at line 103 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
remove | |||
) |
Definition at line 119 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
removeSelf | |||
) |
Definition at line 158 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive1 | |||
) |
Definition at line 212 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive2 | |||
) |
Definition at line 224 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive3 | |||
) |
Definition at line 236 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive4 | |||
) |
Definition at line 248 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallAvailable | |||
) |
Definition at line 298 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallOne | |||
) |
Definition at line 314 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursiveTimer | |||
) |
Definition at line 375 of file test_callback_queue.cpp.
Definition at line 340 of file test_callback_queue.cpp.