dynamic_graph_manager
device_simulator.hh
Go to the documentation of this file.
1 
10 #ifndef DEVICE_SIMULATOR_HH
11 #define DEVICE_SIMULATOR_HH
12 
13 #include <yaml-cpp/yaml.h>
14 
15 #include <dynamic-graph/entity.h>
17 
18 namespace dynamic_graph
19 {
21 {
22 public:
27  static const std::string CLASS_NAME;
28 
34  DeviceSimulator(const std::string& input_name);
35 
40  {
41  }
42 
48  virtual void initialize(const YAML::Node& params);
49 
57  virtual void initialize_from_file(const std::string& yaml_file);
58 
73  virtual void execute_graph();
74 
80  DeviceOutSignalMap simu_motor_controls_out_;
81 
88  DeviceInSignalMap simu_sensors_in_;
89 };
90 
91 } // namespace dynamic_graph
92 
93 #endif /* #ifndef DEVICE_SIMULATOR_HH */
virtual void initialize(const YAML::Node &params)
This method is hinerited from the Device class.
Definition: device_simulator.cpp:36
DeviceSimulator(const std::string &input_name)
DeviceSimulator is the constructor.
Definition: device_simulator.cpp:30
virtual void initialize_from_file(const std::string &yaml_file)
This method is hinerited from the Device class.
Definition: device_simulator.cpp:85
Definition: device.hh:29
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22
DeviceInSignalMap simu_sensors_in_
simu_sensors_in_ is a map of device output signals.
Definition: device_simulator.hh:88
~DeviceSimulator()
Destroy the DeviceSimulator object.
Definition: device_simulator.hh:39
Definition: device_simulator.hh:20
DeviceOutSignalMap simu_motor_controls_out_
simu_motor_controls_out_ is the output motor control for each joint.
Definition: device_simulator.hh:80
virtual void execute_graph()
This method is hinerited from the Device class.
Definition: device_simulator.cpp:91
static const std::string CLASS_NAME
This is the name of the classe that is used to store the object in the dynamic graph.
Definition: device_simulator.hh:27