GithubHelp home page GithubHelp logo

vehicularkech / carla-autoware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carla-simulator/carla-autoware

0.0 0.0 0.0 603 KB

Integration of AutoWare AV software with the CARLA simulator

License: MIT License

CMake 2.33% Python 87.37% C++ 4.13% Dockerfile 3.82% Shell 2.36%

carla-autoware's Introduction

Autoware in Carla

Integration of AutoWare AV software with the CARLA simulator

Requirements

  • ROS kinetic
  • Autoware (tested with 1.9.1)
  • PointCloud Map (see Map Creation)

Opens

  • object detection (especially traffic lights)
  • no compliance with traffic rules (due to missing vector map)
  • vehicle control is not optimal yet (depending on vehicle)

Setup

Autoware

Setup/build Autoware as described here: https://github.com/CPFL/Autoware

Carla

Download version of Carla from here: https://github.com/carla-simulator/carla

Carla Autoware Bridge

The Carla Autoware Bridge is a ROS package. Therefore we create a catkin workspace (containing all relevant packages). The generic Carla ROS bridge (https://github.com/carla-simulator/ros-bridge.git) is included as GIT submodule and has to be initialized ("git submodule update --init") and updated ("git submodule update").

cd ~
git lfs clone https://github.com/carla-simulator/carla-autoware.git
cd carla-autoware
git submodule update --init
cd catkin_ws
catkin_init_workspace src/
cd src
ln -s <path-to-autoware>/ros/src/msgs/autoware_msgs
cd ..
catkin_make

Run

To run Autoware within Carla please use the following execution order:

  1. Carla Server
  2. Autoware Runtime Manager
  3. Carla Autoware Bridge
  4. Autoware Stack

You need two terminals:

#Terminal 1

#execute Carla
SDL_VIDEODRIVER=offscreen <path-to-carla>/CarlaUE4.sh /Game/Carla/Maps/Town01 -benchmark -fps=10


#Terminal 2

export CARLA_AUTOWARE_ROOT=~/carla-autoware

#execute Autoware (forks into background)
<path-to-autoware>/ros/run

#execute carla-autoware-bridge and carla-autoware-bridge
export PYTHONPATH=<path-to-carla>/PythonAPI/carla-<version_and_arch>.egg:<path-to-carla>/PythonAPI/
source $CARLA_AUTOWARE_ROOT/catkin_ws/devel/setup.bash
#either execute a headless Carla client
roslaunch carla_autoware_bridge carla_autoware_bridge.launch
#or
roslaunch carla_autoware_bridge carla_autoware_bridge_with_manual_control.launch

In Autoware Runtime Manager, select the customized launch files:

Autoware Runtime Manager Settings

In Autoware Runtime Manager, start rviz and open the configuration /ros/src/.config/rviz/default.rviz

Now you can start the Autoware Stack by starting all launch files from top to bottom. The car should start moving.

Autoware Runtime Manager Settings

A special camera is positioned behind the car to see the car and its environment. You can subscribe to it via /carla/ego_vehicle/camera/rgb/viewFromBehind/image_color.

carla-autoware's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.