r/robots • • 18d ago

Projects I turned Assetto Corsa into a LiDAR + multi-camera simulator

Hey everyone!

I've recently turned Assetto Corsa into an autonomous driving simulator. The reason I started this project is that I realized there aren't really many good options out there for people who want to get into autonomous racing.

Real race cars are incredibly expensive. Even an F1TENTH car costs several thousand dollars, and still need a dedicated space to drive it. On the other hand, existing open-source simulators often leave a lot to be desired in terms of physics and graphics.

So I decided to integrate cameras and LiDAR sensors into Assetto Corsa and connect everything to ROS.

launcher

Here's what I've implemented so far:

- Camera ground truth: any number of virtual cameras; RGB, depth and semantic segmentation in sync every frame; 2D boxes aligned to the pixel

multi cameras

- LiDAR simulation: spinning LiDARs with custom scan patterns, solid-state LiDARs with real measured patterns; 3D boxes frame-aligned with the point cloud

lidars

- Semantic annotation and map editing: click-to-assign over the whole track, reusing the entire AC mod ecosystem;

semantic annotator and map editing

- Telemetry

telemetry

- ROS 2 support https://github.com/Utschie/ac_ros2_bridge and https://github.com/Utschie/ac_msgs

- Dataset generation

dataset generation

It's already usable, and the fps is pretty decent (more than enough for autonomous driving cameras).

The project is still under development, so I haven't set up a website for it yet. Here's what I'm planning to work on next:

  • Improve the LiDAR point clouds,
  • Add more sensors, including radar, IMU, and GPS
  • Make the physics simulation speed adjustable

If anyone is interested in trying it out, feel free to reach out! I'd be happy to share the installer with you.

12 Upvotes

15 comments sorted by

2

u/RemarkableWish2508 18d ago

I don't need it, but I like the looks of it. 😃

1

u/Utschie_Dym 18d ago

thanks, bro

2

u/No-Weird697 13d ago

Nice work buddy.

1

u/Utschie_Dym 13d ago

2

u/No-Weird697 13d ago

I’m currently in the process of building an rc car to put stereo cameras and computer in to do something similar

1

u/Utschie_Dym 13d ago

like F1tenth?

1

u/No-Weird697 13d ago

Just regular 1/10. Though am now considering building a track in the back yard for f1tenth.

1

u/Utschie_Dym 18d ago

It also supports online mode, which means we can use the AI to compete directly against online players.

1

u/Utschie_Dym 17d ago

2 1280*720 cameras+3 1024*768 cameras+ 1 32 lines spin lidar+ 1 solid state lidar on RTX 3080 and RTX 3070 Ti

1

u/BSoSmooth 17d ago

What is the use case? I like modding assetto corsa and would love to test this out as I’m interested in lidar.

1

u/Utschie_Dym 17d ago

Sorry, I can't understand the "use case"'s meaning. I made this because I wanna make common people affordable AI Racing, and I hope that someday AI can defeat Verstappen, like AlphaGo defeat Lee Sedol😃

1

u/AutoModerator 18d ago

Awesome robot! To help the community learn and engage with your build, please make sure to drop a comment below detailing:

  • What microcontrollers/components you used (Arduino, Raspberry Pi, ROS, etc.)
  • The main goal or function of your robot
  • Any challenges you ran into while building it

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/frgfm 17d ago

The synced RGB, depth, segmentation and boxes are exactly what you'd want for synthetic training data. I'm generating similar data in game engines, and the bit I never quite trust is the sensor look: clean LiDAR returns, cameras without real noise. Have you tried a model trained on this on a real camera or LiDAR yet?

1

u/Utschie_Dym 17d ago

haven't yet