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_failsafe_flags.hpp
>
20
#include <
cl_px4_mr/components/cp_goal_checker.hpp
>
21
#include <
cl_px4_mr/components/cp_kml_mission_loader.hpp
>
22
#include <
cl_px4_mr/components/cp_micro_ros_agent.hpp
>
23
#include <
cl_px4_mr/components/cp_offboard_keep_alive.hpp
>
24
#include <
cl_px4_mr/components/cp_trajectory_setpoint.hpp
>
25
#include <
cl_px4_mr/components/cp_vehicle_command.hpp
>
26
#include <
cl_px4_mr/components/cp_vehicle_command_ack.hpp
>
27
#include <
cl_px4_mr/components/cp_vehicle_local_position.hpp
>
28
#include <
cl_px4_mr/components/cp_vehicle_status.hpp
>
29
30
namespace
cl_px4_mr
31
{
32
33
class
ClPx4Mr
:
public
smacc2::ISmaccClient
34
{
35
public
:
36
ClPx4Mr
();
37
~ClPx4Mr
()
override
;
38
39
template
<
typename
TOrthogonal,
typename
TClient>
40
void
onComponentInitialization
()
41
{
42
this->
createComponent<CpMicroRosAgent, TOrthogonal, TClient>
();
43
this->
createComponent<CpVehicleCommand, TOrthogonal, TClient>
();
44
// local position before the setpoint publisher: CpTrajectorySetpoint resolves it
45
// in onInitialize (hold() was a silent no-op while the order was reversed)
46
this->
createComponent<CpVehicleLocalPosition, TOrthogonal, TClient>
();
47
this->
createComponent<CpTrajectorySetpoint, TOrthogonal, TClient>
();
48
this->
createComponent<CpOffboardKeepAlive, TOrthogonal, TClient>
();
49
this->
createComponent<CpVehicleStatus, TOrthogonal, TClient>
();
50
this->
createComponent<CpFailsafeFlags, TOrthogonal, TClient>
();
51
this->
createComponent<CpVehicleCommandAck, TOrthogonal, TClient>
();
52
this->
createComponent<CpGoalChecker, TOrthogonal, TClient>
();
53
this->
createComponent<CpKmlMissionLoader, TOrthogonal, TClient>
();
54
}
55
};
56
57
}
// namespace cl_px4_mr
cl_px4_mr::ClPx4Mr
Definition
cl_px4_mr.hpp:34
cl_px4_mr::ClPx4Mr::ClPx4Mr
ClPx4Mr()
Definition
cl_px4_mr.cpp:20
cl_px4_mr::ClPx4Mr::~ClPx4Mr
~ClPx4Mr() override
Definition
cl_px4_mr.cpp:22
cl_px4_mr::ClPx4Mr::onComponentInitialization
void onComponentInitialization()
Definition
cl_px4_mr.hpp:40
smacc2::ISmaccClient
Definition
smacc_client.hpp:46
smacc2::ISmaccClient::createComponent
SmaccComponentType * createComponent(const TArgs &... targs)
Definition
smacc_client_impl.hpp:130
cp_failsafe_flags.hpp
cp_goal_checker.hpp
cp_kml_mission_loader.hpp
cp_micro_ros_agent.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:31
smacc.hpp
Generated by
1.12.0