Installation

Introduction

We are excited to announce that the highly requested feature of bridging BeamNG.tech and MATLAB is here. MATLAB, with its long history as an academic engineering and mathematical tool, is a programming and numeric computing platform used to analyse data, develop algorithms, and create models. The newly created bridge with MATLAB will enable you to run, control, and interact with the BeamNG.tech simulation. We have integrated five main scripts for your convenience in making use of annotations, bounding boxes, multi-shot camera, object placement, vehicle state plotting and creation of simple scenarios on our East Coast USA map.

Prequest

you must have the following softwares/packages installed

Compatibility

Running the BeamNG ROS integration requires three individual software components, here is a list of compatible versions.

BeamNG.tech BeamNGpy BeamNG ROS Integration
0.28 1.26 0.1.3
0.27 1.25.1 0.1.2
0.26 1.24 0.1.1
0.25 1.23.1 0.1.0

WSL2 setup

ROS1 integration is built on top of Windows Subsystem for Linux (WSL2). The recommended linux version is ubuntu focal 20.04 , and The recommended ROS 1 distribution is Noetic . The ROS bridge is made through python API support from BeamNGpy .

ROS setup

setup catkin_ws

Install and build ROS bridge
git@github.com:BeamNG/beamng-ros-integration.git
cd ~/catkin_ws/ && catkin_make 

WSL2 dependencies

sudo apt install python3-rosdep2
sudo apt install python3-pip
pip install beamngpy
sudo apt-get install ros-noetic-rostest
sudo apt-get install ros-noetic-actionlib
python3 -m pip install -U scikit-image
sudo apt install python3-rosservice
Last modified: 2/4/2023 16:45

Any further questions?

Join our discord