Skip to content

SAMMiCA/Accident_Prediction_2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accident Prediction

  1. Requirements

    • Python 3.6+
    • Ubuntu 20.04
  2. ckpt 다운로드

아래 링크에서 파일을 다운받아 src/ckpt폴더에 둡니다.

Onedrive Download

  1. CARLA 서버 실행

CARLA 서버를 실행합니다.

    $ ./CarlaUE4.sh
  1. CARLA ROS BRIDGE의 manual control 실행

carla ros bridge의 carla_ros_bridge_with_example_ego_vehicle.launch을 실행합니다.

    $ roslaunch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch
  1. accident_prediction 패키지를 넣고 빌드합니다.
    $ roscd
    $ catkin_make
  1. accident_prediction 패키지의 subpub.py 파일을 실행합니다. "/carla/ego_vehicle/rgb_front/image" 토픽을 받아서 50 프레임의 이미지 어레이를 메시지로 담아 img2stream 노드에서 "image_stream" 토픽을 생성합니다.
    $ roscd accident_prediction/src
    $ python subpub.py
  1. accident_prediction 패키지의 rtfm_stream.py 파일을 실행합니다. Float32MultiArray 메시지로 5개의 logit을 담아 전달합니다.
    $ roscd accident_prediction/src
    $ python rtfm_stream.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published