Code Monkey home page Code Monkey logo

carla-setup's Introduction

Carla-setup

Welcome to my custom setup for the Carla simulator!

Before diving in, if you're new to Carla, make sure to visit the Carla Simulator Quick Start Guide for an overview.

Overview

My setup revolves around using the latest Carla distributions directly from the source. While the version available in Ubuntu 20 repositories is typically 13, I prefer version 15 for its updated features. However, version 13 works just fine for most cases. Screenshot_20240411_161423

Installation

To get started, head over to the Carla Releases Page and download the appropriate version for your needs. The crucial file is the binary distribution.

Once downloaded, extract the files using the TAR command in your terminal:

tar -xzvf <carla_file.tar.gz>

Screenshot_20240417_034639

Grab a cup of coffee while you wait for the extraction process to complete!

Usage

After extraction, it's time to test your Carla setup. Use the following command to run Carla:

./CarlaUE4.sh -quality-level=Low -ResX=360 -ResY=240
  • 'quality-level': Adjusts the graphic quality.
  • 'ResX': Sets the window resolution along the x-axis.
  • 'ResY': Sets the window resolution along the y-axis.

Additional arguments you can use:

  • 'benchmak': Sets Carla to benchmark mode for performance metrics.
  • 'fps=X ':Adjusts the frames per second (replace X with your desired FPS).

Getting Started with Examples

Carla Simulator is written in Python 3.7 and can be interacted with using its Python API.

Navigate to the PythonAPI folder within your Carla directory (typically ~/Carla/PythonAPI). Here, you'll find essential files for communication:

  • utils: Contains important files like config.py to change the town settings.
  • carla: Check the dist folder here if you encounter import issues with the Carla module.
  • examples: Explore this folder for ready-to-use examples (although sometimes they may have issues).
cd ~/Carla/PythonAPU/examples
ls

Run any of the examples. For instance, to run manual_control.py, execute:

python manual_control.py

Demos

For a demonstration of Carla in action, check out my demo here!

Demos

carla-setup's People

Contributors

hifzhil avatar

Watchers

 avatar

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.