You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main class responsible for setting up the CARLA world and the ego vehicle is InitializeInterface. The configuration parameters are fetched using the carla_interface.
58
+
59
+
### Configureable Parameters for World Loading
60
+
61
+
All the key parameters can be configured in `carla_autoware.launch.xml`.
|`host`| string | "localhost" | Hostname for the CARLA server |
66
+
|`port`| int | "2000" | Port number for the CARLA server |
67
+
|`timeout`| int | 20 | Timeout for the CARLA client |
68
+
|`ego_vehicle_role_name`| string | "ego_vehicle" | Role name for the ego vehicle |
69
+
|`vehicle_type`| string | "vehicle.toyota.prius" | Blueprint ID of the vehicle to spawn. The Blueprint ID of vehicles can be found in [CARLA Blueprint ID](https://carla.readthedocs.io/en/latest/catalogue_vehicles/)|
70
+
|`spawn_point`| string | None | Coordinates for spawning the ego vehicle (None is random). Format = [x, y, z, roll, pitch, yaw]|
71
+
|`carla_map`| string | "Town01" | Name of the map to load in CARLA |
72
+
|`sync_mode`| bool | True | Boolean flag to set synchronous mode in CARLA |
73
+
|`fixed_delta_seconds`| double | 0.05 | Time step for the simulation (related to client FPS) |
74
+
|`objects_definition_file`| string | "$(find-pkg-share carla_autoware)/objects.json" | Sensor parameters file that are used for spawning sensor in CARLA |
75
+
|`use_traffic_manager`| bool | True | Boolean flag to set traffic manager in CARLA |
76
+
77
+
### Configurable Parameters for Sensors
78
+
79
+
Below parameters can be configured in `carla_ros.py`.
|`self.sensor_frequencies`| dict | {"top": 11, "left": 11, "right": 11, "camera": 11, "imu": 50, "status": 50, "pose": 2} | (line 67) Calculates the time interval since the last publication and checks if this interval meets the minimum required to not exceed the desired frequency. It will only affect ROS publishing frequency not CARLA sensor tick. |
84
+
|`self.max_steering_angle`| int | 45 | (Line 74) Maximum steering angle of a vehicle in degrees, used as parameter to compute the mapping from normalized steering input values. |
85
+
86
+
- CARLA sensor parameters can be configured in `config/objects.json`.
87
+
- For more details regarding the parameters that can be modified in CARLA are explained in [Carla Ref Sensor](https://carla.readthedocs.io/en/latest/ref_sensors/).
88
+
89
+
### World Loading
90
+
91
+
The `carla_ros.py` sets up the CARLA world:
92
+
93
+
1.**Client Connection**:
94
+
95
+
```python
96
+
client = carla.Client(self.local_host, self.port)
97
+
client.set_timeout(self.timeout)
98
+
```
99
+
100
+
2.**Load the Map**:
101
+
102
+
Map loaded in CALRA world with map according to `carla_map` parameter.
103
+
104
+
```python
105
+
client.load_world(self.map_name)
106
+
self.world = client.get_world()
107
+
```
108
+
109
+
3.**Spawn Ego Vehicle**:
110
+
111
+
Vehicle are spawn according to `vehicle_type`, `spawn_point`, and `agent_role_name` parameter.
- If you want to edit the sensors configuration used in CARLA, edit `objects.json` located in `carla_autoware/config`. Make sure the sensor configuration is the same as the `sensor_kit` description used in Autoware.
59
128
- Misalignment might occurs during initialization, pressing `init by gnss` button should fix it.
60
-
- Sensor frequency can be changed on `carla_ros.py` Line 67.
61
-
- Changing the `fixed_delta_seconds` can increase the simulation tick (clock), some sensors params in `objects.json` need to be adjusted when it is changed (example: LIDAR rotation frequency have to match the FPS).
129
+
- Changing the `fixed_delta_seconds` can increase the simulation tick (default 0.05 s), some sensors params in `objects.json` need to be adjusted when it is changed (example: LIDAR rotation frequency have to match the FPS).
62
130
63
-
###Known Issues and Future Works
131
+
## Known Issues and Future Works
64
132
65
133
- Testing on procedural map (Adv Digital Twin).
134
+
- Currently unable to test it due to failing in the creation of the Adv digital twin map.
66
135
- Automatic sensor configuration of the CARLA sensors from the Autoware sensor kit.
136
+
- Sensor currently not automatically configurated to have the same location as the Autoware Sensor kit. The current work around is to create a new frame of each sensors with (0, 0, 0, 0, 0, 0) coordinate relative to base_link and attach each sensor on the new frame (`carla_autoware.launch.xml` Line 28). This work around is very limited and restrictive, as when the sensor_kit is changed the sensor location will be wrongly attached.
67
137
- Traffic light recognition.
138
+
- Currently the HDmap of CARLA did not have information regarding the traffic light which is necessary for Autoware to conduct traffic light recognition.
139
+
- Ego Vehicle Control.
140
+
- Currently during sharp turning the ego-vehicle have large lateral error.
0 commit comments