simple-carla 2.3.0__py2.py3-none-any.whl → 2.3.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- simple_carla/__init__.py +20 -22
- {simple_carla-2.3.0.dist-info → simple_carla-2.3.2.dist-info}/METADATA +3 -2
- simple_carla-2.3.2.dist-info/RECORD +10 -0
- {simple_carla-2.3.0.dist-info → simple_carla-2.3.2.dist-info}/WHEEL +1 -1
- simple_carla-2.3.0.dist-info/RECORD +0 -10
- {simple_carla-2.3.0.dist-info → simple_carla-2.3.2.dist-info}/entry_points.txt +0 -0
- {simple_carla-2.3.0.dist-info → simple_carla-2.3.2.dist-info/licenses}/LICENSE +0 -0
simple_carla/__init__.py
CHANGED
@@ -240,7 +240,7 @@ from carla_backend import (
|
|
240
240
|
)
|
241
241
|
|
242
242
|
|
243
|
-
__version__ = "2.3.
|
243
|
+
__version__ = "2.3.2"
|
244
244
|
|
245
245
|
|
246
246
|
# -------------------------------------------------------------------
|
@@ -1295,7 +1295,7 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1295
1295
|
self._plugins[plugin_id] = self._plugin_by_uuid[carla_plugin_name]
|
1296
1296
|
self._plugins[plugin_id].post_embed_init(plugin_id) # Set up parameters, etc.
|
1297
1297
|
else:
|
1298
|
-
logging.error('cb_plugin_added: Plugin "%s" not found in _plugin_by_uuid
|
1298
|
+
logging.error('cb_plugin_added: Plugin "%s" not found in _plugin_by_uuid',
|
1299
1299
|
carla_plugin_name)
|
1300
1300
|
|
1301
1301
|
def cb_plugin_removed(self, plugin_id):
|
@@ -1514,20 +1514,20 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1514
1514
|
# ================================================================================
|
1515
1515
|
|
1516
1516
|
def add_plugin(self, plugin):
|
1517
|
+
logging.debug('add_plugin %s', plugin.unique_name)
|
1517
1518
|
self._plugin_by_uuid[plugin.unique_name] = plugin
|
1518
|
-
if self.
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
): raise Exception("Failed to add plugin")
|
1519
|
+
if not self._add_plugin( # Carla parameter
|
1520
|
+
# ----------------------------------------- # ---------------
|
1521
|
+
plugin.plugin_def['build'], # btype
|
1522
|
+
plugin.plugin_def['type'], # ptype
|
1523
|
+
plugin.plugin_def['filename'], # filename
|
1524
|
+
plugin.unique_name, # name
|
1525
|
+
plugin.plugin_def['label'], # label
|
1526
|
+
int(plugin.plugin_def['uniqueId'] or 0), # uniqueId
|
1527
|
+
None, # extraPtr
|
1528
|
+
PLUGIN_OPTIONS_NULL # options
|
1529
|
+
# ----------------------------------------- # ---------------
|
1530
|
+
): raise Exception("Failed to add plugin")
|
1531
1531
|
|
1532
1532
|
# -------------------------------------------------------------------
|
1533
1533
|
# Plugin access funcs
|
@@ -1801,14 +1801,12 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1801
1801
|
"""
|
1802
1802
|
Generates a "unique_name" string for internal plugin identification.
|
1803
1803
|
"""
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
unique_name = f'{plugin.original_plugin_name} {idx}'
|
1809
|
-
while unique_name in unique_names:
|
1804
|
+
sanitized = plugin.original_plugin_name.replace('/', '.')
|
1805
|
+
idx = 1
|
1806
|
+
unique_name = f'{sanitized} {idx}'
|
1807
|
+
while unique_name in self._plugin_by_uuid:
|
1810
1808
|
idx += 1
|
1811
|
-
unique_name = f'{
|
1809
|
+
unique_name = f'{sanitized} {idx}'
|
1812
1810
|
return unique_name
|
1813
1811
|
|
1814
1812
|
|
@@ -1,10 +1,11 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: simple_carla
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.2
|
4
4
|
Summary: An easy-to-use, object-oriented interface to the carla plugin host.
|
5
5
|
Author-email: Leon Dionne <ldionne@dridesign.sh.cn>
|
6
6
|
Description-Content-Type: text/markdown
|
7
7
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
8
|
+
License-File: LICENSE
|
8
9
|
Requires-Dist: numpy
|
9
10
|
Requires-Dist: log_soso
|
10
11
|
Requires-Dist: PyQt5
|
@@ -0,0 +1,10 @@
|
|
1
|
+
simple_carla/__init__.py,sha256=vnaDXh1Rsfb0QCWbImKtXyB9UgHjT8n25UdWdZP6Big,111175
|
2
|
+
simple_carla/plugin_dialog.py,sha256=uof7YSqVEjgUrWqF-bo76hegsecIOtu6aZr03kdNrKQ,1498
|
3
|
+
simple_carla/qt.py,sha256=8J56Zagbh9ip_HGkhqcNQR36JC8YrUsR4H0QIlhPWIA,15636
|
4
|
+
simple_carla/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
simple_carla/scripts/sc_plugin_def.py,sha256=CVseichHuDCmGeD8v7CfHweeyHHXI60-RcvzU8OILqo,2214
|
6
|
+
simple_carla-2.3.2.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
|
7
|
+
simple_carla-2.3.2.dist-info/licenses/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
8
|
+
simple_carla-2.3.2.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
|
9
|
+
simple_carla-2.3.2.dist-info/METADATA,sha256=TmpI6h38JlwUxsuifu9GrNbuBO5z7iXfp6ZGB9UnuMU,1739
|
10
|
+
simple_carla-2.3.2.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
simple_carla/__init__.py,sha256=L3fZDxy6rWE2SIkFUnUoNIzq03_JAuHwZLClbckRcrM,111348
|
2
|
-
simple_carla/plugin_dialog.py,sha256=uof7YSqVEjgUrWqF-bo76hegsecIOtu6aZr03kdNrKQ,1498
|
3
|
-
simple_carla/qt.py,sha256=8J56Zagbh9ip_HGkhqcNQR36JC8YrUsR4H0QIlhPWIA,15636
|
4
|
-
simple_carla/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
simple_carla/scripts/sc_plugin_def.py,sha256=CVseichHuDCmGeD8v7CfHweeyHHXI60-RcvzU8OILqo,2214
|
6
|
-
simple_carla-2.3.0.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
|
7
|
-
simple_carla-2.3.0.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
8
|
-
simple_carla-2.3.0.dist-info/WHEEL,sha256=j3d_2VkBU36k09xOc4O9RZyJJ8uFqn4BR2AtKD7MOp8,99
|
9
|
-
simple_carla-2.3.0.dist-info/METADATA,sha256=Mgt9G7e4jahQ41b3xfMAUUvkFu6iFjwGl9fz-tHvQ_4,1717
|
10
|
-
simple_carla-2.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|