13 #include <framework/core/ModuleParam.h>
14 #include <framework/core/PyObjConvUtils.h>
15 #include <boost/python/object.hpp>
31 ModuleParamBase(TypeInfo(), description, force), m_paramVariable(paramVariable) {};
39 m_paramVariable = value;
40 m_setInSteering =
true;
46 m_defaultValue = defaultValue;
47 m_paramVariable = defaultValue;
48 m_setInSteering =
false;
54 return m_paramVariable;
60 return m_defaultValue;
66 setValue(PyObjConvUtils::convertPythonObject(pyObject, getDefaultValue()));
71 bool defaultValues)
const
74 PyObjConvUtils::convertToPythonObject((defaultValues) ? m_defaultValue : m_paramVariable);
82 m_defaultValue = p->m_defaultValue;
83 m_paramVariable = p->m_paramVariable;
84 m_setInSteering = p->m_setInSteering;
91 m_paramVariable = m_defaultValue;
92 m_setInSteering =
false;