Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docker/autoware_msgs.tar
Binary file not shown.
20 changes: 10 additions & 10 deletions example_scenario.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -173,7 +173,7 @@
"points_per_second": 300000,
"upper_fov": 10.0,
"lower_fov": -30.0,
"rotation_frequency": 20,
"rotation_frequency": 20
}
},
{
Expand Down
34 changes: 33 additions & 1 deletion srunner/tools/environment_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
Loading