SetSpeed() command in "nd" driver doesn't take effect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SetSpeed() command in "nd" driver doesn't take effect

Rebble
Hello all:
   i am using "nd" to move my robots to goto somewhere in stage. But strangely the command --SetSpeed(1.0,0.0) doesn't have any effect in controlling the speed of robot, but the max_speed [ ] declared in the .cfg file for "nd" driver just controls the actual speed. Why? because i have to change the speed in the process of moving, so could anyone explane what't the matter?
  part of the .cfg file:
driver
(
  name "nd"
  provides ["6666:position2d:1"]
requires ["output::6666:position2d:0" "input::6666:position2d:0" "6666:laser:0" "6666:sonar:0"]
#goal_tol [0.3 15.0]
min_speed [0.0 30]
max_speed [5.0 30]
wait_on_stall 1
)
so the robot in stage can only moves at the speed of 5.0.
  Thanks!