exact simulation time?
"fransklip" <[email protected]>
| Newsgroups | gmane.comp.cybernetics.webot.contest |
|---|---|
| Message-ID | <[email protected]> |
Olivier,
There appears to be an always changing time difference between the
simulation time as displayed in the status line of Webots and my own
timekeeping routine. The difference is changing between 0 and 32 msec.
Even if my controller program starts immediately with the most simple
timing loop, the Webots time does not show multiples of 32 msecs:
for i := 1 to 10
robot_step(32);
Is this a feature, a bug?
It would be nice to get the correct and exact simulation time, e.g.
with a new routine robot_get_time()
n.b.
To keep the time in my robot controller, I have encapsulated the
Webots library robot_step() routine:
private int simtime = 0;
void step( int msecs ) {
simtime += msecs;
robot_step( msecs );
}
int getTime() {
return simtime;
}
Another item (not important to me):
the pop-up slider window in Webots shows angle values that are the
inverse of the values that a controller program has to specify to set
the same servo in the same direction.
-- regards, Frans / Kimaita
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/pU_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/