Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
press_command_mapping.hpp
Go to the documentation of this file.
1/*****************************************************************************/
2/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3/*****************************************************************************/
4
5/*
6 * Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7 *
8 * This file is part of Taproot.
9 *
10 * Taproot is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Taproot is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef TAPROOT_PRESS_COMMAND_MAPPING_HPP_
25#define TAPROOT_PRESS_COMMAND_MAPPING_HPP_
26
27#include "command_mapping.hpp"
28
29namespace tap
30{
31namespace control
32{
33class Command;
34class RemoteMapState;
35
43{
44public:
50 const std::vector<Command *> cmds,
51 const RemoteMapState &rms)
52 : CommandMapping(drivers, cmds, rms),
53 pressed(false)
54 {
55 }
56
60 ~PressCommandMapping() override = default;
61
62 void executeCommandMapping(const RemoteMapState &currState) override;
63
64private:
65 bool pressed;
66}; // class PressCommandMapping
67} // namespace control
68} // namespace tap
69
70#endif // TAPROOT_PRESS_COMMAND_MAPPING_HPP_
Definition drivers.hpp:70
Definition command_mapping.hpp:48
Drivers * drivers
Definition command_mapping.hpp:117
Definition press_command_mapping.hpp:43
~PressCommandMapping() override=default
void executeCommandMapping(const RemoteMapState &currState) override
Definition press_command_mapping.cpp:30
PressCommandMapping(Drivers *drivers, const std::vector< Command * > cmds, const RemoteMapState &rms)
Definition press_command_mapping.hpp:48
Definition remote_map_state.hpp:56
Definition ballistics.cpp:29