simple-carla 2.3.1__py2.py3-none-any.whl → 2.3.3__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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # simple_carla/__init__.py
2
2
  #
3
- # Copyright 2024 liyang <liyang@veronica>
3
+ # Copyright 2024 Leon Dionne <ldionne@dridesign.sh.cn>
4
4
  #
5
5
  # This program is free software; you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
@@ -240,7 +240,7 @@ from carla_backend import (
240
240
  )
241
241
 
242
242
 
243
- __version__ = "2.3.1"
243
+ __version__ = "2.3.3"
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 when added',
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.is_engine_running():
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")
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
- unique_names = [ existing_plugin.unique_name \
1805
- for existing_plugin in self._plugin_by_uuid.values() \
1806
- if existing_plugin.original_plugin_name == plugin.original_plugin_name ]
1807
- idx = len(unique_names) + 1
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'{plugin.original_plugin_name} {idx}'
1809
+ unique_name = f'{sanitized} {idx}'
1812
1810
  return unique_name
1813
1811
 
1814
1812
 
@@ -1,6 +1,6 @@
1
1
  # simple_carla/plugin_dialog.py
2
2
  #
3
- # Copyright 2024 liyang <liyang@veronica>
3
+ # Copyright 2024 Leon Dionne <ldionne@dridesign.sh.cn>
4
4
  #
5
5
  """
6
6
  Provides a means to use Carla's plugin dialog to compile a plugin's
@@ -18,7 +18,7 @@ class CarlaPluginDialog():
18
18
  """
19
19
  Wrapper for Carla's native plugin selection dialog.
20
20
  This is a singleton class. You may call the constructor repatedly, and it will
21
- usethe same instance for the life of the program.
21
+ use the same instance for the life of the program.
22
22
  """
23
23
  _instance = None
24
24
  _carla_felib = None
simple_carla/qt.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # simple_carla/qt.py
2
2
  #
3
- # Copyright 2024 liyang <liyang@veronica>
3
+ # Copyright 2024 Leon Dionne <ldionne@dridesign.sh.cn>
4
4
  #
5
5
  # This program is free software; you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple_carla
3
- Version: 2.3.1
3
+ Version: 2.3.3
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
@@ -0,0 +1,10 @@
1
+ simple_carla/__init__.py,sha256=sN0PZ45zL3Z6er6P5SFlqeFeqdNdPrG9Z-lGmbDGB54,111188
2
+ simple_carla/plugin_dialog.py,sha256=XPlskS2SWyTqiuW4po6QsMyk3Z-XpVvJAfN27ZpkqtI,1512
3
+ simple_carla/qt.py,sha256=kFM4GPMWOWb6d2-zjPLLF_IrLEgyCbedmuvXjK6Fqho,15649
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.3.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
7
+ simple_carla-2.3.3.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
8
+ simple_carla-2.3.3.dist-info/WHEEL,sha256=j3d_2VkBU36k09xOc4O9RZyJJ8uFqn4BR2AtKD7MOp8,99
9
+ simple_carla-2.3.3.dist-info/METADATA,sha256=15c1DnL67V96NLF_9WrhysyTu7omFnTRigGZoOppgFE,1717
10
+ simple_carla-2.3.3.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- simple_carla/__init__.py,sha256=kRS200ry_mceHWRIsRzQBJ6gCvayWJmFHjwzNph_cW8,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.1.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
7
- simple_carla-2.3.1.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
8
- simple_carla-2.3.1.dist-info/WHEEL,sha256=j3d_2VkBU36k09xOc4O9RZyJJ8uFqn4BR2AtKD7MOp8,99
9
- simple_carla-2.3.1.dist-info/METADATA,sha256=-zwNqs3aLSXQZOhc9wpTAL_ARS_kXRkd7uxsZL2VzYM,1717
10
- simple_carla-2.3.1.dist-info/RECORD,,