xrkong / carla-ros-bridge

ROS Humble bridge for CARLA v0.9.15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ROS2 bridge for CARLA simulator v0.9.15

This ROS package is a modified fork of the carla-simulator/ros-bridge package that is adopted to work with ROS2 Humble running on Ubuntu 22.04 LTS with Scenario Runner v0.9.15. The ROS bridge enables two-way communication between ROS and CARLA. The information from the CARLA server is translated to ROS topics. In the same way, the messages sent between nodes in ROS get translated to commands to be applied in CARLA.

Main Requirements

  • OS: Ubuntu 22.04 LTS
  • CARLA Version: 0.9.15
  • Scenario Runner Version: 0.9.15
  • ROS Version: Humble
  • NOTE: All testing were peformed using Python 3.10. The default CARLA PythonAPI only supports Python 2.7 and 3.7 (and 3.8 by extension). Updated .whl and .egg files for Python 3.10 can be found at https://github.com/gezp/carla_ros/releases/.

Screenshot of Carla AD Demo in Action

rviz setup

Instructions (adapted from ROS Bridge Documentation)

  1. Set up a project directory and clone the ROS bridge repository and submodules:
mkdir -p ~/Workspace/ros-bridge && cd ~/Workspace/ros-bridge
git clone --recurse-submodules https://github.com/ttgamage/carla-ros-bridge.git
mv carla-ros-bridge src
  1. Set up ROS environment and install dependencies:
source /opt/ros/humble/setup.bash
rosdep update
rosdep install --from-paths src --ignore-src -r
  1. Build the ROS bridge workspace using colcon:
colcon build --symlink-install

About

ROS Humble bridge for CARLA v0.9.15

License:MIT License


Languages

Language:Python 83.9%Language:C++ 11.2%Language:CMake 3.7%Language:Shell 0.7%Language:Makefile 0.3%Language:Dockerfile 0.3%