HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
actionsGpCmds.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020-2025 European Southern Observatory (ESO)
2//
3// SPDX-License-Identifier: LGPL-3.0-only
4
13#ifndef HLCC_PFSSIMHLCC_ACTIONS_CONTROL_HPP
14#define HLCC_PFSSIMHLCC_ACTIONS_CONTROL_HPP
15
16#include <pfssimhlcc/gpCtrEvents.rad.hpp>
17
18#include <rad/configurableActionGroup.hpp>
19#include <rad/application.hpp>
20#include <rad/smSubscriber.hpp>
21#include <rad/trsHealth.hpp>
22
23namespace hlcc {
24namespace pfssimhlcc {
25
26class DataContext;
27class ActionMgr;
28
33class ActionsGpCmds : public rad::ConfigurableActionGroup {
34 public:
42 ActionsGpCmds(rad::Application& appl,
43 ActionMgr& action_mgr,
45
50 void Initialize() override;
51
58 void Configure(const std::vector<std::string>& keys) override;
59
65 void AssignSkyTrajectory(scxml4cpp::Context* c);
66
72 void ForwardCommand(scxml4cpp::Context* c);
73
79 void MoveGPTo(scxml4cpp::Context* c);
80
86 void MoveRaw(scxml4cpp::Context* c);
87
93 void SetTarget(scxml4cpp::Context* c);
94
100 void MoveGpToNamedPos(scxml4cpp::Context* c);
106 void StartControlling(scxml4cpp::Context* c);
107
113 void StopControlling(scxml4cpp::Context* c);
114
120 void AssignFixTrajectory(scxml4cpp::Context* c);
121
122
128 void StopFollowingTrajectory(scxml4cpp::Context* c);
129
130
131
137 void SetHierarchy(scxml4cpp::Context* c);
138
144 void SetPointingOrigin(scxml4cpp::Context* c);
145
151 bool PresetOkGuard(scxml4cpp::Context* c);
152
153
154
155 ActionsGpCmds(const ActionsGpCmds&) = delete;
157
158 private:
159 rad::Application& m_appl;
160 ActionMgr& m_action_mgr;
161 DataContext& m_data;
162};
163
164} // namespace pfssimhlcc
165} // namespace hlcc
166
167#endif // HLCC_PFSSIMHLCC_ACTIONS_CONTROL_HPP
Definition actionMgr.hpp:27
Definition actionsGpCmds.hpp:33
bool PresetOkGuard(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:273
ActionsGpCmds(rad::Application &appl, ActionMgr &action_mgr, DataContext &data)
Definition actionsGpCmds.cpp:45
void Initialize() override
Definition actionsGpCmds.cpp:55
void Configure(const std::vector< std::string > &keys) override
Definition actionsGpCmds.cpp:59
void SetTarget(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:146
void StartControlling(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:179
void StopControlling(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:193
void ForwardCommand(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:90
ActionsGpCmds(const ActionsGpCmds &)=delete
void MoveRaw(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:127
void MoveGpToNamedPos(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:164
void SetHierarchy(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:240
void StopFollowingTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:225
void AssignFixTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:207
void MoveGPTo(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:109
void AssignSkyTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:72
void SetPointingOrigin(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:256
ActionsGpCmds & operator=(const ActionsGpCmds &)=delete
Disable copy constructor.
Definition dataContext.hpp:41
Definition ccsinsoldb.hpp:10
ccsinsdetifllnetio::PointingKernelPositions data
Definition pkp_llnetio_subscriber.cpp:33