constraint_app
/home/jbrooksh/drc/software/perception/constraint_app/src/matlab_mex/cam_getResetAndClear.cpp
Go to the documentation of this file.
00001 #include "mex.h"
00002 #include "ConstraintApp.h"
00003 
00016 void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
00017 {
00018   if ( nrhs != 1 ) {
00019     mexErrMsgTxt("requires exactly 1 parameters"); 
00020   }
00021 
00022   ConstraintApp* app(*(ConstraintApp**)mxGetData(prhs[0]));
00023 
00024   if ( nlhs != 1 ) {
00025     mexErrMsgTxt("returns exactly 1 parameters");
00026   }
00027 
00028   bool res = app->GetResetAndClear();
00029 
00030   plhs[0] = mxCreateLogicalScalar(res);
00031 }
 All Classes Files Functions Variables Typedefs