SMACC2
smacc2_performance_tools
performance_tests
sm_atomic_subscribers_performance_test
include
sm_atomic_subscribers_performance_test
orthogonals
or_subscriber.hpp
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
#include <
smacc2/client_bases/smacc_subscriber_client.hpp
>
16
#include <
smacc2/smacc.hpp
>
17
18
#include <std_msgs/msg/int16.hpp>
19
20
namespace
sm_atomic_subscribers_performance_test
21
{
22
using namespace
smacc2::client_bases
;
23
24
class
OrSubscriber
:
public
smacc2::Orthogonal
<OrSubscriber>
25
{
26
public
:
27
void
onInitialize
()
override
28
{
29
this->createClient<SmaccSubscriberClient<std_msgs::msg::Int16>>(
"temperature"
);
30
}
31
};
32
}
// namespace sm_atomic_subscribers_performance_test
sm_atomic_subscribers_performance_test::OrSubscriber
Definition:
or_subscriber.hpp:25
sm_atomic_subscribers_performance_test::OrSubscriber::onInitialize
void onInitialize() override
Definition:
or_subscriber.hpp:27
smacc2::Orthogonal
Definition:
smacc_orthogonal_impl.hpp:164
sm_atomic_subscribers_performance_test
Definition:
or_subscriber.hpp:21
smacc2::client_bases
Definition:
smacc_action_client.hpp:31
smacc.hpp
smacc_subscriber_client.hpp
Generated by
1.9.4