Thank you for checking the SCANeR Sample Pack.
This project includes turn-key examples for various use cases of SCANeR.
Use it for evaluation, inspiration, starter for your own projects.
Get a free SCANeR Trial here, including all features to use the samples.
AVSimulation encourages collaboration. The SCANeR Samples Pack is open source, and open to your contributions.
-
Step 1. Copy: Recover the Samples Pack to your own Github account ("fork").
Use it on your computer for evaluation, inspiration, starter for your own projects. -
Step 2. Work: Make modifications: improvements, new samples.
Track your changes on your own Github repository, branches. -
Step 3. Publish: Publish your work on AVSimulation's official repository ("pull request").
AVSimulation approves and your modification is published, available for all.
- SCANeR 2022
Get a free Trial version here: AVSimulation Free Downloads - A GitHub Account
- A Git client
Here is a Git client : https://git-scm.com/download/win
Install with default settings (Git Bash is required, Git GUI is nice to have) - Git basics
Feeling rusty with Git? Review the Git basics here: https://git-scm.com/doc
This repository is open to forks.
- Go to the SCANeR Samples Pack repository home
- Click on the
Fork
button in the top right corner. - Confirm the Fork and let Github copy the files to your repository.
Now you have your own copy of the projects in the Samples Pack. 👍
The Samples Pack goes in folder
%LOCAL_STUDIO_PATH%/SCANeR-Samples-Pack-2022/
.
LOCAL_STUDIO_PATH
is an environment variable, like %STUDIO_PATH%
.
(Details in the User Manual: 1.5.4.7.5. Set LOCAL_STUDIO_PATH variable
)
- Create a new folder (e.g.:
D:/SCANeR_data/
). - Find in Windows: "Edit environment variables for your account"
- Add the environment variable "LOCAL_STUDIO_PATH" with full absolute path to your folder (e.g.: "D:\SCANeR_data").
- Open the directory
%LOCAL_STUDIO_PATH%/
Right click > Git Bash here
- Clone your repository:
git clone https://github.com/<NAME>/SCANeR-Samples-Pack.git SCANeR-Samples-Pack-2022
Where <NAME>
is your Github account.
- When prompted, login to GitHub with the account linked to your company e-mail.
- Downloading takes a few seconds.
- Go inside the new local repository :
cd SCANeR-Samples-Pack-2022
Hooks are bash scripts that are executed along with a Git command.
- Enable the hooks provided in this repository:
git config core.hooksPath "./samples-pack-utils/hooks/"
In the folder
samples-pack-utils/
there is a hook script to auto-updateconfiguration.cfg
everytimegit checkout
is called.
Now, SCANeR detects new samples automatically at the next start.
git checkout 2022
Now the working tree (i.e. files in %LOCAL_STUDIO_PATH%/SCANeR-Samples-Pack-2022
) are matching the remote branch.
The Samples Pack is ready to use in SCANeR. 👍
Check out the SCANeR Quick Starts for a guide of each sample.
The remote repository will need to know who makes a contribution.
git config --global user.email "[email protected]"
git config --global user.name "Name Surname"
- On your github repository home, click
Fetch upstream
to recover changes from AVSimulation's repository. - On your local repository, recover the latest changes from your github repository.
git fetch
git pull
You can perform the modifications on your local copy of the Samples Pack.
- Check the list of modified files
git status
- Include new, modified or deleted files to your commit with
git add path/to/the/file
- Save the changes in your current local branch
git commit -m "Replaced some Simulink block"
Parameter "-m" is the commit message that helps everyone know what you did.
When you finished doing the modification and the Samples Pack works, push the branch to the GitHub server.
git push
If you get rejected at this stage, hold on and check merge conflict resolution 💪.
When your work is ready, send it to the official AVSimulation repository.
Your work will be visible to all, and AVSimulation takes care of the migration to new versions.
- On your Github repository home, select the branch that you want to publish.
- Click
Contribute
>Open pull request
. - Left member (destination):
- base repository:
AVSimulation/SCANeR-Samples-Pack
- base:
2022
- base repository:
- Right member (origin): Your repository, and the branch to publish.
- Make sure to fill-in the title and describe your improvement, addition in the comment field. It will make it easier for AVSimulation to understand and approve the change.
Create pull request
Thanks a lot for your contribution 😎
Now AVSimulation will review the modification.
After the pull request is approved, your modification is available to all.
Click on the higlighted names for the user manuals.
SAMPLE_ADAS_AEB
SAMPLE_ADAS_LKA_ACC
SAMPLE_CAMERACAPTURE
SAMPLE_CARMAKER
SAMPLE_COMPUTE_HPC
SAMPLE_COMPUTE_LOCAL
SAMPLE_DATAEXCHANGE
SAMPLE_DEMOS
SAMPLE_EYETRACKER
SAMPLE_FMI
SAMPLE_HEADLIGHTS
SAMPLE_HEADLIGHTS_HPC
SAMPLE_LATERAL_CTRL
SAMPLE_LONGI_CTRL
SAMPLE_PIXEL_LIGHTING
SAMPLE_SCENARIO_IMPORTER
SAMPLE_UTAC_AEB
SAMPLE_VEHICLE_PLAYER