Review fixes
This commit is contained in:
parent
d3854f8308
commit
0eed245e34
|
@ -5,7 +5,7 @@
|
|||
* Fixed autonomous agents' incorrect detection of red traffic lights affecting them
|
||||
* Added walkable pedestrian crosswalks in OpenDRIVE standalone mode
|
||||
* Improved manual_control by adding realistic throttle and brake
|
||||
* Added security features to the standalone OpenDRIVE mode aiming to prevent cars from falling from the road
|
||||
* Added security features to the standalone OpenDRIVE mode aiming to prevent cars from falling down from the road
|
||||
* Added new Behavior agent
|
||||
* Added automatic generation of traffic lights, stop signal and yield signal from OpenDRIVE file
|
||||
* Added examples of sumo co-simulation for Town01, Town04 and Town05
|
||||
|
|
|
@ -333,7 +333,7 @@ Loads a new world with a basic 3D topology generated from the content of an Open
|
|||
- **Parameters:**
|
||||
- `opendrive` (_str_) – Content of an OpenDRIVE file as `string`.
|
||||
- `resolution` (_float_) – Quality of the road mesh, increasing this value can reduce performance (in meters).
|
||||
- `wall_height` (_float_) – Height of a procedurall wall that prevents cars from falling outside the map, only generated in non-junction roads (in meters).
|
||||
- `wall_height` (_float_) – Height of a procedural wall that prevents cars from falling outside the map, only generated in non-junction roads (in meters).
|
||||
- `additional_width` (_float_) – Additional lane width to prevent cars from falling outside the map, only generated in junctions (in meters).
|
||||
- <a name="carla.Client.load_world"></a>**<font color="#7fb800">load_world</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**map_name**</font>)
|
||||
Creates a new world with default settings using `map_name` map. All actors in the current world will be destroyed.
|
||||
|
|
|
@ -64,9 +64,9 @@ namespace client {
|
|||
|
||||
World GenerateOpenDriveWorld(
|
||||
std::string opendrive,
|
||||
double resolution=2.0,
|
||||
double wall_height=0.2,
|
||||
double additional_width=0.2) const {
|
||||
double resolution=2.f,
|
||||
double wall_height=1.f,
|
||||
double additional_width=.6f) const {
|
||||
return World{_simulator->LoadOpenDriveEpisode(
|
||||
std::move(opendrive),
|
||||
resolution,
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
type: float
|
||||
defualt: 1.0
|
||||
doc: >
|
||||
Height of a procedurall wall that prevents cars from falling outside the map, only generated
|
||||
Height of a procedural wall that prevents cars from falling outside the map, only generated
|
||||
in non-junction roads (in meters).
|
||||
- param_name: additional_width
|
||||
type: float
|
||||
|
|
|
@ -72,9 +72,9 @@ void AOpenDriveGenerator::GenerateRoadMesh()
|
|||
|
||||
static const FString ConfigFilePath =
|
||||
FPaths::ProjectContentDir() + "Carla/Maps/OpenDrive/OpenDriveMap.conf";
|
||||
float Resolution = 2;
|
||||
float WallHeight = 1;
|
||||
float AdditionalWidth = 0.6;
|
||||
float Resolution = 2.f;
|
||||
float WallHeight = 1.f;
|
||||
float AdditionalWidth = .6f;
|
||||
if (FPaths::FileExists(ConfigFilePath)) {
|
||||
FString ConfigData;
|
||||
TArray<FString> Lines;
|
||||
|
|
Loading…
Reference in New Issue