Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Can you rate the autopilot?

Discussion in 'General Discussion' started by DeepFive, Nov 22, 2022.

  1. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6

    The autopilot is based on AI.
    The road is randomly generated.
    The location of static objects (yellow cones) is set randomly.
    The location and speed of dynamic objects (yellow cars and pedestrians) are set randomly.
    This provides an infinite number of road situations.
    The main (green) car is a dynamic object and has a weight.
    The main (green) car is driven using powers.
    The power amount simulates the operation of the pedals of the car.
    The power direction simulates the operation of the steering wheel of the car.

    Thanks!
     
  2. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,679
    Have you tried slower vehicle speed or a map with twice the distance between curves and other road elements?
    Since it appears like the AI impressively does make the right decision most of the time but it still ends up driving along the middle line and makes other hasty looking actions simply because new road elements come up way too early so it cannot finish its intended maneuver.
     
  3. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6
    The movement in the lane is not a matter of principle. This function can be completely deactivated.
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    It looks like something I could myself write without much trouble.

    Overall.

    1. It drives very slowly.
    2. The vehicle looks like it might not be physically driven. If it is physically driven, then it operates at speed where physics do not matter.
    3. It does not appear to use movement prediction for the pedestrian.
    4. Doesn't look like it can reverse.

    A more interesting t est would be a racing circuit with dynamic obstacles, followed by city streets using real life speeds and distance.

    Additionally:
    It would be more interresting if you removed the "power direction" and used completely physically driven vehicle.

    In real life non-4wd car the "power direction" is forward and backward.
     
  5. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,679
    How would you want it to drive faster on those short track segments? o_O It would need to take way more unrealistically sharp turns if it did, wouldn't it?

    I agree with trying to use physically driven system though. Like the "single track model" (effectively simulates a bike, not a 4wheeler, but way simpler to implement).
     
  6. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6
    How? With formulas? We don't use calculations, we use AI.
     
  7. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6
    Therefore, the autopilot can work in ANY traffic situation.
     
  8. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    I'd go for a boids-based approach with a bit of fuzzy logic thrown in. That algorithm has proven to be a great controller for crowds and flocks and would work on cars as well.

    Using formulas would be still an AI. If/else tree is still an AI. Decision tree is an AI. Any solution that makes an agent make decision is an AI. When you have no AI, it means your car doesn't drive without a player controlling it.

    If you're talking about neural networks, then your solution has to demonstrate some significant advantage compared to other methods. Your video has demonstrated. nothing notable. The speeds are safe and slow, the car can't stay in a lane, and the roads are sparsely populated, with a very small number of other agents nearby.
     
    Last edited: Nov 22, 2022
  9. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6
    Can you show something similar? On YouTube, for example?

    We can run a live stream of the autopilot's work (24/7)...
     
  10. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    Are you trying to defend honor of your favorite project right now? You asked for feedback. This is feedback. "It does not look very good, it drives very slowly, and it resembles something that can be done with traditional methods".

    For a better driver, grab ANY racing game.

    For a better demo of the tech, try following:
    1. Use physical cars. With no "power dirctional" but an actual physical drive and steering wheels. Your car at the moment does not appear to have suspension, for example, as it is glued to the road and doesn't even tilt when turning.
    2. Use a thousand agents.
    3. Add a racing circuit.
    4. Increase speeds to racing levels.
    5. Add dynamic obstacles, falling rocks, and pinwheel turns to the circuit.
    6. Use different cars with different mass, and different drives (fwd, rwd, 4wd)
    7. Add trucks with trailers.
    8. Make sure everything reaches the goal without as much as a scratch.

    That would be impressive.

    Additionally, consider practical application. Where is it going to be used?
    For a racing circuit, it is too slow and has not demonstrated ability to turn at high speeds.
    For a city builder, this is useless, as city builders use "particle cars".
    For a GTA clone this is also not very useful, because GTA also uses slightly mroe complex particle cars, which spawn out of thin air in invisible areas and despawn in other invisible areas.

    Basically, a flexible AI driver has its use in a game like space engineers, where playes build their own vehicles. In that case, however, it would need to be able to operate any sort of monstrosity with any number of wheels, irregular combination of steering wheels, all t he while avoiding stuff like flipping over due to high center of mass and so on. But you aren't demonstrating anything like procedural car. The car is premade, and all other cars on the road use the same configuration.
     
  11. DeepFive

    DeepFive

    Joined:
    Nov 22, 2022
    Posts:
    6
    Ok. The speed and acceleration of the car has limits. The algorithm can be used for both games and real cars.

    You can only see the testing of the algorithm.

    The algorithm can turn the car around. And it can play tennis:
     
  12. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    I wouldn't ever make this sort of claim, as being in a simulated world has inherent huge advantages that are missing in reality.

    Again, this sort of thing can be done with simpler methods, so there's not much point to try to involve neural network here.

    You registered today, likely to advertise some sort of service or a product.

    However, a product sort of has to demonstrate some quality that is missing in current solutions. Both demos lack any kind of "wow" factor or "I have no idea how it could be done" factors.

    An impressive demo would be DeepMind playing atari by reading screen. For a video game car in order to get a "wow" factor you'd need much more than just driving procedural roads.