SMACC2
Loading...
Searching...
No Matches
smacc2
src
smacc2
client_behaviors
cb_ros_stop_2.cpp
Go to the documentation of this file.
1
// Copyright 2025 Robosoft 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
void
CbRosStop2::onEntry
()
35
{
36
this->
requiresClient
(
client_
);
37
client_
->
stop
();
38
}
39
40
}
// namespace client_behaviors
41
}
// namespace smacc2
cb_ros_stop_2.hpp
smacc2::ISmaccClientBehavior::requiresClient
void requiresClient(SmaccClientType *&storage)
Definition
smacc_client_behavior_impl.hpp:74
smacc2::client_bases::ClRosLaunch2::stop
void stop()
Definition
smacc_ros_launch_client_2.cpp:58
smacc2::client_behaviors::CbRosStop2::client_
smacc2::client_bases::ClRosLaunch2 * client_
Definition
cb_ros_stop_2.hpp:55
smacc2::client_behaviors::CbRosStop2::~CbRosStop2
~CbRosStop2() override
Definition
cb_ros_stop_2.cpp:32
smacc2::client_behaviors::CbRosStop2::onEntry
void onEntry() override
Definition
cb_ros_stop_2.cpp:34
smacc2::client_behaviors::CbRosStop2::CbRosStop2
CbRosStop2()
Definition
cb_ros_stop_2.cpp:28
smacc2::client_behaviors::CbRosStop2::detached_futures_
static std::vector< std::future< std::string > > detached_futures_
Definition
cb_ros_stop_2.hpp:32
smacc2
Definition
callback_counter_semaphore.hpp:30
Generated by
1.12.0