SMACC
Loading...
Searching...
No Matches
smacc
include
smacc
client_bases
smacc_action_client.h
Go to the documentation of this file.
1
/*****************************************************************************************************************
2
* ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3
* Authors: Pablo Inigo Blasco, Brett Aldrich
4
*
5
******************************************************************************************************************/
6
7
#pragma once
8
9
#include <
smacc/smacc_client.h
>
10
#include <
smacc/smacc_state_machine.h
>
11
#include <actionlib/client/simple_action_client.h>
12
13
namespace
smacc
14
{
15
namespace
client_bases
16
{
17
using namespace
actionlib;
18
19
// This class interface shows the basic set of methods that
20
// a SMACC "resource" or "plugin" Action Client has
21
class
ISmaccActionClient
:
public
ISmaccClient
22
{
23
public
:
24
ISmaccActionClient
();
25
26
// The destructor. This is called when the object is not
27
// referenced anymore by its owner
28
virtual
~ISmaccActionClient
();
29
30
// Gets the ros path of the action...
31
inline
std::string
getNamespace
()
const
32
{
33
return
name_
;
34
}
35
36
virtual
void
cancelGoal
() = 0;
37
38
virtual
SimpleClientGoalState
getState
() = 0;
39
40
protected
:
41
// The ros path where the action server is located
42
std::string
name_
;
43
};
44
}
// namespace smacc
45
}
// namespace smacc
smacc::ISmaccClient
Definition:
smacc_client.h:37
smacc::client_bases::ISmaccActionClient
Definition:
smacc_action_client.h:22
smacc::client_bases::ISmaccActionClient::~ISmaccActionClient
virtual ~ISmaccActionClient()
Definition:
smacc_action_client.cpp:17
smacc::client_bases::ISmaccActionClient::ISmaccActionClient
ISmaccActionClient()
Definition:
smacc_action_client.cpp:13
smacc::client_bases::ISmaccActionClient::getState
virtual SimpleClientGoalState getState()=0
smacc::client_bases::ISmaccActionClient::name_
std::string name_
Definition:
smacc_action_client.h:42
smacc::client_bases::ISmaccActionClient::cancelGoal
virtual void cancelGoal()=0
smacc::client_bases::ISmaccActionClient::getNamespace
std::string getNamespace() const
Definition:
smacc_action_client.h:31
smacc
Definition:
callback_counter_semaphore.h:17
smacc_client.h
smacc_state_machine.h
Generated by
1.9.5