#include <gmock/gmock.h>
#include <realtime_tools/realtime_server_goal_handle.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/TwoIntsAction.h>
#include <chrono>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
Go to the source code of this file.
Classes | |
struct | ActionCallback |
struct | FeedbackCallback |
Typedefs | |
using | TwoIntsActionClient = actionlib::SimpleActionClient< actionlib::TwoIntsAction > |
using | TwoIntsActionServer = actionlib::ActionServer< actionlib::TwoIntsAction > |
Functions | |
const std::chrono::milliseconds | DELAY (250) |
int | main (int argc, char **argv) |
std::shared_ptr< TwoIntsActionServer > | make_server (const std::string &server_name, ActionCallback &callbacks) |
std::shared_ptr< TwoIntsActionClient > | send_goal (const std::string &server_name, FeedbackCallback *cb=nullptr) |
TEST (RealtimeServerGoalHandle, send_feedback) | |
TEST (RealtimeServerGoalHandle, set_aborted) | |
TEST (RealtimeServerGoalHandle, set_canceled) | |
TEST (RealtimeServerGoalHandle, set_succeeded) | |
bool | wait_for_result (std::shared_ptr< TwoIntsActionClient > ac) |
Variables | |
const size_t | ATTEMPTS = 10 |
using TwoIntsActionClient = actionlib::SimpleActionClient<actionlib::TwoIntsAction> |
Definition at line 41 of file realtime_server_goal_handle_tests.cpp.
using TwoIntsActionServer = actionlib::ActionServer<actionlib::TwoIntsAction> |
Definition at line 42 of file realtime_server_goal_handle_tests.cpp.
const std::chrono::milliseconds DELAY | ( | 250 | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 286 of file realtime_server_goal_handle_tests.cpp.
std::shared_ptr<TwoIntsActionServer> make_server | ( | const std::string & | server_name, |
ActionCallback & | callbacks | ||
) |
Definition at line 155 of file realtime_server_goal_handle_tests.cpp.
std::shared_ptr<TwoIntsActionClient> send_goal | ( | const std::string & | server_name, |
FeedbackCallback * | cb = nullptr |
||
) |
Definition at line 113 of file realtime_server_goal_handle_tests.cpp.
TEST | ( | RealtimeServerGoalHandle | , |
send_feedback | |||
) |
Definition at line 263 of file realtime_server_goal_handle_tests.cpp.
TEST | ( | RealtimeServerGoalHandle | , |
set_aborted | |||
) |
Definition at line 166 of file realtime_server_goal_handle_tests.cpp.
TEST | ( | RealtimeServerGoalHandle | , |
set_canceled | |||
) |
Definition at line 194 of file realtime_server_goal_handle_tests.cpp.
TEST | ( | RealtimeServerGoalHandle | , |
set_succeeded | |||
) |
Definition at line 235 of file realtime_server_goal_handle_tests.cpp.
bool wait_for_result | ( | std::shared_ptr< TwoIntsActionClient > | ac | ) |
Definition at line 140 of file realtime_server_goal_handle_tests.cpp.
const size_t ATTEMPTS = 10 |
Definition at line 44 of file realtime_server_goal_handle_tests.cpp.