From: Mathieu D. <mat...@li...> - 2009-04-17 18:29:05
|
Hi everybody, I just would like some clarifications about some PCSIM functions. Let's begin with AnalogInputNeuron::addAnalogValue(double v). Suppose that I call addAnalogValue(5). Will the output remain constant until the next call to addAnalogValue or will it be equal to 5 for only one simulation step? I would also like some help about SimNetwork::simulate(Time const & T) (sounds crazy but I'm no longer sure of anything). If I call simulate(Time.ms(25)) will the simulation advance by 25 ms or stop to 25 ms? More precisely, if I use simulate(Time.ms(25)) in a loop will the simulation advance by 25 ms at each step or will it stick to 25 ms? In fact I'm trying to use both PCSIM and webots (http://www.cyberbotics.com/) for my experiment. Webots simulate the robot and its environment and PCSIM is used to simulate the neural network controlling the robot. Sensors values are injected from webots to the network and the motor values are read from the network and sent back to webots. I'm facing difficulties (the code runs but I have strange values on the khepera sensors). Does anyone have some experience on this? Thanks in advance, Mathieu |