SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
cl_px4_mr
include
cl_px4_mr
cl_px4_mr.hpp
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
#pragma once
16
17
#include <
smacc2/smacc.hpp
>
18
19
#include <
cl_px4_mr/components/cp_goal_checker.hpp
>
20
#include <
cl_px4_mr/components/cp_offboard_keep_alive.hpp
>
21
#include <
cl_px4_mr/components/cp_trajectory_setpoint.hpp
>
22
#include <
cl_px4_mr/components/cp_vehicle_command.hpp
>
23
#include <
cl_px4_mr/components/cp_vehicle_command_ack.hpp
>
24
#include <
cl_px4_mr/components/cp_vehicle_local_position.hpp
>
25
#include <
cl_px4_mr/components/cp_vehicle_status.hpp
>
26
27
namespace
cl_px4_mr
28
{
29
30
class
ClPx4Mr
:
public
smacc2::ISmaccClient
31
{
32
public
:
33
ClPx4Mr
();
34
virtual
~ClPx4Mr
();
35
36
template
<
typename
TOrthogonal,
typename
TClient>
37
void
onComponentInitialization
()
38
{
39
this->
createComponent<CpVehicleCommand, TOrthogonal, TClient>
();
40
this->
createComponent<CpTrajectorySetpoint, TOrthogonal, TClient>
();
41
this->
createComponent<CpVehicleLocalPosition, TOrthogonal, TClient>
();
42
this->
createComponent<CpOffboardKeepAlive, TOrthogonal, TClient>
();
43
this->
createComponent<CpVehicleStatus, TOrthogonal, TClient>
();
44
this->
createComponent<CpVehicleCommandAck, TOrthogonal, TClient>
();
45
this->
createComponent<CpGoalChecker, TOrthogonal, TClient>
();
46
}
47
};
48
49
}
// namespace cl_px4_mr
cl_px4_mr::ClPx4Mr
Definition
cl_px4_mr.hpp:31
cl_px4_mr::ClPx4Mr::ClPx4Mr
ClPx4Mr()
Definition
cl_px4_mr.cpp:20
cl_px4_mr::ClPx4Mr::onComponentInitialization
void onComponentInitialization()
Definition
cl_px4_mr.hpp:37
cl_px4_mr::ClPx4Mr::~ClPx4Mr
virtual ~ClPx4Mr()
Definition
cl_px4_mr.cpp:22
smacc2::ISmaccClient
Definition
smacc_client.hpp:45
smacc2::ISmaccClient::createComponent
SmaccComponentType * createComponent(TArgs... targs)
Definition
smacc_client_impl.hpp:133
cp_goal_checker.hpp
cp_offboard_keep_alive.hpp
cp_trajectory_setpoint.hpp
cp_vehicle_command.hpp
cp_vehicle_command_ack.hpp
cp_vehicle_local_position.hpp
cp_vehicle_status.hpp
cl_px4_mr
Definition
cl_px4_mr.hpp:28
smacc.hpp
Generated by
1.12.0