nodescan
nodescan copied to clipboard
Python data_trigger.py
Hello,
when running the data_trigger.py example I get the following error:
TypeError: No registered converter was able to produce a C++ rvalue of type ns::DataTrigger::ProcessReturnCode from this Python object of type bool
I guess the ProcessReturnCode is not defined for python?
Cheers
I think defining this for the python extension should be it!?
enum_<ns::DataTrigger::ProcessReturnCode>("ProcessReturnCode")
.value("NoMoreToProcess",0)
.value("CanProcessAgain",1)
.value("ConnectionEnd",2)
.export_values();
Not 100% sure but I will try to compile it and see.
Yes I think this is the good approach. I'll try this and keep you updated. (P.S.: as you can see regression tests need to be improved... !)