SMACC2
Loading...
Searching...
No Matches
smacc2
src
smacc2
client_behaviors
cb_ros_stop_2.cpp
Go to the documentation of this file.
1
// Copyright 2021 RobosoftAI Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
/*****************************************************************************************************************
16
*
17
* Authors: Pablo Inigo Blasco, Brett Aldrich
18
*
19
******************************************************************************************************************/
20
#include <
smacc2/client_behaviors/cb_ros_stop_2.hpp
>
21
22
namespace
smacc2
23
{
24
namespace
client_behaviors
25
{
26
std::vector<std::future<std::string>>
CbRosStop2::detached_futures_
;
27
28
CbRosStop2::CbRosStop2
() {}
29
30
CbRosStop2::CbRosStop2
(pid_t
launchPid
) {}
31
32
CbRosStop2::~CbRosStop2
() {}
33
34
template
<
typename
TOrthogonal,
typename
TSourceObject>
35
void
onOrthogonalAllocation
()
36
{
37
smacc2::SmaccAsyncClientBehavior::onOrthogonalAllocation<TOrthogonal, TSourceObject>();
38
}
39
40
void
CbRosStop2::onEntry
()
41
{
42
this->
requiresClient
(
client_
);
43
client_
->
stop
();
44
}
45
46
}
// namespace client_behaviors
47
}
// namespace smacc2
cb_ros_stop_2.hpp
smacc2::ISmaccClientBehavior::requiresClient
void requiresClient(SmaccClientType *&storage)
Definition
smacc_client_behavior_impl.hpp:67
smacc2::client_bases::ClRosLaunch2::stop
void stop()
Definition
smacc_ros_launch_client_2.cpp:63
smacc2::client_behaviors::CbRosStop2::client_
smacc2::client_bases::ClRosLaunch2 * client_
Definition
cb_ros_stop_2.hpp:57
smacc2::client_behaviors::CbRosStop2::onEntry
void onEntry() override
Definition
cb_ros_stop_2.cpp:40
smacc2::client_behaviors::CbRosStop2::CbRosStop2
CbRosStop2()
Definition
cb_ros_stop_2.cpp:28
smacc2::client_behaviors::CbRosStop2::~CbRosStop2
virtual ~CbRosStop2()
Definition
cb_ros_stop_2.cpp:32
smacc2::client_behaviors::CbRosStop2::detached_futures_
static std::vector< std::future< std::string > > detached_futures_
Definition
cb_ros_stop_2.hpp:32
smacc2::client_behaviors::onOrthogonalAllocation
void onOrthogonalAllocation()
Definition
cb_ros_launch.cpp:43
smacc2
Definition
callback_counter_semaphore.hpp:30
smacc2::default_events::EvTopicMessage
Definition
smacc_default_events.hpp:155
Generated by
1.9.8