src/socp/shooting.cpp
void shooting::TimeoutOCPFunction(void *arg){
	void **userArgs = (void**) arg;
	shooting* This = (shooting*) userArgs[0];
	real* continuationStep = (real*) userArgs[1];
	int* info = (int*) userArgs[2];

	if (*continuationStep<=0){
		// no continuation
		*info = This->SolveShooting();
	}else{
		// discrete continuation with step "continuationStep"
		*info = This->SolveShootingContinuation(*continuationStep);
	}
}
// Static function for solving OCP with timeout
Static function for solving OCP with timeout
Static function for solving OCP with timeout
void shooting::TimeoutOCPFunction(void *arg){
	void **userArgs = (void**) arg;
	shooting* This = (shooting*) userArgs[0];
	real* continuationStep = (real*) userArgs[1];
	int* info = (int*) userArgs[2];
	if (*continuationStep<=0){
		*info = This->SolveShooting();
	}else{
		*info = This->SolveShootingContinuation(*continuationStep);
	}
}
void shooting :: TimeoutOCPFunction ( void * arg ) { void * * userArgs = ( void * * ) arg ; shooting * This = ( shooting * ) userArgs [ 0 ] ; real * continuationStep = ( real * ) userArgs [ 1 ] ; int * info = ( int * ) userArgs [ 2 ] ; if ( * continuationStep <= 0 ) { * info = This -> SolveShooting ( ) ; } else { * info = This -> SolveShootingContinuation ( * continuationStep ) ; } }
Static function for solving OCP with timeout
Static function for solving OCP with timeout
// no continuation // discrete continuation with step "continuationStep"