Author Topic: AI-ing (.py files, coding, nose-orienting R+D, and help)  (Read 160719 times)

Offline SteveM4

  • Ultra Heavyweight
  • Posts: 2323
  • Rep: 2
  • Obviously dangerous.
    • https://www.youtube.com/c
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #800 on: January 27, 2011, 11:26:50 AM »
Code: [Select]
list.append(("Frontal Assult","Flipper",'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':6,'weapons':(18,19)}))
I do those awful YouTube videos.

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #801 on: January 27, 2011, 11:32:47 AM »
delete the *2 after the nose:math.pi
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline SteveM4

  • Ultra Heavyweight
  • Posts: 2323
  • Rep: 2
  • Obviously dangerous.
    • https://www.youtube.com/c
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #802 on: January 27, 2011, 11:34:07 AM »
kthnxbai  :approve:
I do those awful YouTube videos.

Offline Scrap Daddy

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #803 on: February 16, 2011, 03:11:19 PM »
philletbabe?

Offline Scrap Daddy

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #804 on: February 16, 2011, 03:21:25 PM »
nice to see you, dude and nice ai. Also youu have to use your email you signed up with as your username

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #805 on: February 16, 2011, 08:12:25 PM »
woah, not expecting this! Sup Phil!

We have so many oldies coming back. 2011 should be known as the year of the returning members or something.


Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #807 on: February 17, 2011, 01:59:31 PM »
Awesome!
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline cephalopod

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #808 on: February 17, 2011, 02:34:27 PM »
O.O That's actually amazing!
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline martymidget

  • *
  • Posts: 3459
  • Rep: 7
  • Mr Flibble is very cross.
    • http://tts.imtranslator.n
    • View Profile
    • :)
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #809 on: February 17, 2011, 02:35:03 PM »
Amazing o.o

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #810 on: February 17, 2011, 02:51:26 PM »
Glad to see you back phil.

Offline Madiaba

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #811 on: February 23, 2011, 08:58:50 AM »
Glad to see you back phil.
Ditto.   :bigsmile:
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #812 on: February 23, 2011, 01:06:22 PM »
Glad to see you back phil.
Ditto.   :bigsmile:
Your name looks intimidating in red, I must say...

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #813 on: February 23, 2011, 01:10:23 PM »
Phil:
a) Nice demo but FRAPS is better at recording games than CamStudio.
b) How are you achieving the downwards motion? Just applying a force from the AI script?
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline Scorpion

  • Giga Heavyweight
  • Posts: 5431
  • Rep: 2
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #814 on: February 23, 2011, 04:05:21 PM »
2011 should be known as the year of the returning members or something.
Catchy

So, can this AI be manipulated more? So we could perhaps have flying robots as a legit thing?

Offline nicsan2009

  • Ultra Heavyweight
  • Posts: 1836
  • Rep: 5
  • Here we go again!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #815 on: February 23, 2011, 05:02:27 PM »
Nice Vid!
Hosted 2 Legit 2 Quit tourney Congrats Somebody
Hosted 2 Legit 2 Quit 2 congrats to Plazmic Inferno as well as Somebody (again)
Hosted RA2 World Cup Congrats to Senstro
Hosted TGRR congrats to 090901
ITAT Tournament- Champion
Beetle Bashers- Champion
Father and Son Tournament 2- Champion
GTM All Stars- HW Champion; MW runner up
Father and Son Tournament- Runner up
All Time Record 51-36

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #816 on: February 24, 2011, 05:16:18 PM »
b) How are you achieving the downwards motion? Just applying a force from the AI script?
yes just poor force : i've tried to build a ai only relaying on force (no hover craft component), but if it was easy to move the bot, its chassis was  extremly instable, never staying horizontal. Force are only applied on the G point on the bot, not uniformaly on the chassis.

Yet i'm working on a bot moving invertible and using servo piston.Look closely how the pistons  retract before the bot goes upsidedown.

Any way, servo pistons seem to have some bug  when aied.


http://www.youtube.com/watch?v=opYuj5GwF8A&feature=player_detailpage#
               
« Last Edit: February 25, 2011, 01:35:53 PM by philetbabe »

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #817 on: February 27, 2011, 04:22:37 PM »
this is the picture of the bot :


As long as they are human controled, servo piston works well. However, their control by program seems to be eratic. At last, one must thinks to stop the extent/retract order, otherwise the airtank will quickly be empty.
 
Code: [Select]
         #define identifier of servo-Piston
         goon = 1
         i = 0
         while goon == 1:
            if i  == self.GetNumComponents(): break
            currentType =  self.GetComponentType(i)
            if currentType == "ServoPiston":
               self.PistonFound += 1
               if self.PistonFound == 1 : self.PistonOne = i
               else:
                  self.PistonTwo = i
                  break
            i = i+ 1   

...

         pos1 = self.GetPistonPosition(self.PistonOne)
         pos2 = self.GetPistonPosition(self.PistonTwo)

         if  self.IsUpsideDown() :
            self.InverterTime = self.reloadDelay
            if   (pos1 < -0.2 ) or (pos2 < -0.2 ) :
               self.Input("SPExtend", 0, 1)
            else  :   
               self.Input("SPExtend", 0, 0)           
               self.Input("SPRetract", 0, 0)
         else :
            if   (pos1 > -0.15 ) or (pos2 > -0.15 ) :
               self.Input("SPRetract", 0, 1)
            if (self.InverterTime <= 0) :
               self.Input("SPExtend", 0, 0)           
               self.Input("SPRetract", 0, 0)
               self.Input("Inverter", 0, 1)
               self.InverterTime = self.reloadDelay

Offline Hard Bot

  • Were you looking for someone else?
  • Super Heavyweight
  • Posts: 908
  • Rep: 1
  • My RAM is full of .bot files
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #818 on: February 27, 2011, 06:17:04 PM »
When my bot loads  in the game, it says runtime error. What do I do?
Anyway, here is a picture of my bot:



I now I made correct bindings.

Offline cephalopod

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #819 on: February 27, 2011, 06:44:34 PM »
Did you use the ones I posted in the thread? Yours weren't right.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15