Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions PythonAPI/carla/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

此包允许您控制 HUTB 模拟器并通过 Python API 检索模拟数据。例如,您可以控制模拟中的任何参与者(人、车、无人机、交通信号灯等),将传感器连接到参与者,并读取传感器数据等。

## 开发

```shell
cd hutb/PythonAPI/carla
# 实现编辑模式安装
# 修改 setup.py 后需要再次运行才会生效
pip install -e .
# 测试 API
python ../util/config.py -l
python ../examples/holoocean/getting_started.py
```

更多信息,请参阅 [HUTB 文档](https://openhutb.github.io/)
5 changes: 3 additions & 2 deletions PythonAPI/carla/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def prune_rss(self):
# also increase version number API_VERSION in Uitl/BuildTools/Windows.mk
setup(
name='hutb',
version='2.10.0',
version='2.10.1',
author='OpenHUTB',
package_dir={'': 'source'},
packages=['carla', 'airsim', 'carla.ad', 'carla.ad.rss', 'carla.ad.map'] if is_rss_variant_enabled() else ['carla', 'airsim'],
packages=['carla', 'airsim', 'holoocean', 'carla.ad', 'carla.ad.rss', 'carla.ad.map'] if is_rss_variant_enabled() else ['carla', 'airsim', 'holoocean'],
# For non-rss build do a fine grained include/exclude on the package data.
package_data={'carla' : [""]},
exclude_package_data={} if is_rss_variant_enabled() else {'carla':[CleanADStubFiles.CARLA_RSS_STUB_FILE]},
Expand All @@ -216,3 +216,4 @@ def prune_rss(self):
'msgpack-rpc-python', 'numpy', 'opencv-contrib-python'
]
)
# pip uninstall pywin32
8 changes: 8 additions & 0 deletions PythonAPI/carla/source/holoocean/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""HoloOcean is an underwater robotics simulator.
"""
__version__ = '1.0.0'

from holoocean.holoocean import make
from holoocean.packagemanager import *

__all__ = ['agents', 'environments', 'exceptions', 'holoocean', 'lcm', 'make', 'packagemanager', 'sensors']
Loading
Loading