struct PythonConfigConst¶
Overview¶
#include <python_config.h> struct PythonConfigConst { // fields static constexpr char EngineType[] = "python_json"; static constexpr char EngineSchema[] = "json://nrp-core/engines/engine_python.json#/python_json"; static constexpr std::string_view InitFileExecStatus = "InitExecStatus"; static constexpr std::string_view ResetExecStatus = "ResetExecStatus"; static constexpr std::string_view ErrorMsg = "Message"; static constexpr std::string_view ExtraServerOptionsArg = "options"; static constexpr std::string_view SimulationTimeRatio = "TimeRatio"; };
Detailed Documentation¶
Fields¶
static constexpr std::string_view InitFileExecStatus = "InitExecStatus"
After the server executes the init file, this status flag will either be 1 for success or 0 for fail. If the execution fails, a JSON message with more details will be passed as well (under ErrorMsg).
static constexpr std::string_view ResetExecStatus = "ResetExecStatus"
After the server resets, this status flag will either be 1 for success or 0 for fail. If the execution fails, a JSON message with more details will be passed as well (under ErrorMsg).
static constexpr std::string_view ErrorMsg = "Message"
If the init file could not be parsed, the python error message will be stored under this JSON property name.
static constexpr std::string_view ExtraServerOptionsArg = "options"
Parameter name that is used to pass along the server address.
static constexpr std::string_view SimulationTimeRatio = "TimeRatio"
Ratio used by SimulationTime.
The ratio should be passed to the server on initialization. In that way we can communicate to the server what time units are used in the simulation. This will impact the time step passed with runLoop command, as well as the simulation time returned.