NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
op_state_teleop.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 
19 #ifndef EXECUTIVE_OP_STATE_TELEOP_H_
20 #define EXECUTIVE_OP_STATE_TELEOP_H_
21 
22 #include "executive/op_state.h"
24 #include <string>
25 
26 namespace executive {
27 class OpStateTeleop : public OpState {
28  public:
30 
31  OpState* HandleCmd(ff_msgs::CommandStampedPtr const& cmd);
32 
34  std::string const& result_response,
35  std::string const& cmd_id,
36  Action const& action);
37 
38  protected:
39  explicit OpStateTeleop(std::string const& name, unsigned char id) :
40  OpState(name, id) {}
41 
42  private:
43  // allow creation only by repo
44  friend class OpStateRepo;
45  ff_msgs::CommandStampedPtr move_cmd_;
46 };
47 } // namespace executive
48 #endif // EXECUTIVE_OP_STATE_TELEOP_H_
executive::Action
Action
Definition: executive_action_client.h:29
executive::OpStateTeleop
Definition: op_state_teleop.h:27
executive::OpStateRepo
Definition: op_state_repo.h:43
executive::OpStateTeleop::HandleResult
OpState * HandleResult(ff_util::FreeFlyerActionState::Enum const &state, std::string const &result_response, std::string const &cmd_id, Action const &action)
Definition: op_state_teleop.cc:145
executive::OpStateTeleop::HandleCmd
OpState * HandleCmd(ff_msgs::CommandStampedPtr const &cmd)
Definition: op_state_teleop.cc:22
executive::OpStateTeleop::~OpStateTeleop
~OpStateTeleop()
Definition: op_state_teleop.h:29
executive::OpStateTeleop::OpStateTeleop
OpStateTeleop(std::string const &name, unsigned char id)
Definition: op_state_teleop.h:39
ff_util::FreeFlyerActionState::Enum
Enum
Definition: ff_action.h:41
op_state.h
state
uint8_t state
Definition: signal_lights.h:90
executive::OpState::id
unsigned char const & id() const
Definition: op_state.h:82
executive::OpState::name
std::string const & name() const
Definition: op_state.h:81
executive
Definition: executive.h:87
op_state_repo.h
executive::OpState
Definition: op_state.h:45