Go to the documentation of this file.
12 #ifndef _SOT_LOADER_HH_
13 #define _SOT_LOADER_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.
void runPythonFile(std::string ifilename, std::string &err)
Run a python script inside the embeded python interpreter.
std::map< std::string, SensorValues > sensors_in_
Map of sensor readings.
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 runPythonFile(std::string filename)
void setDynamicLibraryName(std::string &afilename)
Specify the name of the dynamic library.
std::string device_name_
Device entity created and loaded, so we deregister it as the Pool is not responsible for it's life ti...
SotLoader()
Default constructor.
This class is loading the control part of the Stack-Of-Tasks.
std::map< std::string, ControlValues > control_values_
Map of control values.
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.
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.
std::string sot_dynamic_library_filename_
Name of the dynamic library containing the dgs::AbstractSotExternalInterface object.
bool isDynamicGraphStopped()
Get Status of dg.
void stopDG()
Get Status of dg.
void startDG()
Get Status of dg.
void runPythonFile(std::string ifilename)
Run a python script inside the embeded python interpreter.
void * sot_dynamic_library_
Handle on the SoT library.
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31