4.4 KiB
Update CARLA
- Update commands summary
- Get the lastest binary release
- Update Linux and Windows build
- Get development assets
To post unexpected issues, doubts or suggestions, feel free to login in the CARLA forum.
Update commands summary
Show command lines to update CARLA
# Update a CARLA packaged release.
# 1. Delete the current one.
# 2. Follow the Quick start installation to get the one desired.
# Update Linux build.
git checkout master
make clean
git pull origin master
./Update.sh
# Update Windows build.
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.
# Extract the new content in `Unreal\CarlaUE4\Content\Carla`.
# Get development assets.
# Delete the `/Carla` folder containing previous assets.
# Go to the main carla folder.
git clone https://bitbucket.org/carla-simulator/carla-content Unreal/CarlaUE4/Content/Carla
Get latest binary release
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 to get the one desired.
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.
Update Linux and Windows build
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.
git checkout master
Clean the build
Go to the main CARLA folder and delete binaries and temporals generated by the previous build.
make clean
Pull from origin
Get the current version from master
in the CARLA repository.
git pull origin master
Download the assets
Linux.
./Update.sh
Windows.
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
.
!!! Note In order to work with that the CARLA team is devleoping, go to get development assets below.
Launch the server
Run the server in spectator view to make sure that everything worked properly.
make launch
Get development assets
The CARLA team works with assets still in development. These models and maps have a public git repository where the CARLA team regularly pushes latest updates. Assets are still unfinished, using them is only recommended for developers.
In order to handle this repository it is advisted to install git-lfs. The repository is modified regularly, and git-lfs works faster with large binary files.
To clone the repository, go to the main CARLA directory and run the following command.
git clone https://bitbucket.org/carla-simulator/carla-content Unreal/CarlaUE4/Content/Carla
!!! Warning
Delete the /Carla
folder containing the assets before cloning the repository. Otherwise, an error will show.