after implementing Static Optimization and trying to store activations to a vector, I get "Segmentation fault".
Here is the loop where I get this error:
Code: Select all
vector<Vector> acts; // activations
Storage *as = so.getActivationStorage();
int na = model.getActuators().getSize();
acts.resize(states.getSize());
// Store activations to out vector
for (int row = 0; row<states.getSize(); row++)
for (int i = 0; i<na; i++)
as->getData(row, i, acts[i]);
Any ideas?