HLR  0.0.1
MitsubishiController.hpp
1 #ifndef MITSUBISHICONTROLLER_HPP
2 #define MITSUBISHICONTROLLER_HPP
3 
4 #include <cstdint>
5 
6 #include "AbstractController.hpp"
7 
8 namespace HLR
9 {
10 namespace Simulation
11 {
18 {
19 public:
26  MitsubishiController(const std::string& request_topic,
27  const std::string& respond_topic,
28  const std::string& robot_description = "mitsubishi");
29 
30 private:
35  void parse_message(const std::string& message) override;
36 
43  bool parse_startup_messages(const std::string& message);
44 
51  bool parse_run_messages(std::string& cmd);
52 
56  bool comm_open = false;
57 
61  bool controller_on = false;
62 
66  bool servo_on = false;
67 
71  const uint8_t total_num_of_joints;
72 
76  const uint8_t unused_joint_one;
77 
81  const uint8_t unused_joint_two;
82 
86  const std::string q_ok;
87 
91  const std::string q_error;
92 
96  const std::string q_error_busy;
97 };
98 }
99 }
100 
101 #endif /* MITSUBISHICONTROLLER_HPP */
MitsubishiController(const std::string &request_topic, const std::string &respond_topic, const std::string &robot_description="mitsubishi")
Constructor for MitsubishiController.
Implements the virtual functions of AbstractController. Used to parse the messages for the Mitsubishi...
Definition: MitsubishiController.hpp:17
Creates to ROS topics to listen to the incoming messages.
Definition: AbstractController.hpp:20