Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OpenHUTB/carla_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nongfugengxia committed Jun 13, 2024
2 parents 1789546 + d503339 commit a09b5b8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
10 changes: 3 additions & 7 deletions docs/tuto_G_instance_segmentation_sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,29 @@ world = client.get_world()
settings = world.get_settings()
settings.synchronous_mode = True
world.apply_settings(settings)

```

设置实例分割传感器并将其生成在所需的地图位置。

```py

# Get the map spawn points and the spectator
# 获得地图的生成点和观察者
spawn_points = world.get_map().get_spawn_points()
spectator = world.get_spectator()

# Set the camera to some location in the map
# 在地图上某些位置设置相机
cam_location = carla.Location(x=-46., y=152, z=18)
cam_rotation = carla.Rotation(pitch=-21, yaw=-93.4, roll=0)
camera_transform = carla.Transform(location=cam_location, rotation=cam_rotation)
spectator.set_transform(camera_transform)

# Retrieve the semantic camera blueprint and spawn the camera
# 获取语义相机蓝图和生成相机
instance_camera_bp = world.get_blueprint_library().find('sensor.camera.instance_segmentation')
instance_camera = world.try_spawn_actor(instance_camera_bp, camera_transform)

```

在摄像机周围生成车辆,用大量对象实例填充场景。

```py

# Spawn vehicles in an 80m vicinity of the camera
vehicle_bp_library = world.get_blueprint_library().filter('*vehicle*')
radius = 80
Expand Down
2 changes: 1 addition & 1 deletion docs/tuto_G_unreal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

`stat rhi`: Rendering Hardware Interface,显示RHI内存和性能统计数据。

`HighResShot 3840x2160` —— 指定分辨率截图(分辨率)图片存储位置:\Saved\Screenshots\
`HighResShot 3840x2160` —— 指定分辨率截图(分辨率)图片存储位置:`\Saved\Screenshots\`


## [渲染管线](https://zhuanlan.zhihu.com/p/373995698)
Expand Down
6 changes: 3 additions & 3 deletions docs/tuto_M_add_map_package.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ __5.__ 导航至 `~/carla/Util/Docker`。这是导入脚本所在的位置。该
__6.__ 包将在 `output_folder` 中生成为 `<map_package>.tar.gz`. 。这是独立包,现在可以导入到 Carla 中。将包移动到 Carla 根目录(您将在其中使用地图的包/二进制版本)中的 `Import` 文件夹,然后从根目录运行以下脚本将其导入:

```sh
./ImportAssets.sh
./ImportAssets.sh
```

__7.__ 要使用新地图运行仿真,请运行 Carla,然后使用 `config.py` 文件更改地图:

```sh
cd PythonAPI/util
python3 config.py --map <mapName>
cd PythonAPI/util
python3 config.py --map <mapName>
```
<br>

Expand Down
2 changes: 1 addition & 1 deletion docs/tuto_M_custom_layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ __3. 保存关卡。__

---

如果您对流程有任何疑问,可以在 [论坛](https://github.com/carla-simulator/carla/discussions)中提问。
如果您对流程有任何疑问,可以在 [论坛](https://github.com/carla-simulator/carla/discussions) 中提问。

<div class="build-buttons">
<p>
Expand Down
2 changes: 1 addition & 1 deletion docs/tuto_M_generate_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __请记住,包含大量道具的地图会显着减慢导入过程。__ 这是

[rr_tutorials]: https://www.mathworks.com/support/search.html?fq=asset_type_name:video%20category:roadrunner/index&page=1&s_tid=CRUX_topnav

以下是从 RoadRunner 导出自定义地图的基本指南。您可以在 [MathWorks' 文档][exportlink] 中找到有关如何导出到 Carla 的更多详细信息。
以下是从 RoadRunner 导出自定义地图的基本指南。您可以在 [MathWorks 文档][exportlink] 中找到有关如何导出到 Carla 的更多详细信息。

[exportlink]: https://www.mathworks.com/help/roadrunner/ug/Exporting-to-CARLA.html

Expand Down

0 comments on commit a09b5b8

Please sign in to comment.