Skip to content
Snippets Groups Projects
Commit 4440e734 authored by Andrei Herdt's avatar Andrei Herdt Committed by Olivier Stasse
Browse files

Add initialization and destruction of array dInitPos

parent 2bf22e71
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,8 @@ namespace PatternGeneratorJRL {
unsigned int lNbActuatedJoints = actuatedJoints.size();
double * dInitPos = new double[lNbActuatedJoints];
for(int i=0;i<lNbActuatedJoints;i++)
dInitPos[i] = 0.0;
ifstream aif;
aif.open(InitConfig.c_str(),ifstream::in);
......@@ -239,6 +241,7 @@ namespace PatternGeneratorJRL {
aDebugHDR->setProperty(inProperty[i],
inValue[i]);
delete [] dInitPos;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment