Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an opponents #1

Open
PazAranyi opened this issue Dec 23, 2021 · 1 comment
Open

Add an opponents #1

PazAranyi opened this issue Dec 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@PazAranyi
Copy link

Hi,

First of all, great work!

I want to try some tracking algorithms, and to do so, I want to add opponents to the race, but I couldn't find a way to do that.
Can you help me?

@gerkone
Copy link
Owner

gerkone commented Dec 23, 2021

Hey

To start a race torcs load a "raceman" config file. This can be done through command line with the -r option

torcs -r [your config]

At the moment if no config is specified torcs falls back to practice (what is currently used).

If you want to add opponents you can do so by editing the quickrace.xml config file to include more opponents (add other drivers besides scr_server inside <section name="Drivers">).
Please note that I left only 'berniw' as CPU driver, you could add more and rebuild the container if you want.
After editing quickrace you would need to run torcs with it as a config file. Add -r config/raceman/quickrace.xml to the run torcs run command (you could even make this a simulation parameter)

command.extend(["torcs", "-nofuel", "-nodamage", "-nolaptime"])


As of now I cannot work on this project. It was part of my bachelor thesis but I no longer have time for it. If you need some suggestions I can help though, and if you manage to get it working and pull request I’ll merge.

@gerkone gerkone added the enhancement New feature or request label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants