fixes to ros2 native demo

This commit is contained in:
Joel Moriana 2024-10-10 12:18:56 +02:00 committed by Blyron
parent 2b249b501c
commit 359f723d20
2 changed files with 5 additions and 2 deletions

View File

@ -82,6 +82,9 @@ def main(args):
settings.fixed_delta_seconds = 0.05 settings.fixed_delta_seconds = 0.05
world.apply_settings(settings) world.apply_settings(settings)
traffic_manager = client.get_trafficmanager()
traffic_manager.set_synchronous_mode(True)
with open(args.file) as f: with open(args.file) as f:
config = json.load(f) config = json.load(f)

View File

@ -1,5 +1,5 @@
{ {
"type": "vehicle.lincoln.mkz_2020", "type": "vehicle.lincoln.mkz",
"id": "hero", "id": "hero",
"sensors": [ "sensors": [
{ {
@ -20,7 +20,7 @@
"range": 85, "range": 85,
"channels": 64, "channels": 64,
"points_per_second": 600000, "points_per_second": 600000,
"rotation_frequency": 10, "rotation_frequency": 20,
"upper_fov": 10, "upper_fov": 10,
"lower_fov": -30, "lower_fov": -30,
"atmosphere_attenuation_rate": 0.004, "atmosphere_attenuation_rate": 0.004,