In CARLA v0.9.6, I tried to select map from bundled map.
But, this selection is not reflected.
By the way, I could reflect in previous version(v0.9.5).
Has the option to select bundled map changed?
$ cd CARLA_0.9.6
$ ./CarlaUE4.sh Town01 -windowed -ResX=320 -ResY=240 -benchmark -fps=10
$ cd CARLA_0.9.6/PythonAPI/examples
$ python manual_control.py
I tried to use Town01 via option of simulator. But, Town03 is selected.
I am also having this problem with 0.9.6. Previously, in 0.9.5, I specified the desired map at launch time:
./CarlaUE4.sh /Game/Carla/Maps/Town06 -windowed -ResX=160 -ResY=120 -quality-level=Low
But that no longer works. The documentation says the python API in 0.9.6 can be used to load a map:
world = client.load_map('Town01')
but when I try that method, I get: TypeError: 'NoneType' object is not iterable
At least for the python API, it seems like the documentation was just wrong. The command for loading a map should be load_world. Pull request here: #1914
I am still unable to set the map at launch, however.
@togaen Thank you for your help! I changed PythonAPI/examples/manual_control.py to select map.
def game_loop(args):
pygame.init()
pygame.font.init()
world = None
try:
client = carla.Client(args.host, args.port)
client.set_timeout(2.0)
+ client.load_world('Town01')
+ client.reload_world()
As a result, I was able to select the map to Town01.
It seems that I need to call reload_world().
According to @jackbart94, the map can no longer be set at launch time. Instead, he says:
You now have to launch
./CarlaUE4.sh
then on another terminal go to PythonAPI/util and launch
python config.py -h
and it will give you the list of everything you can change, but now at runtime. For example, to put Town05 do
python config.py -m Town05
Yes, the problem is that now in Linux the package is now 'shipping' mode instead of 'development' mode like previously. The first is better in performance, but at the cost that is difficult for debugging and it does not allow using command line parameters when launching ./CarlaUE4.sh.
So, all the command line parameters have been moved to the config.py script, which also includes a few more parameters. I think we don't have all these well explained, so we will check the documentation.
Thanks for telling.
@bernatx @togaen Thank you for your comment. I'll try to use config.py.
@bernatx Thanks for the explanation. Yeah, it would be great to update the docs and make it clearer. Also, it would be really helpful if the launch script emits a warning or something if someone passes in an argument that is no longer supported. When I initially noticed the map argument wasn't working, I thought my installation was corrupt and I spent a lot of time verifying that it was not.
Most helpful comment
According to @jackbart94, the map can no longer be set at launch time. Instead, he says:
You now have to launch
./CarlaUE4.shthen on another terminal go to PythonAPI/util and launch
python config.py -hand it will give you the list of everything you can change, but now at runtime. For example, to put Town05 do
python config.py -m Town05