sot-core
4.11.8
Hierarchical task solver plug-in for dynamic-graph.
|
Go to the documentation of this file.
12 #ifndef _SOT_LOADER_HH_
13 #define _SOT_LOADER_HH_
19 #include <dynamic-graph/python/interpreter.hh>
106 std::string &out, std::string &err);
121 void oneIteration(std::map<std::string, SensorValues> &sensors_in,
122 std::map<std::string, ControlValues> &control_values,
123 const double &period);
python::Interpreter embeded_python_interpreter_
Embeded python interpreter.
Definition: sot-loader.hh:63
void runPythonFile(std::string ifilename, std::string &err)
Run a python script inside the embeded python interpreter.
Definition: sot-loader.hh:109
std::map< std::string, SensorValues > sensors_in_
Map of sensor readings.
Definition: sot-loader.hh:66
void runPythonCommand(const std::string &command, std::string &result, std::string &out, std::string &err)
Run a python command inside the embeded python interpreter.
void setDynamicLibraryName(std::string &afilename)
Specify the name of the dynamic library.
Definition: sot-loader.hh:100
Definition: abstract-sot-external-interface.hh:17
std::string device_name_
Device entity created and loaded, so we deregister it as the Pool is not responsible for it's life ti...
Definition: sot-loader.hh:73
SotLoader()
Default constructor.
This class is loading the control part of the Stack-Of-Tasks.
Definition: sot-loader.hh:47
std::map< std::string, ControlValues > control_values_
Map of control values.
Definition: sot-loader.hh:69
bool initialization()
Prepare the SoT framework.
int parseOptions(int argc, char *argv[])
Read user input to extract the path of the SoT dynamic library.
~SotLoader()
Default destructor.
void loadDeviceInPython(const std::string &device_name)
Load the Device entity in the python global scope.
void cleanUp()
Unload the library which handles the robot device.
bool dynamic_graph_stopped_
Check if the dynamic graph is running or not.
Definition: sot-loader.hh:50
void oneIteration(std::map< std::string, SensorValues > &sensors_in, std::map< std::string, ControlValues > &control_values, const double &period)
Compute one iteration of control. Basically executes fillSensors, the SoT and the readControl.
AbstractSotExternalInterface * sot_external_interface_
The interface between the device and the robot driver.
Definition: sot-loader.hh:53
Definition: abstract-sot-external-interface.hh:40
std::string sot_dynamic_library_filename_
Name of the dynamic library containing the dgs::AbstractSotExternalInterface object.
Definition: sot-loader.hh:57
bool isDynamicGraphStopped()
Get Status of dg.
Definition: sot-loader.hh:91
void stopDG()
Get Status of dg.
Definition: sot-loader.hh:97
void startDG()
Get Status of dg.
Definition: sot-loader.hh:94
void runPythonFile(std::string ifilename)
Run a python script inside the embeded python interpreter.
Definition: sot-loader.hh:114
void * sot_dynamic_library_
Handle on the SoT library.
Definition: sot-loader.hh:60