ISAAC  0.2.11
Flight software for the ISAAC project, adding functionality to the Astrobee robot, operating inside the International Space Station.
All Classes Functions Variables Pages
isaac_action_node.h
1 /* Copyright (c) 2021, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The "ISAAC - Integrated System for Autonomous and Adaptive Caretaking
7  * platform" software is licensed under the Apache License, Version 2.0
8  * (the "License"); you may not use this file except in compliance with the
9  * License. You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16  * License for the specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #ifndef SURVEY_MANAGER_ISAAC_ACTION_NODE_H_
21 #define SURVEY_MANAGER_ISAAC_ACTION_NODE_H_
22 
23 #include <plansys2_executor/ActionExecutorClient.hpp>
24 
25 #include <string>
26 
27 namespace plansys2_actions {
28 
29 class IsaacAction : public plansys2::ActionExecutorClient {
30  public:
31  IsaacAction(ros::NodeHandle nh, const std::string& action, const std::chrono::nanoseconds& rate, bool quick);
32  ~IsaacAction();
33 
34  protected:
35  void do_work();
36 
37  double action_duration_;
38  ros::Time start_time_;
39  float progress_;
40  std::string robot_name_, action_name_;
41  int pid_;
42  std::string command_;
43  bool quick_;
44 };
45 } // namespace plansys2_actions
46 
47 
48 // Main entry point for application
49 int isaac_action_main(int argc, char *argv[], const char* action_name);
50 
51 #endif // SURVEY_MANAGER_ISAAC_ACTION_NODE_H_
plansys2_actions::IsaacAction
Definition: isaac_action_node.h:29