Difference between revisions of "Vehicle simulation software"

From BITPlan Wiki
Jump to navigation Jump to search
Line 197: Line 197:
 
=== Python API ===
 
=== Python API ===
 
<source lang='bash'>
 
<source lang='bash'>
make PythonAPI
+
carla-mac/Build/boost-1.69.0-install/include/boost/gil/extension/io/png/tags.hpp:25:14: fatal error:
...
+
      'png.h' file not found
'png.h' file not found
 
 
     #include <png.h>
 
     #include <png.h>
 
             ^~~~~~~
 
             ^~~~~~~
 +
1 error generated.
 +
 
</source>
 
</source>
  

Revision as of 11:09, 22 July 2019

[edit]

As of 2019-07-15:

Software Sources Since/Wikipedia Latest Stackoverflow Language Windows Linux MacOS
Carla github 2017-04 0.9.6 2019-07-12 3 C++ Open issue
BeamNG BeamNG.research 2015-05-29 3 C#
TORCS sourceforge 1997 1.3.7 2016-05-26 4 C++ ❌ (Intel)
Speed Dreams sourceforge 2010-03-27 2.2.1 2016-04-19 - C++
[edit]

Installation trial on Mac OS 10.9.5 / 10.13.6

see also https://github.com/carla-simulator/carla/issues/150

git clone https://github.com/carla-simulator/carla
cd carla
make launch
clang 7 is required, but it's not installed.
make: *** [setup] Error 1
sudo port install clang-7.0 coreutils
cd /opt/local/bin
sudo ln -s gtac tac
cd carla
./Update.sh

Epic Games Launcher does not run on Mac OS 10.9.5

Dyld Error Message:
  Symbol not found: _OBJC_CLASS_$_NSMutableURLRequest

Retry on a 10.13.6 machine ...

/usr/bin/xcodebuild -version
Xcode 10.1
Build version 10B61
git clone https://github.com/analog-garage/carla -b mac-build-0.9 carla-mac
cd carla-mac
make launch
/Users/wf/source/cpp/carla-mac/Util/BuildTools/Environment.sh: line 49: nproc: command not found
make: *** [setup] Error 127
cd /opt/local/bin
sudo ln -s gnproc nproc
sudo ln -s python2.7 python2
sudo ln -s python3.7 python3
cd carla-mac
python2 --version
Python 2.7.16
python3 --version
Python 3.7.4
make launch
 'boost/date_time/posix_time/posix_time_types.hpp' file not found

BuildLibCarla.command: Success!
BuildCarlaUE4.command: ERROR: UE4_ROOT is not defined, or points to a non-existant directory, please set this environment variable.
make: *** [launch] Error 2

Had to reboot Mac OS to get Epic Games Launcher run properly and Install Unreal Engine 4.22.3 from there.

Retry on a 10.13.6 Laptop

sudo port install clang-7.0 coreutils
# modify .bash_profile:
export PATH="/opt/local/libexec/gnubin:$PATH
which nproc
/opt/local/libexec/gnubin/nproc
which tac
/opt/local/libexec/gnubin/tac
sudo port select --set python2 python27
sudo port select --set python3 python37
python2 --version
Python 2.7.16
python3 --version
Python 3.7.4
/usr/bin/xcodebuild -version
Xcode 10.1
Build version 10B61
git clone https://github.com/analog-garage/carla -b mac-build-0.9 carla-mac
cd carla-mac
make launch
./Update.sh
...
Traceback (most recent call last):
  File "./Util/download_from_gdrive.py", line 11, in <module>
    import argparse
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/argparse.py", line 87, in <module>
    import re as _re
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
sudo pip uninstall -y enum34
export UE4_ROOT=/Users/Shared/EpicGames/UE_4.22
make launch

Issue with Update.sh

./Update.sh 
Backing up existing Content...
renamed '/Users/wf/source/cpp/carla-mac/Unreal/CarlaUE4/Content/Carla' -> '/Users/wf/source/cpp/carla-mac/Unreal/CarlaUE4/Content/Carla_20190721173259'
Traceback (most recent call last):
  File "./Util/download_from_gdrive.py", line 15, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
sudo port select set python3 python36
sudo port select set python python36
./Update.sh
# wait a while for the GBytes to be downloaded and unpacked
make launch
...
BuildLibCarla.command: Success!
BuildCarlaUE4.command: Using Unreal Engine at '/Users/Shared/EpicGames/UE_4.22'
BuildCarlaUE4.command: Generate Unreal project files.
BuildCarlaUE4.command: ERROR: No GenerateProjectFiles.sh in /Users/Shared/EpicGames/UE_4.22. You can copy this from UnrealEngine source tree.

Issue with No GenerateProjectFiles.sh

seems to be at https://raw.githubusercontent.com/soxueren/EpicGames-UnrealEngine/master/GenerateProjectFiles.sh

cd /Users/Shared/EpicGames/UE_4.22/
wget https://raw.githubusercontent.com/soxueren/EpicGames-UnrealEngine/master/GenerateProjectFiles.sh
chmod +x GenerateProjectFiles.sh
cd carla-mac
make launch

Issue with compilation

carla-mac/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Walker/WalkerAIController.h:34:16: error: declaration of 'Possess' overrides a 'final' function
  virtual void Possess(APawn *aPawn) override;

see https://github.com/carla-simulator/carla/issues/1583

export UE4_ROOT=/Users/Shared/EpicGames/UE_4.21
cd /Users/Shared/EpicGames/UE_4.21/
wget https://raw.githubusercontent.com/soxueren/EpicGames-UnrealEngine/master/GenerateProjectFiles.sh
chmod +x GenerateProjectFiles.sh
cd carla-mac
make launch
...
** BUILD SUCCEEDED **

BuildCarlaUE4.command: Launching UE4Editor...

Python API

carla-mac/Build/boost-1.69.0-install/include/boost/gil/extension/io/png/tags.hpp:25:14: fatal error: 
      'png.h' file not found
    #include <png.h>
             ^~~~~~~
1 error generated.