Please login or register.

Xuras

Author Topic: Robotic Car (Self driving)  (Read 2096 times)

Offline thingshappen

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 3,030
  • Cookies: 1337
  • GENTLE MANNE of LEISURE
    • STEAM_0:1:15987148
    • View Profile
    • You're on it!
Robotic Car (Self driving)
« on: 30 May, 2008, 17:02:51 pm »
How to create a bot (Robotic car). This is what the XURAS team like most, robots. Here I'll show you how to create one:


First enter the Q menu and select a body that you want, feel free to choose any, but I have gone for the PHX Train Body.


Now we need wheels for it, select the wheel tool (doesn't have to be wire) and attach it to the body.



Now weigh the body 2 for now, when we have built it and tested it you can change it to whatever.


We need something circular, so it can look around corners and determine where it is, so select a wheel or something to put rangers on.



I'm going to use the half circle to put my rangers on.


Now select the wire ranger tool and set all the properties to:

Range: 700
Everything unticked apart from: "Hit water", "Output distance" and "High Resolution"

Put one on the front of the car, this will allow it to see objects directly infront of it, controlling its speed.


We need some rangers on the side now, so put four not three (If you see three, look closer, there's one on the side) rangers as shown in the image:

And on the other side


Weld the top dome to the body, and weigh the dome 2 like the body.


Now we need something to make it move, select the wire thrusters and select these settings:

Force Multiplier: 0.9 (You will see why soon)
Minimum force: Less than 1
Maximum force: Greater than 90000
Bi-Directional: Doesn't really matter either way
Make sure it works out of water, I don't mind about in, since it's not really going to go there.

Attach a thruster to the back of the car:

And one to the front two wheels (or the body):




You know those rangers we set up on an angle before? Well we need to add each side of them together. Go and select the Wire Arithmetic gate, and select the addition chip:

Place one at each side (total of two (the one that you can see that's off angle shouldn't be there)) of the car, these will be used to add up each side of rangers, to get a total distance away.


Now we wire them up, one side goes into one addition chip and the other side goes into the other chip. Simple! (Don't wire the front ranger to anything yet). Now you can see why the multiplier on the thruster has to be so low, it's because 700 X 5 on either side isn't exactly a low number. Told you there was a reason.




Until both sides are in each chip as shown:


Now for that back thruster, we wire A from that straight into the front ranger, since there's only one, we don't need an addition chip.



Now for the inside thrusters, the ones attached to the wheels (or body (or wherever)) need to go into the addition chip on that side (which is why it's good to lay it out like that).


And the other side





There we go, just about done, give it some funky colour scheme and send it off on it's journey.





If the car heads towards walls, then you've wired the thrusters to the wrong addition chip, swap them around and it will be fine.
Feel free to have a mess around with it, tweak the speeds etc.

Overview

« Last Edit: 20 June, 2008, 08:03:31 am by thingshappen »


Tristan

  • Guest
Re: Robotic Car (Self driving)
« Reply #1 on: 14 July, 2008, 04:18:08 am »
Um, I have a really bad problem.. My car goes towards walls NO matter what. I switched the thrusters around about 5 times and no results. Just goes towards walls.

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 967
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Robotic Car (Self driving)
« Reply #2 on: 14 July, 2008, 10:26:49 am »
what is the max distance of the rangers? make it 700.
make sure you set the rangers that they hit the world.
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Soul-Chicken

  • Guest
Re: Robotic Car (Self driving)
« Reply #3 on: 14 July, 2008, 13:07:40 pm »
I've been trying for 3 days and itwont steer lol
Plz help

Offline thingshappen

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 3,030
  • Cookies: 1337
  • GENTLE MANNE of LEISURE
    • STEAM_0:1:15987148
    • View Profile
    • You're on it!
Re: Robotic Car (Self driving)
« Reply #4 on: 14 July, 2008, 16:38:36 pm »
Weight problem, weigh the thrusters/the bot less/turn the thrust down, could be going over the GMod limit.


Soul-Chicken

  • Guest
Re: Robotic Car (Self driving)
« Reply #5 on: 20 July, 2008, 13:25:54 pm »
Will do...
Erm the Wheel tool's Brokeded so i Made a HoverRoboCar lol
.
.
.
.
It Failed

Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,053
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Robotic Car (Self driving)
« Reply #6 on: 25 July, 2008, 00:23:10 am »
Has anyone made a successful hover auto car yet?
Any problems contact me
sleepy@alflatters.co.uk




Offline thingshappen

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 3,030
  • Cookies: 1337
  • GENTLE MANNE of LEISURE
    • STEAM_0:1:15987148
    • View Profile
    • You're on it!
Re: Robotic Car (Self driving)
« Reply #7 on: 25 July, 2008, 10:58:12 am »
I have in the past, but that was before I discovered wheels were better.


PX1K

  • Guest
Re: Robotic Car (Self driving)
« Reply #8 on: 26 July, 2008, 13:17:24 pm »
Made one, it worked awsome!
And what you can do to this:

Place a subtract chip anywhere,
Place a constant value of 50.

A on the chip is for the ranger,
B is for the constant value,

Then wire the back thruster to the chip.

Now whenever it cant turn fast enough it will slow down and if it goes to hit a wall it will reverse away then carry on its merry way

Soul-Chicken

  • Guest
Re: Robotic Car (Self driving)
« Reply #9 on: 02 August, 2008, 11:27:10 am »
Nice one.. ;)
And My Hovercar did work it just spazzed when it moved :(

 


SimplePortal 2.3.2 © 2008-2010, SimplePortal