Public Member Functions | List of all members
ControllerMock Class Reference
Inheritance diagram for ControllerMock:
Inheritance graph
[legend]

Public Member Functions

void initializeState ()
 
 MOCK_METHOD1 (starting, void(const ros::Time &))
 
 MOCK_METHOD1 (stopping, void(const ros::Time &))
 
 MOCK_METHOD1 (waiting, void(const ros::Time &))
 
 MOCK_METHOD1 (aborting, void(const ros::Time &))
 
 MOCK_METHOD2 (update, void(const ros::Time &, const ros::Duration &))
 
 MOCK_METHOD4 (initRequest, bool(hardware_interface::RobotHW *, ros::NodeHandle &, ros::NodeHandle &, ClaimedResources &))
 
- Public Member Functions inherited from controller_interface::ControllerBase
 ControllerBase ()=default
 
 ControllerBase (const ControllerBase &)=delete
 
 ControllerBase (ControllerBase &&)=delete
 
ControllerBaseoperator= (const ControllerBase &)=delete
 
ControllerBaseoperator= (ControllerBase &&)=delete
 
virtual ~ControllerBase ()=default
 
virtual void starting (const ros::Time &)
 This is called from within the realtime thread just before the first call to update. More...
 
virtual void update (const ros::Time &time, const ros::Duration &period)=0
 This is called periodically by the realtime thread when the controller is running. More...
 
virtual void stopping (const ros::Time &)
 This is called from within the realtime thread just after the last update call before the controller is stopped. More...
 
virtual void waiting (const ros::Time &)
 This is called from within the realtime thread while the controller is waiting to start. More...
 
virtual void aborting (const ros::Time &)
 This is called from within the realtime thread when the controller needs to be aborted. More...
 
bool isInitialized () const
 Check if the controller is initialized. More...
 
bool isRunning () const
 Check if the controller is running. More...
 
bool isStopped () const
 Check if the controller is stopped. More...
 
bool isWaiting () const
 Check if the controller is waiting. More...
 
bool isAborted () const
 Check if the controller is aborted. More...
 
void updateRequest (const ros::Time &time, const ros::Duration &period)
 Calls update only if this controller is running. More...
 
bool startRequest (const ros::Time &time)
 Calls starting unless this controller is just constructed. More...
 
bool stopRequest (const ros::Time &time)
 Calls stopping unless this controller is just constructed. More...
 
bool waitRequest (const ros::Time &time)
 Calls waiting unless this controller is just constructed. More...
 
bool abortRequest (const ros::Time &time)
 Calls abort unless this controller is just constructed. More...
 
virtual bool initRequest (hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh, ClaimedResources &claimed_resources)=0
 Request that the controller be initialized. More...
 

Additional Inherited Members

- Public Types inherited from controller_interface::ControllerBase
enum  {
  CONSTRUCTED, INITIALIZED, RUNNING, STOPPED,
  WAITING, ABORTED
}
 The current execution state of the controller. More...
 
typedef std::vector< hardware_interface::InterfaceResourcesClaimedResources
 
- Public Attributes inherited from controller_interface::ControllerBase
enum controller_interface::ControllerBase:: { ... }  state_ = {CONSTRUCTED}
 The current execution state of the controller. More...
 

Detailed Description

Definition at line 43 of file controller_base_test.cpp.

Member Function Documentation

◆ initializeState()

void ControllerMock::initializeState ( )
inline

Definition at line 47 of file controller_base_test.cpp.

◆ MOCK_METHOD1() [1/4]

ControllerMock::MOCK_METHOD1 ( starting  ,
void(const ros::Time &)   
)

◆ MOCK_METHOD1() [2/4]

ControllerMock::MOCK_METHOD1 ( stopping  ,
void(const ros::Time &)   
)

◆ MOCK_METHOD1() [3/4]

ControllerMock::MOCK_METHOD1 ( waiting  ,
void(const ros::Time &)   
)

◆ MOCK_METHOD1() [4/4]

ControllerMock::MOCK_METHOD1 ( aborting  ,
void(const ros::Time &)   
)

◆ MOCK_METHOD2()

ControllerMock::MOCK_METHOD2 ( update  ,
void(const ros::Time &, const ros::Duration &)   
)

◆ MOCK_METHOD4()

ControllerMock::MOCK_METHOD4 ( initRequest  ,
bool(hardware_interface::RobotHW *, ros::NodeHandle &, ros::NodeHandle &, ClaimedResources &)   
)

The documentation for this class was generated from the following file:


controller_interface
Author(s): Wim Meeussen
autogenerated on Mon Feb 28 2022 23:30:15