NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
op_state_auto_return.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_AUTO_RETURN_H_
20 #define EXECUTIVE_OP_STATE_AUTO_RETURN_H_
21 
22 #include "executive/op_state.h"
24 #include <string>
25 
26 namespace executive {
27 class OpStateAutoReturn : public OpState {
28  public:
30 
31  OpState* HandleCmd(ff_msgs::CommandStampedPtr const& cmd);
32 
33  protected:
34  explicit OpStateAutoReturn(std::string const& name, unsigned char id) :
35  OpState(name, id) {}
36 
37  private:
38  // allow creation only by repo
39  friend class OpStateRepo;
40 };
41 } // namespace executive
42 #endif // EXECUTIVE_OP_STATE_AUTO_RETURN_H_
executive::OpStateRepo
Definition: op_state_repo.h:43
executive::OpStateAutoReturn::OpStateAutoReturn
OpStateAutoReturn(std::string const &name, unsigned char id)
Definition: op_state_auto_return.h:34
executive::OpStateAutoReturn::~OpStateAutoReturn
~OpStateAutoReturn()
Definition: op_state_auto_return.h:29
executive::OpStateAutoReturn
Definition: op_state_auto_return.h:27
op_state.h
executive::OpState::id
unsigned char const & id() const
Definition: op_state.h:82
executive::OpStateAutoReturn::HandleCmd
OpState * HandleCmd(ff_msgs::CommandStampedPtr const &cmd)
Definition: op_state_auto_return.cc:22
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