2020-03-02 21:35:50 +08:00
# Update CARLA
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
* [__Update commands summary__ ](#update-commands-summary )
* [__Get the lastest binary release__ ](#get-latest-binary-release )
* [__Update Linux and Windows build__ ](#update-linux-and-windows-build )
* [Clean the build ](#clean-the-build )
* [Pull from origin ](#pull-from-origin )
* [Download the assets ](#download-the-assets )
* [Launch the server ](#launch-the-server )
* [__Get development assets__ ](#get-development-assets )
2020-02-07 20:59:31 +08:00
To post unexpected issues, doubts or suggestions, feel free to login in the CARLA forum.
< div class = "build-buttons" >
< p >
2021-04-22 12:59:07 +08:00
< a href = "https://github.com/carla-simulator/carla/discussions/" target = "_blank" class = "btn btn-neutral" title = "Go to the latest CARLA release" >
2020-02-07 20:59:31 +08:00
CARLA forum< / a >
< / p >
< / div >
2020-03-11 22:42:41 +08:00
---
## Update commands summary
< details >
< summary > Show command lines to update CARLA< / summary >
```sh
2023-12-13 15:00:20 +08:00
# Update a CARLA packaged release.
# 1. Delete the current one.
# 2. Follow the Quick start installation to get the one desired.
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
# Update Linux build.
2020-03-11 22:42:41 +08:00
git checkout master
make clean
git pull origin master
./Update.sh
2023-12-13 15:00:20 +08:00
# Update Windows build.
2020-03-11 22:42:41 +08:00
git checkout master
make clean
git pull origin master
# Erase the content in `Unreal\CarlaUE4\Content\Carla`.
# Go to `\Util\ContentVersions.txt`.
# Download the latest content.
2023-12-13 15:00:20 +08:00
# Extract the new content in `Unreal\CarlaUE4\Content\Carla`.
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
# Get development assets.
# Delete the `/Carla` folder containing previous assets.
2020-03-11 22:42:41 +08:00
# Go to the main carla folder.
git clone https://bitbucket.org/carla-simulator/carla-content Unreal/CarlaUE4/Content/Carla
```
< / details >
2020-03-02 21:35:50 +08:00
---
2023-12-13 15:00:20 +08:00
## Get latest binary release
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
Binary releases are prepackaged and thus, tied to a specific version of CARLA. To get the latest, erase the previous and follow the [quick start installation ](start_quickstart.md ) to get the one desired.
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
Releases are listed in __Development__ in the CARLA repository. There is also a highly experimental __Nightly build__ containing the current state of CARLA up to date.
2020-02-07 20:59:31 +08:00
< div class = "build-buttons" >
< p >
2020-03-11 22:42:41 +08:00
< a href = "https://github.com/carla-simulator/carla/blob/master/Docs/download.md" target = "_blank" class = "btn btn-neutral" title = "Go to the list of CARLA releases" >
< span class = "icon icon-github" > < / span > Get releases< / a >
2020-02-07 20:59:31 +08:00
< / p >
< p >
2023-12-13 15:00:20 +08:00
< a href = "https://carla-releases.s3.us-east-005.backblazeb2.com/Linux/Dev/CARLA_Latest.tar.gz" target = "_blank" class = "btn btn-neutral" title = "Go to the linux nightly CARLA build" >
2023-04-14 14:41:52 +08:00
< span class = "icon fa-cloud-download" > < / span > Get the linux nightly build< / a >
2020-02-07 20:59:31 +08:00
< / p >
2023-04-14 14:41:52 +08:00
< p >
2023-12-13 15:00:20 +08:00
< a href = "https://carla-releases.s3.us-east-005.backblazeb2.com/Linux/Dev/AdditionalMaps_Latest.tar.gz" target = "_blank" class = "btn btn-neutral" title = "Go to the linux nightly AdditionalMaps build" >
2023-04-14 14:41:52 +08:00
< span class = "icon fa-cloud-download" > < / span > Get the linux nightly build additional maps< / a >
< / p >
< p >
2023-12-13 15:00:20 +08:00
< a href = "https://carla-releases.s3.us-east-005.backblazeb2.com/Windows/Dev/CARLA_Latest.zip" target = "_blank" class = "btn btn-neutral" title = "Go to the windows nightly CARLA build" >
2023-04-14 14:41:52 +08:00
< span class = "icon fa-cloud-download" > < / span > Get the windows nightly build< / a >
< / p >
< p >
2023-12-13 15:00:20 +08:00
< a href = "https://carla-releases.s3.us-east-005.backblazeb2.com/Windows/Dev/AdditionalMaps_Latest.zip" target = "_blank" class = "btn btn-neutral" title = "Go to the windows nightly AdditionalMaps build" >
2023-04-14 14:41:52 +08:00
< span class = "icon fa-cloud-download" > < / span > Get the windows nightly build additional maps< / a >
< / p >
2020-02-07 20:59:31 +08:00
< / div >
2020-03-02 21:35:50 +08:00
---
## Update Linux and Windows build
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
Make sure to be in the local `master` branch before the update. Then, merge or rebase the changes to other branches and solve possible conflicts.
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
```sh
2020-02-07 20:59:31 +08:00
git checkout master
2020-03-11 22:42:41 +08:00
```
### Clean the build
Go to the main CARLA folder and delete binaries and temporals generated by the previous build.
2023-12-13 15:00:20 +08:00
```sh
2020-02-07 20:59:31 +08:00
make clean
```
2020-03-11 22:42:41 +08:00
### Pull from origin
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
Get the current version from `master` in the CARLA repository.
2020-02-07 20:59:31 +08:00
```sh
git pull origin master
```
2020-03-11 22:42:41 +08:00
### Download the assets
__Linux.__
2020-02-07 20:59:31 +08:00
```sh
./Update.sh
```
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
__Windows.__
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
__1.__ Erase the previous content in `Unreal\CarlaUE4\Content\Carla` .
__2.__ Go to `\Util\ContentVersions.txt` .
__3.__ Download the content for `latest` .
__4.__ Extract the new content in `Unreal\CarlaUE4\Content\Carla` .
2020-02-07 20:59:31 +08:00
!!! Note
2023-12-13 15:00:20 +08:00
In order to work with that the CARLA team is devleoping, go to __get development assets__ below.
2020-02-07 20:59:31 +08:00
2020-03-11 22:42:41 +08:00
### Launch the server
2023-12-13 15:00:20 +08:00
Run the server in spectator view to make sure that everything worked properly.
2020-02-07 20:59:31 +08:00
```sh
make launch
```
2020-03-02 21:35:50 +08:00
---
## Get development assets
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
The CARLA team works with assets still in development. These models and maps have a [public git repository][contentrepolink] where the CARLA team regularly pushes latest updates. Assets are still unfinished, using them is only recommended for developers.
2020-03-11 22:42:41 +08:00
2023-12-13 15:00:20 +08:00
In order to handle this repository it is advisted to install [git-lfs][gitlfslink]. The repository is modified regularly, and git-lfs works faster with large binary files.
2020-02-07 20:59:31 +08:00
2023-12-13 15:00:20 +08:00
To clone the repository, __go to the main CARLA directory__ and run the following command.
2020-02-07 20:59:31 +08:00
```sh
git clone https://bitbucket.org/carla-simulator/carla-content Unreal/CarlaUE4/Content/Carla
```
!!! Warning
2023-12-13 15:00:20 +08:00
Delete the `/Carla` folder containing the assets before cloning the repository. Otherwise, an error will show.
2020-02-07 20:59:31 +08:00
[contentrepolink]: https://bitbucket.org/carla-simulator/carla-content
[gitlfslink]: https://github.com/git-lfs/git-lfs/wiki/Installation