Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
move_absolute_command.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_MOVE_ABSOLUTE_COMMAND_HPP_
25#define TAPROOT_MOVE_ABSOLUTE_COMMAND_HPP_
26
32
33namespace tap
34{
35namespace control
36{
37namespace setpoint
38{
51{
52public:
67 explicit MoveAbsoluteCommand(
69 float setpoint,
70 float speed,
71 float setpointTolerance,
72 bool shouldAutomaticallyClearJam,
73 bool setSetpointToTargetOnEnd);
74
75 const char* getName() const override { return "move absolute"; }
76
77 bool isReady() override;
78
79 void initialize() override;
80
81 void execute() override;
82
83 void end(bool interrupted) override;
84
85 bool isFinished() const override;
86
87protected:
89
90private:
94 float setpoint;
95
96 tap::algorithms::Ramp rampToSetpoint;
97
102 float speed;
103
104 float setpointTolerance;
105
106 uint32_t prevMoveTime;
107
108 bool automaticallyClearJam;
109
110 bool setSetpointToTargetOnEnd;
111}; // class MoveAbsoluteCommand
112
113} // namespace setpoint
114
115} // namespace control
116
117} // namespace tap
118
119#endif // TAPROOT_MOVE_ABSOLUTE_COMMAND_HPP_
Definition ramp.hpp:43
Definition command.hpp:44
Definition move_absolute_command.hpp:51
void end(bool interrupted) override
Definition move_absolute_command.cpp:90
bool isReady() override
Definition move_absolute_command.cpp:52
void execute() override
Definition move_absolute_command.cpp:64
const char * getName() const override
Definition move_absolute_command.hpp:75
bool isFinished() const override
Definition move_absolute_command.cpp:109
tap::control::setpoint::SetpointSubsystem * setpointSubsystem
Definition move_absolute_command.hpp:88
void initialize() override
Definition move_absolute_command.cpp:57
Definition setpoint_subsystem.hpp:48
Definition ballistics.cpp:29