Code Monkey home page Code Monkey logo

Comments (5)

nsubiron avatar nsubiron commented on May 20, 2024 11

Hi,

"CarlaUE4.sh" is only present in the release version, inside the package CARLA_X.X.X.tar.gz.

If you build CARLA from source, you must open CARLA project with Unreal Editor. This can be done with

$ cd Unreal/CarlaUE4
$ ~/UnrealEngine_4.XX/Engine/Binaries/Linux/UE4Editor "$PWD/CarlaUE4.uproject"

Adjust to match your Unreal Engine folder if necessary.

from carla.

marcgpuig avatar marcgpuig commented on May 20, 2024 3

Hi @ishaan95.

First of all, if you just want to run carla on Windows I recommend you to go to release page and download the last Windows compiled version from there. Then you can run the .exe with the same parameters as CarlaUE4.sh (notice .sh files are for Linux), for example:

CarlaUE4.exe -carla-settings=Example.CarlaSettings.ini -windowed -resx=800 -resy=600

If you still want, not only use it, but modify the simulator with Unreal, please just copy carla\Docs\Example.CarlaSettings.ini to carla\Unreal\CarlaUE4\Config\CarlaSettings.ini and Unreal Engine will load the correct configuration from CarlaSettings.ini when you hit play on the editor.

from carla.

krydm avatar krydm commented on May 20, 2024

@nsubiron I've grabbed carla-0.8.2.tar.gz, and it doesn't contain CarlaUE4.sh either. On the other hand when I just open the project with ~/UnrealEngine_4.17/Engine/Binaries/Linux/UE4Editor "$PWD/CarlaUE4.uproject", it opens fine, but the Pyhton client(/client_example.py --autopilot) returns me just
ERROR: (localhost:2000) failed to connect: [Errno 111] Connection refused.
I've found the world port Carla Engine Settings, it is indeed 2000, but is not editable. Could you advise plz? How can I edit it or what else could happen to connection?
Besides it would still good to have the shell script -- is it possible?
I believe I follow the guidelines in http://carla.readthedocs.io/en/latest/
TIA

from carla.

nsubiron avatar nsubiron commented on May 20, 2024

@krydm The CARLA_0.8.2.tar.gz (compiled version) does have a "CarlaUE4.sh". If you grabbed the source code then it doesn't, in that case you need to compile dependencies and source code, open the Unreal project, enable networking in "Unreal/CarlaUE4/Config/CarlaSettings.ini", and press Play in the editor. But using the source code is only necessary if you want to modify and recompile CARLA, if you just want to run it you are just fine using the compiled version.

from carla.

ishaan95 avatar ishaan95 commented on May 20, 2024

Hi,
I am trying to run carla on windows and I have built it using the automatic installation mentioned -
here
I couldn't find the CarlaUE4.sh file in any folder. I followed the instructions in this thread and am not understanding the last instruction given by @nsubiron. I did compile the dependencies and source code but could not find CarlaSettings.ini at the location mentioned.

Could you give more details as how to enable networking in the Carlasettings config file through the unreal editor, where the config file is located (Should we create our own config file like Example settings.ini?) and (just to clarify) what the sequence of commands to run carla in client server mode.

Also, in client_example.py it is mentioned we can use make_carla_client context manager, where does that fit in all this?

from carla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.