Subscribe

Braking, friction and stop moving

  1. 2007-10-03 09:12:53 UTC
    Hi,

    first, thanks for RTB, it's very great and so nice to use any language :).
    I'm working on robot designing and I guess I misundertand movements rules in RTB, as robot just accelerate one time at the beginning (factor 0.5) and brake immediately when radar report anything at 10 distance units (brake factor is max: 1.0) and robot brake continuously.
    Wit hsuch mere behavior, I just think my robot will stop soon, but it's not the case, friction in RTB don't completely stop a robot, which confuse me a lot !
    Robot slow down but never stop moving.
    So I make it accelerate with a negative factor, which works just a little as now it start to go reverse way.

    Is there any right way to stop a robot as a real world vehicle ?

    Regards.
  2. 2007-10-09 17:22:29 UTC
    Usually I would simply use `Brake' to stop a robot. See: http://realtimebattle.sourceforge.net/Documentation/RealTimeBattle-4.html#Brake

    btw: Which programming language do you use for your robot?
  3. 2007-10-10 15:54:33 UTC
    Thx for reply, of course braking once or braking continuously would lead to completely stop a robot in a given time (AFAIK RTB doesn't simulate blocking wheel nor arena ground adherence, so in both cases, robot should stop)
    I use Perl (5.8.8).
  4. 2007-10-18 08:54:05 UTC
    As I oversee the src, this is a bug in RTB.
    The method MovingObject::change_velocity does not consider slide friction and is inherited to class Robot.

    mfg, and greets to San Francisco
  5. 2007-10-23 09:40:32 UTC
    Which version of realtimebattle are you using? My comment from last week applies to the actual CVS snapshot of the module RealTimeBattle. If you are using this one, I could quickly solve your problem. However, this module is marked as out of date.
    If you are using RealTimeBattle-1.0.8-Ext (which is probably a release from module RealTimeBattleNew), I would ask you to try out RealTimeBattle-1.0.7-Ext int the meantime. This was the current version when I contributed to the project the last time, and to my mind, this version should definitely do the job, since I coded Robots for this version by myself and did not experience such problems.
    Unless I overlooked them.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.