Revision d7e1b0d8
Attempting to use Odometry. Added a better Odometry::wait, but all is not fixed yet.
scout/libscout/src/Behavior.cpp | ||
---|---|---|
118 | 118 |
void Behavior::wait(float duration) |
119 | 119 |
{ |
120 | 120 |
ros::Rate r(WAIT_HZ); |
121 |
int ticks = int(duration * 100);
|
|
121 |
int ticks = int(duration * WAIT_HZ);
|
|
122 | 122 |
for (int i = 0; i < ticks; i++) |
123 | 123 |
{ |
124 | 124 |
spinOnce(); |
Also available in: Unified diff