55 std::string device_name;
57 int control_mode_type;
58 std::vector<float> gains;
63 std::map<int,std::map<std::string,double>> set_point;
64 std::map<int,double> homing;
65 std::map<int,double> trajectory;
66 std::map<int,std::map<std::string,Trj_ptr>> trj_generator;
72 std::string host_name;
77 std::map<int,DEVICE_CONFIG> device_config_map;
79 std::string trj_type=
"";
82 std::map<std::string,TRAJECTORY_CONFIG_t> trj_config_map;
87 typedef std::shared_ptr<EcUtils> Ptr;
89 EcUtils(EC_CONFIG ec_cfg);
94 EC_CONFIG get_ec_cfg();
95 std::string get_ec_cfg_file();
96 EcIface::Ptr make_ec_iface();
99 std::string _control_mode;
101 std::string _ec_cfg_file;
103 void compute_absolute_path(std::string dir_path,std::string &file_path);
104 void generate_fake_slave_info();
105 void device_config_map(
const YAML::Node & device_config_node,std::string device_type);
106 void config_trajectory();
107 void config_device();
108 void trajectory_generator();
110 std::vector<std::string> _device_type_vector={
"motor",
"valve",
"pump",
"gripper",
"imu"};
111 std::vector<std::string> _robot_path_v={
"robot_id_map_path",
"robot_control_path"};
112 std::vector<std::string> _robot_abs_path={
"",
""};
113 YAML::Node _robot_id_map_node;
114 YAML::Node _robot_control_node;