Skip to content

3D-Mapping in Carla by using Depth & RGB camera and adding virtual objects to camera output

Notifications You must be signed in to change notification settings

kkaiwwana/CARLA-Mapping-3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carla 3D-Mapping and Adding Virtual Objects

3D-Mapping in Carla by using Depth & RGB camera and adding virtual objects (project patch to carla world in this demo) to camera output.

Quick Start

clone this repo & run carla simu

git clone https://github.com/iaoqian/carla_3d-mapping_and_adding_virtual_objects.git
cd [YOUR-PATH-TO-CARLA]
.\CarlaUE4

carla 3d-mapping

cd carla_3d-mapping_and_adding_virtual_objects/src
python carla_3d_mapping.py --map Town10HD --save_data_path [YOUR-PATH-TO-SAVE-DATA]

point cloud visualizing

python visualize_point_cloud.py --files [YOUR-POINT-CLOUD-FILE-PATH]

patch projecting

python carla_projecting_patch.py --z 40 --pitch 0

Carla 3D-Mapping

carla_3d_mapping

Add Virtual Object

project_patch

Motivation

I didn't really find some works like this (I see some Carla Mapping by using LiDAR, no color and C++ project). There must be some reason that stopped them to do something like it and I think I find that: there might be a BUG in Carla coordinates transform API.

Bassicly, some code dealing with coordinates transform went wrong in carla, which leads to some problem that make transform coordinates in Carla between Camera-Coord-Sys and World-Coord-Sys went wrong and then make merging multiple point cloud to one impossible. There are some related issues: #553 Transform | #3051 Merging multiple point cloud from depth camera | #6435 Merge/align point clouds from different perspectives)

I implemented that part of code by my own and made it working and looks good to me. I submited an issue to Carla.

for more details: #6719.

About

3D-Mapping in Carla by using Depth & RGB camera and adding virtual objects to camera output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages