Classes | Typedefs | Functions | Variables
realtime_server_goal_handle_tests.cpp File Reference
#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>
Include dependency graph for realtime_server_goal_handle_tests.cpp:

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< TwoIntsActionServermake_server (const std::string &server_name, ActionCallback &callbacks)
 
std::shared_ptr< TwoIntsActionClientsend_goal (const std::string &server_name, FeedbackCallback *cb=nullptr)
 
 TEST (RealtimeServerGoalHandle, set_aborted)
 
 TEST (RealtimeServerGoalHandle, set_canceled)
 
 TEST (RealtimeServerGoalHandle, set_succeeded)
 
 TEST (RealtimeServerGoalHandle, send_feedback)
 
bool wait_for_result (std::shared_ptr< TwoIntsActionClient > ac)
 

Variables

const size_t ATTEMPTS = 10
 

Typedef Documentation

◆ TwoIntsActionClient

using TwoIntsActionClient = actionlib::SimpleActionClient<actionlib::TwoIntsAction>

Definition at line 41 of file realtime_server_goal_handle_tests.cpp.

◆ TwoIntsActionServer

using TwoIntsActionServer = actionlib::ActionServer<actionlib::TwoIntsAction>

Definition at line 42 of file realtime_server_goal_handle_tests.cpp.

Function Documentation

◆ DELAY()

const std::chrono::milliseconds DELAY ( 250  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 286 of file realtime_server_goal_handle_tests.cpp.

◆ make_server()

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.

◆ send_goal()

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() [1/4]

TEST ( RealtimeServerGoalHandle  ,
set_aborted   
)

Definition at line 166 of file realtime_server_goal_handle_tests.cpp.

◆ TEST() [2/4]

TEST ( RealtimeServerGoalHandle  ,
set_canceled   
)

Definition at line 194 of file realtime_server_goal_handle_tests.cpp.

◆ TEST() [3/4]

TEST ( RealtimeServerGoalHandle  ,
set_succeeded   
)

Definition at line 235 of file realtime_server_goal_handle_tests.cpp.

◆ TEST() [4/4]

TEST ( RealtimeServerGoalHandle  ,
send_feedback   
)

Definition at line 263 of file realtime_server_goal_handle_tests.cpp.

◆ wait_for_result()

bool wait_for_result ( std::shared_ptr< TwoIntsActionClient ac)

Definition at line 140 of file realtime_server_goal_handle_tests.cpp.

Variable Documentation

◆ ATTEMPTS

const size_t ATTEMPTS = 10

Definition at line 44 of file realtime_server_goal_handle_tests.cpp.



realtime_tools
Author(s): Stuart Glaser
autogenerated on Mon Feb 28 2022 23:22:45