Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   stopping a robot (http://www.chiefdelphi.com/forums/showthread.php?t=94908)

krudeboy51 29-04-2011 09:16

stopping a robot
 
sorry for the weird thread name but, is there any way to program a robot to stop on a dime instead of rolling like an inch away from designated stopping area?

Mike Betts 29-04-2011 09:34

Re: stopping a robot
 
Quote:

Originally Posted by krudeboy51 (Post 1057425)
sorry for the weird thread name but, is there any way to program a robot to stop on a dime instead of rolling like an inch away from designated stopping area?

Kory,

Can you stop your car on a dime?

If you are talking dynamic reaction (ex: teleop), no. Acceleration is defined as the change in velocity divided by the change in time. In this case, "immediately" implies that the change in time is zero hence the accereration is infinite. F=ma requires that the force also becomes infinite. Yada, yada, yada...

If you allow for a trajectory plan (ex: autonomous) then you have to plan the deceleration of the robot to stop exactly where you wish.

Read about PID controls and the response of a PID to a step change input. There are several excellent CD white papers on the subject.

Regards,

Mike

Mark McLeod 29-04-2011 09:34

Re: stopping a robot
 
That would be a finely-tuned PID loop with encoder feedback.
Here is a student paper on the topic.

virtuald 29-04-2011 13:36

Re: stopping a robot
 
It's not an instantaneous stop, but if you set all of your Jaguars to 'brake' mode instead of 'coast', that will stop you reasonably quickly too. If you want something more exact, then PID is definitely the way to go.

krudeboy51 29-04-2011 14:25

Re: stopping a robot
 
Quote:

Originally Posted by virtuald (Post 1057455)
It's not an instantaneous stop, but if you set all of your Jaguars to 'brake' mode instead of 'coast', that will stop you reasonably quickly too. If you want something more exact, then PID is definitely the way to go.

how do you do break mode?

virtuald 29-04-2011 20:37

Re: stopping a robot
 
Quote:

Originally Posted by krudeboy51 (Post 1057467)
how do you do break mode?

There's a jumper on the Jaguar... refer to the user's manual for the Jaguar on page 11.

WizenedEE 01-05-2011 13:51

Re: stopping a robot
 
The jumper is generally set to brake, and it's unlikely it's on coast unless someone on your team changed it.

If you're braking the jaguars, the only other option is spinning the wheels backwards, or slowing down before you stop.

slijin 01-05-2011 18:09

Re: stopping a robot
 
Alternatively, Victors are by default set to coast. To change this, move the jumper on the Victor to a pair of pins including the one labeled "B".

krudeboy51 09-05-2011 15:50

Re: stopping a robot
 
Ok i got it now thanks for your assistance!


All times are GMT -5. The time now is 17:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi