Skip to content

Commit

Permalink
fixed brain path; added config file for IL brain
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiqi Zhao committed Oct 2, 2023
1 parent 6ee6e02 commit 8732893
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import math
import carla

PRETRAINED_MODELS = ROOT_PATH + '/' + PRETRAINED_MODELS_DIR + 'il_models/'
PRETRAINED_MODELS = ROOT_PATH + '/' + PRETRAINED_MODELS_DIR + 'CARLA/'

class Brain:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Behaviors:
Robot:
Sensors:
Cameras:
Camera_0:
Name: 'camera_0'
Topic: '/carla/ego_vehicle/rgb_front/image'
Camera_1:
Name: 'camera_1'
Topic: '/carla/ego_vehicle/rgb_view/image'
Camera_2:
Name: 'camera_2'
Topic: '/carla/ego_vehicle/semantic_segmentation_front/image'
Camera_3:
Name: 'camera_3'
Topic: '/carla/ego_vehicle/dvs_front/image'
Pose3D:
Pose3D_0:
Name: 'pose3d_0'
Topic: '/carla/ego_vehicle/odometry'
BirdEyeView:
BirdEyeView_0:
Name: 'bird_eye_view_0'
Topic: ''
Speedometer:
Speedometer_0:
Name: 'speedometer_0'
Topic: '/carla/ego_vehicle/speedometer'
Actuators:
CARLA_Motors:
Motors_0:
Name: 'motors_0'
Topic: '/carla/ego_vehicle/vehicle_control_cmd'
MaxV: 3
MaxW: 0.3
BrainPath: 'brains/CARLA/brain_carla_segmentation_based_imitation_learning.py'
PilotTimeCycle: 50
AsyncMode: False
Parameters:
Model: 'pilotnet_v8.0.pth'
ImageCropped: False
ImageSize: [ 100,50 ]
ImageNormalized: True
PredictionsNormalized: True
GPU: True
UseOptimized: False
ImageTranform: ''
Type: 'CARLA'
Simulation:
World: configs/CARLA/CARLA_launch_files/town_02_anticlockwise_imitation_learning.launch
RandomSpawnPoint: False
NumberOfVehicle: 50
NumberOfWalker: 0
PercentagePedestriansRunning: 0.5
PercentagePedestriansCrossing: 0.5
Dataset:
In: '/tmp/my_bag.bag'
Out: ''
Stats:
Out: './'
PerfectLap: './perfect_bags/lap-simple-circuit.bag'
Layout:
Frame_0:
Name: frame_0
Geometry: [0, 1, 1, 2]
Data: rgbimage
Frame_1:
Name: frame_1
Geometry: [1, 1, 1, 2]
Data: rgbimage

0 comments on commit 8732893

Please sign in to comment.