Classes | Functions | Variables
test/planner_action.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/server/simple_action_server.h>
#include <mbf_abstract_core/abstract_planner.h>
#include <mbf_msgs/GetPathAction.h>
#include <mbf_abstract_nav/planner_action.h>
#include <mbf_abstract_nav/abstract_planner_execution.h>
#include <boost/chrono.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thread/condition.hpp>
#include <string>
Include dependency graph for test/planner_action.cpp:

Go to the source code of this file.

Classes

struct  MockedActionServer
 
struct  MockPlanner
 
struct  PlannerActionFixture
 

Functions

 ACTION (SleepAndFail)
 
 ACTION_P (Notify, cv)
 
 EXPECT_CALL (action_server, publishResult(_, Field(&mbf_msgs::GetPathResult::outcome, Eq(mbf_msgs::GetPathResult::SUCCESS)))) .Times(1) .WillOnce(Notify(&done_condition_))
 
 for (size_t ii=0;ii !=path.size();++ii)
 
int main (int argc, char **argv)
 
EXPECT_CALLplanner (_, _, _, _, _, _)).WillOnce(DoAll(SetArgReferee< 3 >(path), Return(0))
 
 TEST_F (PlannerActionFixture, emptyPath)
 
 TEST_F (PlannerActionFixture, noPathFound)
 
 TEST_F (PlannerActionFixture, noRobotPose)
 
 TEST_F (PlannerActionFixture, patExceeded)
 
 TEST_F (PlannerActionFixture, tfError)
 

Variables

goal goal start_pose header frame_id = goal->goal.target_pose.header.frame_id = global_frame
 
goal goal use_start_pose = true
 

Function Documentation

◆ ACTION()

ACTION ( SleepAndFail  )

Definition at line 246 of file test/planner_action.cpp.

◆ ACTION_P()

ACTION_P ( Notify  ,
cv   
)

Definition at line 80 of file test/planner_action.cpp.

◆ EXPECT_CALL()

EXPECT_CALL ( action_server  ,
publishResult(_, Field(&mbf_msgs::GetPathResult::outcome, Eq(mbf_msgs::GetPathResult::SUCCESS)))   
) &

◆ for()

for ( size_t  ii = 0; ii != path.size(); ++ii)

Definition at line 174 of file test/planner_action.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 272 of file test/planner_action.cpp.

◆ planner()

EXPECT_CALL* planner ( ,
,
,
,
,
 
)

◆ TEST_F() [1/5]

TEST_F ( PlannerActionFixture  ,
emptyPath   
)

Definition at line 148 of file test/planner_action.cpp.

◆ TEST_F() [2/5]

TEST_F ( PlannerActionFixture  ,
noPathFound   
)

Definition at line 228 of file test/planner_action.cpp.

◆ TEST_F() [3/5]

TEST_F ( PlannerActionFixture  ,
noRobotPose   
)

Definition at line 212 of file test/planner_action.cpp.

◆ TEST_F() [4/5]

TEST_F ( PlannerActionFixture  ,
patExceeded   
)

Definition at line 252 of file test/planner_action.cpp.

◆ TEST_F() [5/5]

TEST_F ( PlannerActionFixture  ,
tfError   
)

Definition at line 192 of file test/planner_action.cpp.

Variable Documentation

◆ frame_id

goal goal start_pose header frame_id = goal->goal.target_pose.header.frame_id = global_frame

Definition at line 182 of file test/planner_action.cpp.

◆ use_start_pose

goal goal use_start_pose = true

Definition at line 181 of file test/planner_action.cpp.



mbf_abstract_nav
Author(s): Sebastian Pütz
autogenerated on Wed Mar 2 2022 00:33:47