Skip to content

Commit f222d0e

Browse files
style(pre-commit): autofix
1 parent daae273 commit f222d0e

3 files changed

Lines changed: 21 additions & 18 deletions

File tree

simulator/autoware_carla_interface/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,22 @@ Ego vehicle commands from Autoware are processed through the `autoware_raw_vehic
114114

115115
All the key parameters can be configured in `autoware_carla_interface.launch.xml`.
116116

117-
| Name | Type | Default Value | Description |
118-
| ------------------------ | ------ | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
119-
| `host` | string | "localhost" | Hostname for the CARLA server |
120-
| `port` | int | "2000" | Port number for the CARLA server |
121-
| `timeout` | int | 20 | Timeout for the CARLA client |
122-
| `ego_vehicle_role_name` | string | "ego_vehicle" | Role name for the ego vehicle |
123-
| `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/) |
124-
| `spawn_point` | string | None | Coordinates for spawning the ego vehicle (None is random). Format = [x, y, z, roll, pitch, yaw] |
125-
| `sync_mode` | bool | True | Boolean flag to set synchronous mode in CARLA |
126-
| `fixed_delta_seconds` | double | 0.05 | Time step for the simulation (related to client FPS) |
127-
| `use_traffic_manager` | bool | False | Boolean flag to set traffic manager in CARLA |
128-
| `max_real_delta_seconds` | double | 0.05 | Parameter to limit the simulation speed below `fixed_delta_seconds` |
129-
| `sensor_kit_name` | string | "carla_sensor_kit_description" | Name of the sensor kit package to use for sensor configuration. Should be the \*\_description package containing config/sensor_kit_calibration.yaml |
130-
| `use_light_weight_sensor_mapping` | bool | False | If True, uses `sensor_mapping_light_weight.yaml` instead of the default `sensor_mapping.yaml` to reduce simulator load. See [Sensor Mapping (CARLA-specific)](#2-sensor-mapping-carla-specific) for details. |
131-
| `sensor_mapping_file` | string | "$(find-pkg-share autoware_carla_interface)/config/sensor_mapping.yaml" | Path to sensor mapping YAML configuration file. When `use_light_weight_sensor_mapping` is True, this defaults to `config/sensor_mapping_light_weight.yaml`. |
132-
| `config_file` | string | "$(find-pkg-share autoware_carla_interface)/raw_vehicle_cmd_converter.param.yaml" | Control mapping file to be used in `autoware_raw_vehicle_cmd_converter`. Current control are calibrated based on `vehicle.toyota.prius` Blueprints ID in CARLA. Changing the vehicle type may need a recalibration. |
117+
| Name | Type | Default Value | Description |
118+
| --------------------------------- | ------ | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
119+
| `host` | string | "localhost" | Hostname for the CARLA server |
120+
| `port` | int | "2000" | Port number for the CARLA server |
121+
| `timeout` | int | 20 | Timeout for the CARLA client |
122+
| `ego_vehicle_role_name` | string | "ego_vehicle" | Role name for the ego vehicle |
123+
| `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/) |
124+
| `spawn_point` | string | None | Coordinates for spawning the ego vehicle (None is random). Format = [x, y, z, roll, pitch, yaw] |
125+
| `sync_mode` | bool | True | Boolean flag to set synchronous mode in CARLA |
126+
| `fixed_delta_seconds` | double | 0.05 | Time step for the simulation (related to client FPS) |
127+
| `use_traffic_manager` | bool | False | Boolean flag to set traffic manager in CARLA |
128+
| `max_real_delta_seconds` | double | 0.05 | Parameter to limit the simulation speed below `fixed_delta_seconds` |
129+
| `sensor_kit_name` | string | "carla_sensor_kit_description" | Name of the sensor kit package to use for sensor configuration. Should be the \*\_description package containing config/sensor_kit_calibration.yaml |
130+
| `use_light_weight_sensor_mapping` | bool | False | If True, uses `sensor_mapping_light_weight.yaml` instead of the default `sensor_mapping.yaml` to reduce simulator load. See [Sensor Mapping (CARLA-specific)](#2-sensor-mapping-carla-specific) for details. |
131+
| `sensor_mapping_file` | string | "$(find-pkg-share autoware_carla_interface)/config/sensor_mapping.yaml" | Path to sensor mapping YAML configuration file. When `use_light_weight_sensor_mapping` is True, this defaults to `config/sensor_mapping_light_weight.yaml`. |
132+
| `config_file` | string | "$(find-pkg-share autoware_carla_interface)/raw_vehicle_cmd_converter.param.yaml" | Control mapping file to be used in `autoware_raw_vehicle_cmd_converter`. Current control are calibrated based on `vehicle.toyota.prius` Blueprints ID in CARLA. Changing the vehicle type may need a recalibration. |
133133

134134
### Sensor Configuration
135135

simulator/autoware_carla_interface/config/sensor_mapping_light_weight.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ sensor_mappings:
4141
image_size_y: 720
4242
fov: 120.0
4343

44-
4544
# IMU sensor
4645
tamagawa/imu_link:
4746
carla_type: sensor.other.imu

simulator/autoware_carla_interface/launch/autoware_carla_interface.launch.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
<log message="[CARLA Interface] Map Path: '$(var map_path)' -> Loading CARLA Map: '$(var carla_map)'"/>
2323

2424
<!-- Sensor Configuration -->
25-
<arg name="use_light_weight_sensor_mapping" default="False" description="Whether to use the light-weight sensor mapping YAML that reduces the number of sensors and their frequencies for performance optimization"/>
25+
<arg
26+
name="use_light_weight_sensor_mapping"
27+
default="False"
28+
description="Whether to use the light-weight sensor mapping YAML that reduces the number of sensors and their frequencies for performance optimization"
29+
/>
2630
<arg name="sensor_kit_name" default="carla_sensor_kit_description" description="Name of the sensor kit package containing calibration"/>
2731
<let name="sensor_mapping_file_default" value="$(find-pkg-share autoware_carla_interface)/config/sensor_mapping_light_weight.yaml" if="$(var use_light_weight_sensor_mapping)"/>
2832
<let name="sensor_mapping_file_default" value="$(find-pkg-share autoware_carla_interface)/config/sensor_mapping.yaml" unless="$(var use_light_weight_sensor_mapping)"/>

0 commit comments

Comments
 (0)