From 359f723d20edd1084512c967a53e22771c9a1045 Mon Sep 17 00:00:00 2001 From: Joel Moriana Date: Thu, 10 Oct 2024 12:18:56 +0200 Subject: [PATCH] fixes to ros2 native demo --- PythonAPI/examples/ros2/ros2_native.py | 3 +++ PythonAPI/examples/ros2/stack.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PythonAPI/examples/ros2/ros2_native.py b/PythonAPI/examples/ros2/ros2_native.py index 5c0bf426a..cd2725816 100644 --- a/PythonAPI/examples/ros2/ros2_native.py +++ b/PythonAPI/examples/ros2/ros2_native.py @@ -82,6 +82,9 @@ def main(args): settings.fixed_delta_seconds = 0.05 world.apply_settings(settings) + traffic_manager = client.get_trafficmanager() + traffic_manager.set_synchronous_mode(True) + with open(args.file) as f: config = json.load(f) diff --git a/PythonAPI/examples/ros2/stack.json b/PythonAPI/examples/ros2/stack.json index 5c56a12eb..aafcc2e22 100644 --- a/PythonAPI/examples/ros2/stack.json +++ b/PythonAPI/examples/ros2/stack.json @@ -1,5 +1,5 @@ { - "type": "vehicle.lincoln.mkz_2020", + "type": "vehicle.lincoln.mkz", "id": "hero", "sensors": [ { @@ -20,7 +20,7 @@ "range": 85, "channels": 64, "points_per_second": 600000, - "rotation_frequency": 10, + "rotation_frequency": 20, "upper_fov": 10, "lower_fov": -30, "atmosphere_attenuation_rate": 0.004,