diff --git a/docker/autoware_msgs.tar b/docker/autoware_msgs.tar index bec9450..2bfca57 100644 Binary files a/docker/autoware_msgs.tar and b/docker/autoware_msgs.tar differ diff --git a/example_scenario.json b/example_scenario.json index 8d3255a..b66d2ed 100644 --- a/example_scenario.json +++ b/example_scenario.json @@ -7,7 +7,7 @@ { "weather": { "route_percentage": 0.0, - "preciptation": 100.0, + "precipitation": 100.0, "precipitation_deposits": 100.0, "wetness": 100.0, "wind_intensity": 100.0, @@ -19,7 +19,7 @@ { "weather": { "route_percentage": 50.0, - "preciptation": 0.0, + "precipitation": 0.0, "precipitation_deposits": 0.0, "wetness": 0.0, "wind_intensity": 0.0, @@ -63,7 +63,7 @@ "weather": { "route_percentage": 0.0, "cloudiness": 0.0, - "preciptation": 100.0, + "precipitation": 100.0, "precipitation_deposits": 100.0, "wetness": 100.0, "wind_intensity": 100.0, @@ -76,7 +76,7 @@ "weather": { "route_percentage": 50.0, "cloudiness": 50.0, - "preciptation": 0.0, + "precipitation": 0.0, "precipitation_deposits": 0.0, "wetness": 0.0, "wind_intensity": 0.0, @@ -89,7 +89,7 @@ "weather": { "route_percentage": 100.0, "cloudiness": 100.0, - "preciptation": 0.0, + "precipitation": 0.0, "precipitation_deposits": 0.0, "wetness": 0.0, "wind_intensity": 0.0, @@ -132,10 +132,10 @@ "town": "Town01", "route-id": 0, "ego_vehicle": { - "x": 1234, - "y": 5.2, - "z": 3123471, - "yaw": -173, + "x": 312, + "y": 129, + "z": 0, + "yaw": 180, "model": "vehicle.toyota.prius", "name": "ego_vehicle", "sensor_configuration": [ @@ -173,7 +173,7 @@ "points_per_second": 300000, "upper_fov": 10.0, "lower_fov": -30.0, - "rotation_frequency": 20, + "rotation_frequency": 20 } }, { diff --git a/srunner/tools/environment_parser.py b/srunner/tools/environment_parser.py index 24769de..1970a8f 100644 --- a/srunner/tools/environment_parser.py +++ b/srunner/tools/environment_parser.py @@ -34,7 +34,39 @@ def __init__(self) -> None: def _spawn(self, bp_library, vehicle) -> None: sensor_bp = bp_library.find(str(self.type)) - ignored_params = ["type", "id", "spawn"] + ignored_params = [ + "__class__", + "__delattr__", + "__dict__", + "__dir__", + "__doc__", + "__eq__", + "__format__", + "__ge__", + "__getattribute__", + "__gt__", + "__hash__", + "__init__", + "__init_subclass__", + "__le__", + "__lt__", + "__module__", + "__ne__", + "__new__", + "__reduce__", + "__reduce_ex__", + "__repr__", + "__setattr__", + "__sizeof__", + "__str__", + "__subclasshook__", + "__weakref__", + "_spawn", + "serealize", + "id", + "spawn", + "type", + ] sensor_params = [attr for attr in dir(self) if attr not in ignored_params]