select_plan_state.h
Go to the documentation of this file.
1 //
2 // Created by yijiangh on 6/22/17.
3 //
4 
5 #ifndef CHOREO_GUI_SELECT_PROCESS_PLAN_STATE_H
6 #define CHOREO_GUI_SELECT_PROCESS_PLAN_STATE_H
7 
8 #include <choreo_gui/gui_state.h>
10 #include <ros/ros.h>
11 
12 namespace choreo_gui
13 {
14 
15 class SelectPlanState : public GuiState
16 {
17  Q_OBJECT
18  public:
19  // Entry and exit classes
20  virtual void onStart(ChoreoWidget& gui);
21  virtual void onExit(ChoreoWidget& gui);
22 
23  // Handlers for the fixed buttons
24  virtual void onNext(ChoreoWidget& gui);
25  virtual void onBack(ChoreoWidget& gui);
26  virtual void onReset(ChoreoWidget& gui);
27 
28  protected:
29  void selectPlan(ChoreoWidget& gui);
30 
31  protected Q_SLOTS:
32  void triggerSimulation();
33  void triggerOutputProcess();
34 
35  private:
36  void simulateAll();
37  void simulateOne(const int& plan_id);
38 
40 
41  private:
43 
44  std::vector<int> selected_plan_ids_;
45  double sim_speed_;
46 };
47 }
48 
49 #endif //CHOREO_GUI_SELECT_PROCESS_PLAN_STATE_H
The ChoreoWidget class works in states:
Definition: choreo_widget.h:34
virtual void onNext(ChoreoWidget &gui)
void simulateOne(const int &plan_id)
void selectPlan(ChoreoWidget &gui)
virtual void onBack(ChoreoWidget &gui)
virtual void onReset(ChoreoWidget &gui)
virtual void onExit(ChoreoWidget &gui)
std::vector< int > selected_plan_ids_
virtual void onStart(ChoreoWidget &gui)


choreo_gui
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:58:56