CAS-LRJ / ISS

Intelligent Self-driving System
51 stars 15 forks source link

AttributeError in VehiclePIDController during Carla Simulation with Lanelet2 Integration #24

Open Jumbo-zczlbj0 opened 5 months ago

Jumbo-zczlbj0 commented 5 months ago

Environment:

Python version: 3.8.10 Operating System: Docker ubuntu20.04 CARLA version: 0.9.13 Additional relevant environment details Issue Description: pytorch==2.1.2, cuda==11.8, ros==Noetic Document: examples/demo_lanelet_planner.ipynb

Description:

I encountered an AttributeError while running a simulation in Carla (version 0.9.13) using the Lanelet2 library for high-definition mapping and path planning. The error occurs in the VehiclePIDController class, specifically when the run_step method is called.

Steps to Reproduce: Load the Town06 map in Carla. Parse the map using Lanelet2 and project the points. Utilize Lanelet2 for path planning and visualize the path in Carla. Implement the global path planner with Lanelet2 routing. Run the simulation with the VehiclePIDController. Expected Behavior:

The VehiclePIDController should successfully control the vehicle along the planned path without any errors.

Observed Behavior:

The simulation throws an AttributeError when run_step method of VehiclePIDController is called. The error message is as follows:

7

Possible Causes/Suggestions:

It appears that the run_step method is returning None, leading to the AttributeError. This might be due to incorrect handling of vehicle state or parameters within the method.