#include <cb_wait_action_server.hpp>
Definition at line 33 of file cb_wait_action_server.hpp.
◆ CbWaitActionServer()
smacc2::client_behaviors::CbWaitActionServer::CbWaitActionServer |
( |
std::chrono::milliseconds |
timeout | ) |
|
◆ ~CbWaitActionServer()
smacc2::client_behaviors::CbWaitActionServer::~CbWaitActionServer |
( |
| ) |
|
|
virtual |
◆ onEntry()
void smacc2::client_behaviors::CbWaitActionServer::onEntry |
( |
| ) |
|
|
overridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 31 of file cb_wait_action_server.cpp.
32{
34 {
36 RCLCPP_INFO(
getLogger(),
"[CbWaitActionServer] waiting action server..");
37 bool found = client_base->wait_for_action_server(
timeout_);
38
39 if (found)
40 {
41 RCLCPP_INFO(
getLogger(),
"[CbWaitActionServer] action server already available");
43 }
44 else
45 {
46 RCLCPP_INFO(
getLogger(),
"[CbWaitActionServer] action server not found, timeout");
48 }
49 }
50 else
51 {
52 RCLCPP_INFO(
getLogger(),
"[CbWaitActionServer] there is no action client in this orthogonal");
54 }
55}
virtual rclcpp::Logger getLogger()
virtual std::shared_ptr< rclcpp_action::ClientBase > getClientBase()=0
ISmaccActionClient * client_
References client_, smacc2::client_bases::ISmaccActionClient::getClientBase(), smacc2::ISmaccClientBehavior::getLogger(), smacc2::SmaccAsyncClientBehavior::postFailureEvent(), smacc2::SmaccAsyncClientBehavior::postSuccessEvent(), and timeout_.
◆ onOrthogonalAllocation()
template<typename TOrthogonal , typename TSourceObject >
void smacc2::client_behaviors::CbWaitActionServer::onOrthogonalAllocation |
( |
| ) |
|
|
inline |
◆ client_
◆ timeout_
std::chrono::milliseconds smacc2::client_behaviors::CbWaitActionServer::timeout_ |
|
private |
The documentation for this class was generated from the following files: