From 712c35347c0846167da232e0ceb477c1112316e6 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 10:04:29 +0200 Subject: [PATCH 01/80] initial version of dynamic helmfile --- deployments/helmfile/CMD.md | 38 + .../carla-ackermann-control/params.yml | 18 + .../values.yaml.gotmpl | 16 + .../values.yaml.gotmpl | 18 + .../carla-converter/params.yml | 13 + .../carla-converter/values.yaml.gotmpl | 12 + .../carla-environment/set_environment.py | 842 ++++++++++ .../carla-environment/values.yaml.gotmpl | 13 + .../carla-manual-control/values.yaml.gotmpl | 14 + .../carla-ros-bridge/values.yaml.gotmpl | 36 + .../scenario_checker.py | 1413 +++++++++++++++++ .../values.yaml.gotmpl | 34 + .../scenario_checker.py | 1413 +++++++++++++++++ .../values.yaml.gotmpl | 35 + .../carla-server/DefaultEngine.ini | 165 ++ .../carla-server/values.yaml.gotmpl | 12 + .../carla-simulation-adapter/params.yml | 27 + .../values.yaml.gotmpl | 23 + .../carla-spawn-objects/values.yaml.gotmpl | 88 + .../ros-middleware-bridge/params.yml | 49 + .../ros-middleware-bridge/values.yaml.gotmpl | 19 + .../helmfile/environments/base.yaml.gotmpl | 11 + .../environments/overrides.yaml.gotmpl | 2 + .../environments/profiles.yaml.gotmpl | 26 + deployments/helmfile/helmfile.yaml | 143 ++ .../karl-lateral-limits-v1p3.csv | 132 ++ .../ackermann_trajectory_control/params.yml | 186 +++ .../values.yaml.gotmpl | 21 + .../robot-state-publisher/values.yaml.gotmpl | 15 + .../triton-server/values.yaml.gotmpl | 7 + .../zenoh-router/values.yaml.gotmpl | 1 + .../lanelet2_map_server/values.yaml.gotmpl | 35 + .../bag-recorder/values.yaml.gotmpl | 33 + .../monitoring/rviz-carla/carla.rviz | 895 +++++++++++ .../monitoring/rviz-carla/values.yaml.gotmpl | 26 + .../perception/point_cloud_fusion/params.yml | 59 + .../point_cloud_fusion/values.yaml.gotmpl | 26 + .../point_cloud_object_detection/params.yml | 74 + .../values.yaml.gotmpl | 41 + .../lanelet2_route_planning/params.yml | 25 + .../values.yaml.gotmpl | 13 + .../planning/simple_planner/params.yml | 82 + .../simple_planner/values.yaml.gotmpl | 36 + .../trajectory_optimization/params.yml | 49 + .../values.yaml.gotmpl | 40 + .../values.yaml.gotmpl | 29 + .../params.yml | 8 + .../values.yaml.gotmpl | 25 + .../params.yml | 8 + .../values.yaml.gotmpl | 25 + 50 files changed, 6371 insertions(+) create mode 100644 deployments/helmfile/CMD.md create mode 100644 deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml create mode 100644 deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-converter/params.yml create mode 100644 deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-environment/set_environment.py create mode 100644 deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py create mode 100644 deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py create mode 100644 deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini create mode 100644 deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml create mode 100644 deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl create mode 100644 deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml create mode 100644 deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl create mode 100644 deployments/helmfile/environments/base.yaml.gotmpl create mode 100644 deployments/helmfile/environments/overrides.yaml.gotmpl create mode 100644 deployments/helmfile/environments/profiles.yaml.gotmpl create mode 100644 deployments/helmfile/helmfile.yaml create mode 100644 deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv create mode 100644 deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml create mode 100644 deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz create mode 100644 deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml create mode 100644 deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml create mode 100644 deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml create mode 100644 deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/planning/simple_planner/params.yml create mode 100644 deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml create mode 100644 deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml create mode 100644 deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl create mode 100644 deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml create mode 100644 deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md new file mode 100644 index 0000000..5ac8a3b --- /dev/null +++ b/deployments/helmfile/CMD.md @@ -0,0 +1,38 @@ +# Helmfile commands + +Run these commands from the OpenADSim repository root. + +Regenerate the supported Helmfile release universe. `COMPOSE_PROFILES` from +`.env` determines which releases are enabled by default. GUI and SUMO are not +exported yet: + +```sh +./utils/compose-to-k8s/compose_to_helmfile.py \ + --output-dir deployments/helmfile \ + docker-compose.yml +``` + +Generate the same complete release universe, but enable only `perception` by +default: + +```sh +./utils/compose-to-k8s/compose_to_helmfile.py \ + --profile perception \ + --output-dir deployments/helmfile \ + docker-compose.yml +``` + +Deploy or update the complete Helmfile: + +```sh +helmfile --file deployments/helmfile/helmfile.yaml sync +``` + +Deploy or update only the RViz component: + +```sh +helmfile --file deployments/helmfile/helmfile.yaml \ + --selector name=zenoh-router \ + --selector name=rviz-carla \ + sync +``` diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml b/deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml new file mode 100644 index 0000000..c035c4c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml @@ -0,0 +1,18 @@ +carla_ackermann_control: + ros__parameters: + # override the default values of the pid speed controller + # (only relevant for ackermann control mode) + speed_Kp: 0.00 # min: 0, max: 1. + speed_Ki: 0.00 # min: 0, max: 1. + speed_Kd: 0.00 # min: 0, max: 10. + # override the default values of the pid acceleration controller + # (only relevant for ackermann control mode) + accel_Kp: 0.10 # min: 0, max: 10. + accel_Ki: 0.00 # min: 0, max: 10. + accel_Kd: 0.05 # min: 0, max: 10. + # set the minimum acceleration in (m/s^2) + # This border value is used to enable the speed controller which is used to control driving + # at more or less constant speed. + # If the absolute value of the ackermann drive target acceleration exceeds this value, + # directly the input acceleration is controlled + min_accel: 0.0 \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl new file mode 100644 index 0000000..e7c43ce --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -0,0 +1,16 @@ +openadservice: + image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci + env: + ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} + CONTROL_LOOP_RATE: {{ (default "0.05" (env "CONTROL_LOOP_RATE")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl new file mode 100644 index 0000000..41c31af --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl @@ -0,0 +1,18 @@ +openadservice: + image: ghcr.io/openads-project/monitoring:v1.0.0 + args: + - ros2 + - run + - topic_tools + - transform + - /carla/ego_vehicle/vehicle_control_manual_override + - /control/active + - std_msgs/Bool + - std_msgs.msg.Bool(data=not m.data) + - --import + - std_msgs + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 diff --git a/deployments/helmfile/carla-simulation/carla-converter/params.yml b/deployments/helmfile/carla-simulation/carla-converter/params.yml new file mode 100644 index 0000000..571604f --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-converter/params.yml @@ -0,0 +1,13 @@ +/**/*: + ros__parameters: + carla_fixed_frame_id: "carla_map" + ego_data_actors: "ego_vehicle" + object_list_actors: "ego_vehicle" + pos_variances: 0.2 + vel_variances: -1.0 + acc_variances: -1.0 + angle_variances: 0.1 + angle_rate_variances: -1.0 + enable_traffic_lights: false + traffic_light_frequency: 10.0 + acceleration_filter_alpha: 1.0 diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl new file mode 100644 index 0000000..1fe6ff6 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -0,0 +1,12 @@ +openadservice: + env: + NAMESPACE: /carla + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-environment/set_environment.py b/deployments/helmfile/carla-simulation/carla-environment/set_environment.py new file mode 100644 index 0000000..2b6d4ba --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-environment/set_environment.py @@ -0,0 +1,842 @@ +#!/usr/bin/env python3 + +"""UE5 environment setup for CARLA traffic and optional weather.""" + +import argparse +import logging +import math +import signal +import time + +import carla +from numpy import random + + +FOLLOWING_DISTANCE = 2.5 +HYBRID_RADIUS = 70.0 +FIXED_DELTA_SECONDS = 0.05 +DEFAULT_NUMBER_OF_VEHICLES = 30 +DEFAULT_NUMBER_OF_WALKERS = 10 +WALKER_SPAWN_Z_OFFSET = 2.0 +PEDESTRIANS_RUNNING = 0.0 +PEDESTRIANS_CROSSING = 0.0 +BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M = 20.0 +EGO_VEHICLE_SPAWN_CLEARANCE_M = 75.0 +NEAR_EGO_SPAWN_RADIUS_M = 200.0 +NEAR_EGO_VEHICLE_TARGET_FRACTION = 0.7 +WALKER_NAV_LOCATION_ATTEMPTS = 10 +CONNECT_RETRY_SECONDS = 2.0 +CLIENT_TIMEOUT_SECONDS = 10.0 +EGO_ROLE_NAME = "ego_vehicle" +BACKGROUND_ROLE_NAME = "autopilot" + +STATUS_INTERVAL = 5.0 +STUCK_SPEED_MPS = 0.2 +STUCK_DISTANCE_M = 1.0 +STUCK_SECONDS = 45.0 + + +def install_signal_handlers(): + def stop(_signum, _frame): + raise KeyboardInterrupt + + signal.signal(signal.SIGINT, stop) + signal.signal(signal.SIGTERM, stop) + + +def parse_args(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--host", default="carla-server", help="CARLA server host") + parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port") + parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") + parser.add_argument( + "-n", + "--number-of-vehicles", + default=DEFAULT_NUMBER_OF_VEHICLES, + type=int, + ) + parser.add_argument( + "-w", + "--number-of-walkers", + default=DEFAULT_NUMBER_OF_WALKERS, + type=int, + ) + parser.add_argument("--filterv", default="vehicle.*", help="Vehicle blueprint filter") + parser.add_argument("--filterw", default="walker.pedestrian.*", help="Walker blueprint filter") + parser.add_argument("--synch", action="store_true", help="Enable synchronous mode") + parser.add_argument("--hybrid", action="store_true", help="Enable TM hybrid physics") + parser.add_argument("--respawn", action="store_true", help="Respawn dormant vehicles") + parser.add_argument( + "--wait-for-ego", + dest="wait_for_ego", + action="store_true", + default=True, + help="Wait for an actor with role_name=ego_vehicle before spawning traffic", + ) + parser.add_argument( + "--no-wait-for-ego", + dest="wait_for_ego", + action="store_false", + help="Spawn traffic immediately without waiting for ego_vehicle", + ) + parser.add_argument( + "--weather", + metavar="PRESET", + help='Weather preset name, e.g. "ClearNoon" or "WetCloudyNoon"', + ) + return parser.parse_args() + + +def connect_to_carla(args): + client = carla.Client(args.host, args.port) + client.set_timeout(CLIENT_TIMEOUT_SECONDS) + + while True: + try: + client.get_server_version() + logging.info("Connected to CARLA at %s:%s", args.host, args.port) + return client + except RuntimeError as error: + logging.warning( + "Waiting for CARLA server at %s:%s: %s", + args.host, + args.port, + error, + ) + time.sleep(CONNECT_RETRY_SECONDS) + + +def wait_for_ego_vehicle(client): + """Return the current world after its ego vehicle appears.""" + while True: + try: + # The ROS bridge may replace the world while loading the configured map. + world = client.get_world() + ego = find_ego_vehicle(world) + if ego is not None: + logging.info("Found ego vehicle with actor id %s", ego.id) + return world + except RuntimeError as error: + logging.warning("Waiting for a stable CARLA world: %s", error) + else: + logging.info("Waiting for ego vehicle with role_name=%s", EGO_ROLE_NAME) + + # Avoid wait_for_tick() on a world that may belong to the old episode. + time.sleep(CONNECT_RETRY_SECONDS) + + +def find_ego_vehicle(world): + for actor in world.get_actors().filter("vehicle.*"): + if is_ego_vehicle(actor): + return actor + return None + + +def is_ego_vehicle(actor): + return ( + actor.attributes.get("role_name") == EGO_ROLE_NAME + or actor.attributes.get("id") == EGO_ROLE_NAME + ) + + +def get_blueprints(world, pattern): + blueprints = world.get_blueprint_library().filter(pattern) + if not blueprints: + raise ValueError("No blueprints found for filter: %s" % pattern) + return sorted(blueprints, key=lambda blueprint: blueprint.id) + + +def apply_weather(world, preset_name): + if not preset_name: + return None + + if not hasattr(carla.WeatherParameters, preset_name): + presets = [ + name + for name in dir(carla.WeatherParameters) + if not name.startswith("_") and name[0].isupper() + ] + raise ValueError( + "Unknown weather preset '%s'. Available presets: %s" + % (preset_name, ", ".join(sorted(presets))) + ) + + previous_weather = world.get_weather() + world.set_weather(getattr(carla.WeatherParameters, preset_name)) + logging.info("Weather preset set to %s", preset_name) + return previous_weather + + +def configure_simulation(world, traffic_manager, args): + traffic_manager.set_global_distance_to_leading_vehicle(FOLLOWING_DISTANCE) + + if args.respawn: + traffic_manager.set_respawn_dormant_vehicles(True) + + if args.hybrid: + traffic_manager.set_hybrid_physics_mode(True) + traffic_manager.set_hybrid_physics_radius(HYBRID_RADIUS) + + original_settings = world.get_settings() + changed_settings = False + synchronous_master = False + + if args.synch: + traffic_manager.set_synchronous_mode(True) + settings = world.get_settings() + if not settings.synchronous_mode: + synchronous_master = True + settings.synchronous_mode = True + settings.fixed_delta_seconds = FIXED_DELTA_SECONDS + world.apply_settings(settings) + changed_settings = True + else: + logging.warning("Running in asynchronous mode; traffic can be less stable") + + return original_settings, changed_settings, synchronous_master + + +def restore_simulation(world, original_settings, changed_settings, previous_weather): + if previous_weather is not None: + world.set_weather(previous_weather) + + if not changed_settings: + return + + settings = world.get_settings() + settings.synchronous_mode = original_settings.synchronous_mode + settings.fixed_delta_seconds = original_settings.fixed_delta_seconds + world.apply_settings(settings) + + +def spawn_vehicles(client, world, traffic_manager, blueprints, count, synchronous_master): + if count <= 0: + return [] + + spawn_points = select_vehicle_spawn_points(world, count) + if count > len(spawn_points): + logging.warning( + "Requested %d vehicles, but only found %d free spawn points", + count, + len(spawn_points), + ) + count = len(spawn_points) + + batch = [] + for transform in spawn_points[:count]: + blueprint = random.choice(blueprints) + set_random_attribute(blueprint, "color") + set_random_attribute(blueprint, "driver_id") + blueprint.set_attribute("role_name", BACKGROUND_ROLE_NAME) + + batch.append( + carla.command.SpawnActor(blueprint, transform).then( + carla.command.SetAutopilot( + carla.command.FutureActor, True, traffic_manager.get_port() + ) + ) + ) + + return apply_spawn_batch(client, batch, synchronous_master) + + +def select_vehicle_spawn_points(world, count): + spawn_points = list(world.get_map().get_spawn_points()) + random.shuffle(spawn_points) + + vehicles = list(world.get_actors().filter("vehicle.*")) + ego = next((actor for actor in vehicles if is_ego_vehicle(actor)), None) + ego_location = ego.get_location() if ego is not None else None + occupied_locations = [ + actor.get_location() for actor in vehicles if actor is not ego + ] + background_vehicles = [ + actor + for actor in vehicles + if actor is not ego + and actor.attributes.get("role_name") == BACKGROUND_ROLE_NAME + ] + selected_spawn_points = [] + + if ego_location is None: + add_clear_vehicle_spawn_points( + spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + return selected_spawn_points + + eligible_spawn_points = [ + spawn_point + for spawn_point in spawn_points + if spawn_point.location.distance(ego_location) + >= EGO_VEHICLE_SPAWN_CLEARANCE_M + ] + near_spawn_points = [ + spawn_point + for spawn_point in eligible_spawn_points + if spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + ] + distant_spawn_points = [ + spawn_point + for spawn_point in eligible_spawn_points + if spawn_point.location.distance(ego_location) > NEAR_EGO_SPAWN_RADIUS_M + ] + + current_nearby = sum( + actor.get_location().distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + for actor in background_vehicles + ) + desired_nearby = round( + (len(background_vehicles) + count) * NEAR_EGO_VEHICLE_TARGET_FRACTION + ) + near_target = min( + count, + max(0, desired_nearby - current_nearby), + ) + add_clear_vehicle_spawn_points( + near_spawn_points, + near_target, + occupied_locations, + selected_spawn_points, + ) + add_clear_vehicle_spawn_points( + distant_spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + + if len(selected_spawn_points) < count: + add_clear_vehicle_spawn_points( + near_spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + + selected_nearby = sum( + spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + for spawn_point in selected_spawn_points + ) + logging.info( + "Selected %d/%d vehicle spawn points within %.0f-%.0f m of the ego " + "(current=%d target=%d)", + selected_nearby, + len(selected_spawn_points), + EGO_VEHICLE_SPAWN_CLEARANCE_M, + NEAR_EGO_SPAWN_RADIUS_M, + current_nearby, + desired_nearby, + ) + return selected_spawn_points + + +def add_clear_vehicle_spawn_points( + candidates, + target_count, + occupied_locations, + selected_spawn_points, +): + selected_locations = [ + spawn_point.location for spawn_point in selected_spawn_points + ] + + for spawn_point in candidates: + if len(selected_spawn_points) >= target_count: + break + + if not is_clear_location( + spawn_point.location, + occupied_locations + selected_locations, + BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M, + ): + continue + selected_spawn_points.append(spawn_point) + selected_locations.append(spawn_point.location) + + +def is_clear_location(location, occupied_locations, clearance_m): + return all( + location.distance(occupied_location) >= clearance_m + for occupied_location in occupied_locations + ) + + +def set_random_attribute(blueprint, name): + if blueprint.has_attribute(name): + values = blueprint.get_attribute(name).recommended_values + blueprint.set_attribute(name, random.choice(values)) + + +def apply_spawn_batch(client, batch, do_tick=True): + actor_ids = [] + for response in client.apply_batch_sync(batch, do_tick): + if response.error: + logging.error(response.error) + else: + actor_ids.append(response.actor_id) + return actor_ids + + +def spawn_walkers(client, world, blueprints, count, args, synchronous_master): + if count <= 0: + return [] + + world.set_pedestrians_cross_factor(PEDESTRIANS_CROSSING) + + spawn_points = find_walker_spawn_points(world, count) + if len(spawn_points) < count: + logging.warning( + "Only found %d/%d walker navigation spawn locations. " + "If this stays at 0, the current map likely has no pedestrian navmesh.", + len(spawn_points), + count, + ) + + batch = [] + walker_speeds = [] + for spawn_point in spawn_points: + blueprint = random.choice(blueprints) + + if blueprint.has_attribute("is_invincible"): + blueprint.set_attribute("is_invincible", "false") + + walker_speeds.append(get_walker_speed(blueprint)) + batch.append(carla.command.SpawnActor(blueprint, spawn_point)) + + spawned_walkers = [] + for index, response in enumerate(client.apply_batch_sync(batch, True)): + if response.error: + logging.error(response.error) + else: + spawned_walkers.append( + {"walker": response.actor_id, "speed": walker_speeds[index]} + ) + + records = spawn_walker_controllers(client, world, spawned_walkers) + start_walker_controllers(world, records, args, synchronous_master) + return records + + +def find_walker_spawn_points(world, count): + spawn_points = [] + attempts = max(count * WALKER_NAV_LOCATION_ATTEMPTS, count) + + for _ in range(attempts): + if len(spawn_points) >= count: + break + + location = world.get_random_location_from_navigation() + if location is not None: + location.z += WALKER_SPAWN_Z_OFFSET + spawn_points.append(carla.Transform(location)) + + return spawn_points + + +def get_walker_speed(blueprint): + if not blueprint.has_attribute("speed"): + return 0.0 + + speeds = blueprint.get_attribute("speed").recommended_values + if random.random() > PEDESTRIANS_RUNNING: + return float(speeds[1]) + return float(speeds[2]) + + +def spawn_walker_controllers(client, world, spawned_walkers): + controller_blueprint = world.get_blueprint_library().find("controller.ai.walker") + batch = [ + carla.command.SpawnActor( + controller_blueprint, carla.Transform(), record["walker"] + ) + for record in spawned_walkers + ] + + records = [] + uncontrolled_walkers = [] + for index, response in enumerate(client.apply_batch_sync(batch, True)): + walker = spawned_walkers[index] + if response.error: + logging.error(response.error) + uncontrolled_walkers.append(walker["walker"]) + else: + records.append( + { + "walker": walker["walker"], + "controller": response.actor_id, + "speed": walker["speed"], + } + ) + + destroy_actor_ids(client, uncontrolled_walkers) + return records + + +def start_walker_controllers(world, walker_records, args, synchronous_master): + if not walker_records: + return + + if args.synch and synchronous_master: + world.tick() + else: + world.wait_for_tick() + + speed_by_controller = { + record["controller"]: record["speed"] for record in walker_records + } + controllers = world.get_actors(list(speed_by_controller.keys())) + + for controller in controllers: + controller.start() + target = world.get_random_location_from_navigation() + if target is not None: + controller.go_to_location(target) + controller.set_max_speed(speed_by_controller[controller.id]) + + +def supervise_environment( + client, + world, + traffic_manager, + args, + vehicle_blueprints, + walker_blueprints, + vehicles, + vehicle_sensors, + collided_vehicles, + walker_records, + synchronous_master, +): + vehicle_state = build_vehicle_state(world, vehicles, time.monotonic()) + next_status = time.monotonic() + + while True: + tick_once(world, args, synchronous_master) + + now = time.monotonic() + if now < next_status: + continue + next_status = now + STATUS_INTERVAL + + previous_vehicles = set(vehicles) + vehicles[:] = live_actor_ids(world, vehicles) + missing_vehicle_ids = previous_vehicles - set(vehicles) + remove_vehicle_sensors(client, vehicle_sensors, missing_vehicle_ids) + + walker_records[:] = live_walker_records(client, world, walker_records) + + stuck_vehicles = find_stuck_vehicles(world, vehicles, vehicle_state, now) + collided_vehicle_ids = [ + actor_id for actor_id in vehicles if actor_id in collided_vehicles + ] + collided_vehicles.difference_update(collided_vehicle_ids) + + bad_vehicles = set(stuck_vehicles) | set(collided_vehicle_ids) + if bad_vehicles: + remove_vehicle_sensors(client, vehicle_sensors, bad_vehicles) + destroy_actor_ids(client, bad_vehicles) + vehicles[:] = [actor_id for actor_id in vehicles if actor_id not in bad_vehicles] + for actor_id in bad_vehicles: + vehicle_state.pop(actor_id, None) + + missing_vehicles = max(0, args.number_of_vehicles - len(vehicles)) + new_vehicles = spawn_vehicles( + client, + world, + traffic_manager, + vehicle_blueprints, + missing_vehicles, + synchronous_master, + ) + vehicles.extend(new_vehicles) + vehicle_state.update(build_vehicle_state(world, new_vehicles, now)) + attach_collision_sensors( + world, new_vehicles, vehicle_sensors, collided_vehicles + ) + + missing_walkers = max(0, args.number_of_walkers - len(walker_records)) + new_walkers = spawn_walkers( + client, + world, + walker_blueprints, + missing_walkers, + args, + synchronous_master, + ) + walker_records.extend(new_walkers) + + print( + ( + "environment: vehicles=%d/%d walkers=%d/%d " + "respawned_vehicles=%d respawned_walkers=%d " + "stuck_vehicles=%d collided_vehicles=%d" + ) + % ( + len(vehicles), + args.number_of_vehicles, + len(walker_records), + args.number_of_walkers, + len(new_vehicles), + len(new_walkers), + len(stuck_vehicles), + len(collided_vehicle_ids), + ), + flush=True, + ) + + +def tick_once(world, args, synchronous_master): + if args.synch and synchronous_master: + world.tick() + else: + world.wait_for_tick() + + +def live_actor_ids(world, actor_ids): + live_ids = {actor.id for actor in world.get_actors(actor_ids)} + return [actor_id for actor_id in actor_ids if actor_id in live_ids] + + +def live_walker_records(client, world, walker_records): + actor_ids = [] + for record in walker_records: + actor_ids.extend([record["walker"], record["controller"]]) + + live_ids = {actor.id for actor in world.get_actors(actor_ids)} + live_records = [] + orphan_ids = [] + + for record in walker_records: + walker_alive = record["walker"] in live_ids + controller_alive = record["controller"] in live_ids + if walker_alive and controller_alive: + live_records.append(record) + else: + if walker_alive: + orphan_ids.append(record["walker"]) + if controller_alive: + orphan_ids.append(record["controller"]) + + destroy_actor_ids(client, orphan_ids) + return live_records + + +def build_vehicle_state(world, vehicle_ids, now): + state = {} + for actor in world.get_actors(vehicle_ids): + state[actor.id] = { + "spawned_at": now, + "last_moved_at": now, + "last_location": location_tuple(actor.get_location()), + } + return state + + +def find_stuck_vehicles(world, vehicle_ids, vehicle_state, now): + stuck_vehicles = [] + actors = world.get_actors(vehicle_ids) + live_ids = set() + + for actor in actors: + live_ids.add(actor.id) + state = vehicle_state.setdefault( + actor.id, + { + "spawned_at": now, + "last_moved_at": now, + "last_location": location_tuple(actor.get_location()), + }, + ) + + location = location_tuple(actor.get_location()) + moved_distance = distance(location, state["last_location"]) + speed = vector_length(actor.get_velocity()) + + if speed > STUCK_SPEED_MPS or moved_distance > STUCK_DISTANCE_M: + state["last_moved_at"] = now + state["last_location"] = location + continue + + stuck_long_enough = now - state["last_moved_at"] >= STUCK_SECONDS + if stuck_long_enough: + stuck_vehicles.append(actor.id) + + for actor_id in list(vehicle_state.keys()): + if actor_id not in live_ids: + vehicle_state.pop(actor_id, None) + + return stuck_vehicles + + +def location_tuple(location): + return (location.x, location.y, location.z) + + +def distance(first, second): + return math.sqrt( + (first[0] - second[0]) ** 2 + + (first[1] - second[1]) ** 2 + + (first[2] - second[2]) ** 2 + ) + + +def vector_length(vector): + return math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z) + + +def attach_collision_sensors(world, vehicle_ids, vehicle_sensors, collided_vehicles): + if not vehicle_ids: + return + + blueprint = world.get_blueprint_library().find("sensor.other.collision") + for vehicle in world.get_actors(vehicle_ids): + if vehicle.id in vehicle_sensors: + continue + + try: + sensor = world.spawn_actor(blueprint, carla.Transform(), attach_to=vehicle) + except RuntimeError as error: + logging.warning("Could not attach collision sensor: %s", error) + continue + + sensor.listen( + lambda _event, actor_id=vehicle.id: collided_vehicles.add(actor_id) + ) + vehicle_sensors[vehicle.id] = sensor + + +def remove_vehicle_sensors(client, vehicle_sensors, vehicle_ids): + sensor_ids = [] + for vehicle_id in vehicle_ids: + sensor = vehicle_sensors.pop(vehicle_id, None) + if sensor is None: + continue + + try: + sensor.stop() + except RuntimeError as error: + logging.warning("Could not stop collision sensor: %s", error) + sensor_ids.append(sensor.id) + + destroy_actor_ids(client, sensor_ids) + + +def destroy_actor_ids(client, actor_ids): + if actor_ids: + client.apply_batch([carla.command.DestroyActor(actor_id) for actor_id in actor_ids]) + + +def cleanup(client, vehicles, vehicle_sensors, walker_records): + remove_vehicle_sensors(client, vehicle_sensors, list(vehicle_sensors.keys())) + + controllers = world_actors_from_records(client, walker_records, "controller") + for controller in controllers: + try: + controller.stop() + except RuntimeError as error: + logging.warning("Could not stop walker controller: %s", error) + + print("\ndestroying %d vehicles" % len(vehicles), flush=True) + destroy_actor_ids(client, vehicles) + + walker_actor_ids = [] + for record in walker_records: + walker_actor_ids.extend([record["walker"], record["controller"]]) + + print("\ndestroying %d walkers" % len(walker_records), flush=True) + destroy_actor_ids(client, walker_actor_ids) + + +def world_actors_from_records(client, records, key): + actor_ids = [record[key] for record in records] + return client.get_world().get_actors(actor_ids) + + +def main(): + args = parse_args() + logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO) + install_signal_handlers() + + client = connect_to_carla(args) + if args.wait_for_ego: + world = wait_for_ego_vehicle(client) + else: + world = client.get_world() + traffic_manager = client.get_trafficmanager(args.tm_port) + + vehicles = [] + vehicle_sensors = {} + collided_vehicles = set() + walker_records = [] + previous_weather = None + original_settings = None + changed_settings = False + + try: + previous_weather = apply_weather(world, args.weather) + original_settings, changed_settings, synchronous_master = configure_simulation( + world, traffic_manager, args + ) + + vehicle_blueprints = get_blueprints(world, args.filterv) + walker_blueprints = get_blueprints(world, args.filterw) + vehicles.extend( + spawn_vehicles( + client, + world, + traffic_manager, + vehicle_blueprints, + args.number_of_vehicles, + synchronous_master, + ) + ) + attach_collision_sensors( + world, vehicles, vehicle_sensors, collided_vehicles + ) + + walker_records.extend( + spawn_walkers( + client, + world, + walker_blueprints, + args.number_of_walkers, + args, + synchronous_master, + ) + ) + + print( + "Spawned %d vehicles and %d walkers, press Ctrl+C to exit." + % (len(vehicles), len(walker_records)), + flush=True, + ) + supervise_environment( + client, + world, + traffic_manager, + args, + vehicle_blueprints, + walker_blueprints, + vehicles, + vehicle_sensors, + collided_vehicles, + walker_records, + synchronous_master, + ) + + finally: + cleanup(client, vehicles, vehicle_sensors, walker_records) + restore_simulation(world, original_settings, changed_settings, previous_weather) + time.sleep(0.5) + + +if __name__ == "__main__": + try: + main() + except KeyboardInterrupt: + pass + finally: + print("\ndone.") diff --git a/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl new file mode 100644 index 0000000..e59ee72 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl @@ -0,0 +1,13 @@ +openadservice: + image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.0 + args: + - /bin/bash + - -ic + - exec python3 /set_environment.py + gpu: true + volumes: + - mountPath: /set_environment.py + data: | +{{ readFile "set_environment.py" | indent 6 }} + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl new file mode 100644 index 0000000..2f5bfde --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -0,0 +1,14 @@ +openadservice: + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} + WIRELESS_CONTROLLER: {{ (default "False" (env "WIRELESS_CONTROLLER")) | quote }} + WINDOW_WIDTH: {{ (default "800" (env "WINDOW_WIDTH")) | quote }} + WINDOW_HEIGHT: {{ (default "600" (env "WINDOW_HEIGHT")) | quote }} + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl new file mode 100644 index 0000000..405eb7c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -0,0 +1,36 @@ +openadservice: + env: + IGNORE_ALTITUDE: true + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TOWN: {{ (default "/opendrive.xodr" (index .Values.composeEnvironment "MAP")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "True" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + HOST: {{ (default "carla-server" (env "HOST")) | quote }} + PORT: {{ (default "2000" (env "PORT")) | quote }} + TIMEOUT: {{ (default "5000" (env "TIMEOUT")) | quote }} + PASSIVE: {{ (default "False" (env "PASSIVE")) | quote }} + PUBLISH_CLOCK: {{ (default "True" (env "PUBLISH_CLOCK")) | quote }} + SYNCHRONOUS_MODE: {{ (default "True" (env "SYNCHRONOUS_MODE")) | quote }} + SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND: {{ (default "False" (env "SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND")) | quote }} + FIXED_DELTA_SECONDS: {{ (default "0.05" (env "FIXED_DELTA_SECONDS")) | quote }} + START_UNIX_TIME_STAMP: {{ (default "0" (env "START_UNIX_TIME_STAMP")) | quote }} + RT_FACTOR: {{ (default "1.0" (env "RT_FACTOR")) | quote }} + REGISTER_ALL_SENSORS: {{ (default "True" (env "REGISTER_ALL_SENSORS")) | quote }} + NATIVE_INTERFACE: {{ (default "True" (env "NATIVE_INTERFACE")) | quote }} + EGO_VEHICLE_ROLE_NAME: {{ (default "[\"hero\",\"ego_vehicle\",\"hero0\",\"hero1\",\"hero2\",\"hero3\"]" (env "EGO_VEHICLE_ROLE_NAME")) | quote }} + PUBLISH_STATIC_VEHICLES: {{ (default "True" (env "PUBLISH_STATIC_VEHICLES")) | quote }} + PUBLISH_COMPRESSED_IMAGES: {{ (default "True" (env "PUBLISH_COMPRESSED_IMAGES")) | quote }} + IGNORE_TILT: {{ (default "True" (env "IGNORE_TILT")) | quote }} + GEOREFERENCE_SUBSTITUTION: {{ (default "" (env "GEOREFERENCE_SUBSTITUTION")) | quote }} + GRID_CONVERGENCE: {{ (default "None" (env "GRID_CONVERGENCE")) | quote }} + PUBLISH_ETSI_MESSAGES: {{ (default "False" (env "PUBLISH_ETSI_MESSAGES")) | quote }} + MAPEM_TIMER_PERIOD: {{ (default "1.0" (env "MAPEM_TIMER_PERIOD")) | quote }} + SPATEM_TIMER_PERIOD: {{ (default "0.1" (env "SPATEM_TIMER_PERIOD")) | quote }} + INTEGRATE_ALL_JUNCTIONS: {{ (default "False" (env "INTEGRATE_ALL_JUNCTIONS")) | quote }} + WAYPOINTS_SEARCH_DISTANCE: {{ (default "1.0" (env "WAYPOINTS_SEARCH_DISTANCE")) | quote }} + LANE_WAYPOINTS_COUNT: {{ (default "10" (env "LANE_WAYPOINTS_COUNT")) | quote }} + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py new file mode 100644 index 0000000..456e3d8 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py @@ -0,0 +1,1413 @@ +#!/usr/bin/env python3 + +"""Validate and import OpenSCENARIO bundles for OpenADSim/CARLA.""" + +from __future__ import annotations + +import argparse +import json +import os +import re +import shutil +import sys +import tempfile +import xml.etree.ElementTree as ET +from dataclasses import dataclass, field +from datetime import datetime, timezone +from pathlib import Path +from typing import Optional + + +PREBUILT_MAPS = { + "aldenhoven": "aldenhoven", + "campus": "campus", + "town10hd_opt": "Town10HD_Opt", +} +CRITERIA = ( + "criteria_RunningStopTest", + "criteria_RunningRedLightTest", + "criteria_CollisionTest", + "criteria_WrongLaneTest", + "criteria_OnSidewalkTest", + "criteria_DrivenDistanceTest", +) +ROS_CONTROLLER_MODULE = "ros_vehicle_control_route_action.py" + + +class ScenarioCheckerError(RuntimeError): + """Raised for a user-facing validation or import error.""" + + +@dataclass(frozen=True) +class MapResolution: + kind: str + logic_file: str + map_name: str = "" + opendrive: Optional[Path] = None + lanelet: Optional[Path] = None + + +@dataclass +class ScenarioReport: + scenario: Path + errors: list[str] = field(default_factory=list) + warnings: list[str] = field(default_factory=list) + planned_changes: list[str] = field(default_factory=list) + map_resolution: Optional[MapResolution] = None + ego_actor: str = "" + + @property + def is_valid(self) -> bool: + return not self.errors + + def to_dict(self) -> dict[str, object]: + map_data: dict[str, object] = {} + if self.map_resolution: + map_data = { + "type": self.map_resolution.kind, + "logic_file": self.map_resolution.logic_file, + "map_name": self.map_resolution.map_name, + "opendrive": str(self.map_resolution.opendrive or ""), + "lanelet": str(self.map_resolution.lanelet or ""), + } + return { + "valid": self.is_valid, + "scenario": str(self.scenario), + "ego_actor": self.ego_actor, + "map": map_data, + "errors": self.errors, + "warnings": self.warnings, + "planned_changes": self.planned_changes, + } + + +@dataclass(frozen=True) +class ImportResult: + directory: Path + scenario_file: Path + map_resolution: MapResolution + actions: tuple[str, ...] + warnings: tuple[str, ...] + repo_root: Path + + def _relative(self, path: Optional[Path]) -> str: + if path is None: + return "" + try: + return path.resolve().relative_to(self.repo_root.resolve()).as_posix() + except ValueError: + return str(path.resolve()) + + def to_dict(self) -> dict[str, object]: + return { + "valid": True, + "directory": self._relative(self.directory), + "scenario_file": self._relative(self.scenario_file), + "map": { + "type": self.map_resolution.kind, + "map_name": self.map_resolution.map_name, + "opendrive": self._relative(self.map_resolution.opendrive), + "lanelet": self._relative(self.map_resolution.lanelet), + }, + "actions": list(self.actions), + "warnings": list(self.warnings), + } + + +def _local_name(tag: str) -> str: + return tag.rsplit("}", 1)[-1] + + +def _namespace(element: ET.Element) -> str: + if element.tag.startswith("{"): + return element.tag.split("}", 1)[0] + "}" + return "" + + +def _child(parent: Optional[ET.Element], name: str) -> Optional[ET.Element]: + if parent is None: + return None + return next( + (element for element in list(parent) if _local_name(element.tag) == name), + None, + ) + + +def _children(parent: Optional[ET.Element], name: str) -> list[ET.Element]: + if parent is None: + return [] + return [element for element in list(parent) if _local_name(element.tag) == name] + + +def _path(parent: Optional[ET.Element], *names: str) -> Optional[ET.Element]: + element = parent + for name in names: + element = _child(element, name) + if element is None: + return None + return element + + +def _iter(parent: Optional[ET.Element], name: str): + if parent is None: + return + for element in parent.iter(): + if _local_name(element.tag) == name: + yield element + + +def _subelement( + parent: ET.Element, + name: str, + attributes: Optional[dict[str, str]] = None, +) -> ET.Element: + return ET.SubElement( + parent, + f"{_namespace(parent)}{name}", + attributes or {}, + ) + + +def _normalize_map_reference(value: str) -> str: + normalized = value.strip().replace("\\", "/").rstrip("/") + filename = normalized.rsplit("/", 1)[-1] + if filename.lower().endswith(".xodr"): + filename = filename[:-5] + return filename.lower() + + +def _canonical_prebuilt_map(value: str) -> str: + return PREBUILT_MAPS.get(_normalize_map_reference(value), "") + + +def _version_conversion_issues(root: ET.Element) -> list[str]: + issues: list[str] = [] + header = _child(root, "FileHeader") + if header is None: + return ["FileHeader is missing"] + + major = header.get("revMajor", "") + minor = header.get("revMinor", "") + if major != "1": + return [f"Unsupported OpenSCENARIO major version {major or ''}; expected 1"] + if minor != "1": + issues.append(f"Convert OpenSCENARIO {major}.{minor or ''} to 1.1") + if _child(root, "VariableDeclarations") is not None: + issues.append("Remove OpenSCENARIO 1.2 VariableDeclarations") + if any(event.get("priority") == "override" for event in _iter(root, "Event")): + issues.append("Convert Event priority 'override' to 'overwrite'") + if any( + condition.get("relativeDistanceType") == "cartesianDistance" + for condition in _iter(root, "RelativeDistanceCondition") + ): + issues.append("Convert cartesianDistance to euclidianDistance") + return issues + + +def _convert_to_osc_1_1(root: ET.Element) -> list[str]: + actions: list[str] = [] + header = _child(root, "FileHeader") + if header is None: + raise ScenarioCheckerError("FileHeader is missing") + + major = header.get("revMajor", "") + minor = header.get("revMinor", "") + if major != "1": + raise ScenarioCheckerError( + f"Unsupported OpenSCENARIO major version {major or ''}; expected 1" + ) + if minor != "1": + header.set("revMinor", "1") + actions.append(f"Converted OpenSCENARIO {major}.{minor or ''} to 1.1") + + variable_declarations = _child(root, "VariableDeclarations") + if variable_declarations is not None: + root.remove(variable_declarations) + actions.append("Removed OpenSCENARIO 1.2 VariableDeclarations") + + priorities_converted = 0 + for event in _iter(root, "Event"): + if event.get("priority") == "override": + event.set("priority", "overwrite") + priorities_converted += 1 + if priorities_converted: + actions.append( + f"Converted {priorities_converted} Event priority value(s) from override to overwrite" + ) + + distances_converted = 0 + for condition in _iter(root, "RelativeDistanceCondition"): + if condition.get("relativeDistanceType") == "cartesianDistance": + condition.set("relativeDistanceType", "euclidianDistance") + distances_converted += 1 + if distances_converted: + actions.append( + f"Converted {distances_converted} cartesianDistance value(s) to euclidianDistance" + ) + return actions + + +def _parse_xml(path: Path, expected_root: str) -> ET.ElementTree: + try: + tree = ET.parse(path) + except (OSError, ET.ParseError) as error: + raise ScenarioCheckerError(f"Cannot parse {path}: {error}") from error + if _local_name(tree.getroot().tag) != expected_root: + raise ScenarioCheckerError( + f"{path} must have <{expected_root}> as its root element" + ) + return tree + + +def _repo_root_from(path: Path) -> Path: + for candidate in (path.resolve(), *path.resolve().parents): + if (candidate / "carla-simulation").is_dir() and (candidate / "utils").is_dir(): + return candidate + return Path.cwd().resolve() + + +def _resolve_map( + scenario_file: Path, + root: ET.Element, + *, + opendrive: Optional[Path], + lanelet: Optional[Path], +) -> MapResolution: + logic_element = _path(root, "RoadNetwork", "LogicFile") + if logic_element is None or not logic_element.get("filepath", "").strip(): + raise ScenarioCheckerError("RoadNetwork/LogicFile filepath is missing") + logic_file = logic_element.get("filepath", "").strip() + + selected_opendrive = opendrive.resolve() if opendrive else None + if selected_opendrive: + if selected_opendrive.suffix.lower() != ".xodr": + raise ScenarioCheckerError("Uploaded OpenDRIVE map must end in .xodr") + _parse_xml(selected_opendrive, "OpenDRIVE") + elif logic_file.lower().endswith(".xodr"): + raise ScenarioCheckerError( + "OpenDRIVE map referenced by LogicFile must be explicitly uploaded: " + f"{logic_file}" + ) + + if selected_opendrive: + selected_lanelet = lanelet.resolve() if lanelet else None + if selected_lanelet is None or not selected_lanelet.is_file(): + raise ScenarioCheckerError( + "Custom OpenDRIVE requires an explicitly uploaded Lanelet2 .osm file" + ) + if selected_lanelet.suffix.lower() != ".osm": + raise ScenarioCheckerError("Lanelet2 map must end in .osm") + _parse_xml(selected_lanelet, "osm") + return MapResolution( + kind="custom", + logic_file=logic_file, + opendrive=selected_opendrive, + lanelet=selected_lanelet, + ) + + if lanelet: + raise ScenarioCheckerError( + "A Lanelet2 upload without a custom OpenDRIVE map is not supported by the importer" + ) + map_name = _canonical_prebuilt_map(logic_file) + if not map_name: + supported = ", ".join(PREBUILT_MAPS.values()) + raise ScenarioCheckerError( + f"LogicFile references unknown prebuilt map {logic_file!r}; supported: {supported}" + ) + return MapResolution(kind="prebuilt", logic_file=logic_file, map_name=map_name) + + +def _scenario_objects(root: ET.Element) -> list[ET.Element]: + return _children(_child(root, "Entities"), "ScenarioObject") + + +def _actor_payload(actor: ET.Element) -> Optional[ET.Element]: + return next( + ( + element + for element in list(actor) + if _local_name(element.tag) in {"Vehicle", "Pedestrian"} + ), + None, + ) + + +def _actor_type(actor: ET.Element) -> str: + payload = _actor_payload(actor) + properties = _child(payload, "Properties") + for prop in _children(properties, "Property"): + if prop.get("name") == "type": + return prop.get("value", "") + return "" + + +def _select_ego( + root: ET.Element, + requested_ego: str, + *, + allow_repair: bool, +) -> tuple[Optional[ET.Element], list[str]]: + actors = _scenario_objects(root) + ego_actors = [ + actor + for actor in actors + if actor.get("name") == "ego_vehicle" or _actor_type(actor) == "ego_vehicle" + ] + unique_ego = list({id(actor): actor for actor in ego_actors}.values()) + if len(unique_ego) > 1: + return None, ["Multiple actors are marked as ego_vehicle"] + if unique_ego: + if requested_ego and unique_ego[0].get("name") != requested_ego: + return None, [ + f"Requested ego actor {requested_ego!r} conflicts with existing ego_vehicle" + ] + return unique_ego[0], [] + + vehicle_actors = [] + for actor in actors: + payload = _actor_payload(actor) + if payload is not None and _local_name(payload.tag) == "Vehicle": + vehicle_actors.append(actor) + if requested_ego: + requested = next( + (actor for actor in vehicle_actors if actor.get("name") == requested_ego), + None, + ) + if requested is None: + return None, [f"Requested ego actor does not exist or is not a Vehicle: {requested_ego}"] + return requested, [] + if not vehicle_actors: + return None, ["Scenario contains no inline Vehicle actor that can become ego_vehicle"] + if not allow_repair: + return None, [ + "Scenario has no ego_vehicle; import it to select and normalize an ego actor" + ] + return vehicle_actors[0], [] + + +def _ego_private(root: ET.Element, ego_name: str) -> Optional[ET.Element]: + actions = _path(root, "Storyboard", "Init", "Actions") + for private in _children(actions, "Private"): + if private.get("entityRef") == ego_name: + return private + return None + + +def _ego_controller_actions(root: ET.Element, ego_name: str) -> list[ET.Element]: + actions = _path(root, "Storyboard", "Init", "Actions") + result = [ + action + for private in _children(actions, "Private") + if private.get("entityRef") == ego_name + for action in _children(private, "PrivateAction") + if _child(action, "ControllerAction") is not None + ] + for group in _iter(root, "ManeuverGroup"): + actors = _child(group, "Actors") + refs = {ref.get("entityRef") for ref in _children(actors, "EntityRef")} + if ego_name in refs: + result.extend( + action for action in _iter(group, "PrivateAction") + if _child(action, "ControllerAction") is not None + ) + return result + + +def _has_normalized_ego_controller(root: ET.Element, ego_name: str) -> bool: + controller_actions = _ego_controller_actions(root, ego_name) + if len(controller_actions) != 1: + return False + init = _path(root, "Storyboard", "Init", "Actions") + if controller_actions[0] not in list(_iter(init, "PrivateAction")): + return False + assign_actions = list(_iter(controller_actions[0], "AssignControllerAction")) + if len(assign_actions) != 1: + return False + return any( + prop.get("name") == "module" and prop.get("value") == ROS_CONTROLLER_MODULE + for prop in _iter(assign_actions[0], "Property") + ) + + +def _object_controllers(root: ET.Element) -> list[ET.Element]: + return [ + controller + for actor in _scenario_objects(root) + for controller in _children(actor, "ObjectController") + ] + + +def _catalog_references_outside_object_controllers( + root: ET.Element, +) -> list[ET.Element]: + replaced_reference_ids = { + id(reference) + for controller in _object_controllers(root) + for reference in _iter(controller, "CatalogReference") + } + return [ + reference + for reference in _iter(root, "CatalogReference") + if id(reference) not in replaced_reference_ids + ] + + +def _ego_route_event(root: ET.Element, ego_name: str) -> str: + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = _child(maneuver_group, "Actors") + if not any( + ref.get("entityRef") == ego_name for ref in _children(actors, "EntityRef") + ): + continue + for event in _iter(maneuver_group, "Event"): + if any(True for _ in _iter(event, "AssignRouteAction")): + return event.get("name", "") + return "" + + +def _missing_rts_count(root: ET.Element, ego_name: str) -> int: + missing = 0 + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = { + ref.get("entityRef", "") + for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") + } + if not actors or ego_name in actors: + continue + for trajectory in _iter(maneuver_group, "Trajectory"): + declarations = _child(trajectory, "ParameterDeclarations") + if not any( + parameter.get("name") == "rts-mode" + for parameter in _children(declarations, "ParameterDeclaration") + ): + missing += 1 + return missing + + +def _missing_criteria(root: ET.Element) -> list[str]: + storyboard = _child(root, "Storyboard") + stop_trigger = _child(storyboard, "StopTrigger") + existing = { + condition.get("name", "") for condition in _iter(stop_trigger, "Condition") + } + return [name for name in CRITERIA if name not in existing] + + +def _validate_expected_map( + report: ScenarioReport, + *, + expected_map: str, + expected_opendrive: Optional[Path], + expected_lanelet: Optional[Path], +) -> None: + resolution = report.map_resolution + if resolution is None: + return + if expected_map: + expected_canonical = _canonical_prebuilt_map(expected_map) + if resolution.kind != "prebuilt" or resolution.map_name != expected_canonical: + report.errors.append( + f"Configured prebuilt map {expected_map!r} does not match LogicFile {resolution.logic_file!r}" + ) + if expected_opendrive: + if resolution.kind != "custom" or resolution.opendrive is None: + report.errors.append( + "Configured CUSTOM_OPENDRIVE does not match the prebuilt map in LogicFile" + ) + else: + configured = expected_opendrive.resolve() + if configured.parent != report.scenario.parent.resolve(): + report.errors.append( + "CUSTOM_OPENDRIVE must be in the same directory as the " + f"OpenSCENARIO file: {configured}" + ) + logic_reference = Path(resolution.logic_file.replace("\\", "/")) + if ( + logic_reference.is_absolute() + or logic_reference.parent != Path(".") + or logic_reference.name != configured.name + ): + report.errors.append( + f"LogicFile filepath must reference the configured OpenDRIVE in the " + "same directory as the OpenSCENARIO file; expected only the filename " + f"{configured.name!r}, got {resolution.logic_file!r}" + ) + try: + matches = resolution.opendrive.samefile(configured) + except OSError: + matches = resolution.opendrive.resolve() == configured + if not matches: + report.errors.append( + f"Configured OpenDRIVE {configured} does not match LogicFile map {resolution.opendrive}" + ) + if expected_lanelet: + if resolution.lanelet is None: + report.errors.append("Configured CUSTOM_LANELET has no matching custom OpenDRIVE map") + else: + configured = expected_lanelet.resolve() + if configured.parent != report.scenario.parent.resolve(): + report.errors.append( + "CUSTOM_LANELET must be in the same directory as the " + f"OpenSCENARIO file: {configured}" + ) + try: + matches = resolution.lanelet.samefile(configured) + except OSError: + matches = resolution.lanelet.resolve() == configured + if not matches: + report.errors.append( + f"Configured Lanelet2 map {configured} does not match resolved map {resolution.lanelet}" + ) + + +def validate_scenario( + scenario_file: Path | str, + *, + opendrive: Path | str | None = None, + lanelet: Path | str | None = None, + ego: str = "", + repo_root: Path | str | None = None, + expected_map: str = "", + expected_opendrive: Path | str | None = None, + expected_lanelet: Path | str | None = None, + allow_repair: bool = False, +) -> ScenarioReport: + scenario_path = Path(scenario_file).resolve() + report = ScenarioReport(scenario=scenario_path) + try: + tree = _parse_xml(scenario_path, "OpenSCENARIO") + root = tree.getroot() + version_issues = _version_conversion_issues(root) + unrepairable_version = any( + issue.startswith("Unsupported") or issue == "FileHeader is missing" + for issue in version_issues + ) + if unrepairable_version or not allow_repair: + report.errors.extend(version_issues) + else: + report.planned_changes.extend(version_issues) + report.map_resolution = _resolve_map( + scenario_path, + root, + opendrive=Path(opendrive) if opendrive else None, + lanelet=Path(lanelet) if lanelet else None, + ) + ego_actor, ego_errors = _select_ego( + root, + ego, + allow_repair=allow_repair, + ) + report.errors.extend(ego_errors) + if ego_actor is not None: + report.ego_actor = ego_actor.get("name", "") + if report.ego_actor != "ego_vehicle": + report.planned_changes.append( + f"Rename ego actor {report.ego_actor!r} to 'ego_vehicle'" + ) + if _actor_type(ego_actor) != "ego_vehicle": + report.planned_changes.append("Set ego actor type=ego_vehicle") + if not _has_normalized_ego_controller(root, report.ego_actor): + if allow_repair: + report.planned_changes.append( + "Replace ego ControllerAction elements with RosRouteController" + ) + else: + report.errors.append( + "ego_vehicle controller setup is not normalized; import the " + "scenario to replace it with RosRouteController" + ) + missing_rts = _missing_rts_count(root, report.ego_actor) + if missing_rts: + report.planned_changes.append( + f"Add rts-mode=rts to {missing_rts} non-ego trajectory/trajectories" + ) + + object_controller_count = len(_object_controllers(root)) + if object_controller_count: + message = ( + f"Remove {object_controller_count} ScenarioObject " + "ObjectController element(s)" + ) + if allow_repair: + report.planned_changes.append(message) + else: + report.errors.append( + f"{message}; import the scenario to use runtime controllers" + ) + remaining_catalog_references = _catalog_references_outside_object_controllers(root) + if remaining_catalog_references: + report.errors.append( + f"Scenario contains {len(remaining_catalog_references)} unsupported " + "external CatalogReference element(s)" + ) + old_precipitation = sum( + 1 for element in _iter(root, "Precipitation") if "intensity" in element.attrib + ) + if old_precipitation: + report.planned_changes.append( + f"Rename intensity on {old_precipitation} Precipitation element(s)" + ) + + init_actions = _path(root, "Storyboard", "Init", "Actions") + teleport_count = 0 + for teleport in _iter(init_actions, "TeleportAction"): + world_position = next(iter(_iter(teleport, "WorldPosition")), None) + if world_position is None: + report.errors.append("Init TeleportAction has no WorldPosition") + continue + try: + float(world_position.get("z", "0")) + except ValueError: + report.errors.append("Init TeleportAction WorldPosition requires a numeric z value") + continue + teleport_count += 1 + if teleport_count: + report.planned_changes.append( + f"Raise {teleport_count} initial TeleportAction position(s) by 0.1 m" + ) + + missing_criteria = _missing_criteria(root) + if missing_criteria: + report.planned_changes.append( + f"Add {len(missing_criteria)} missing ScenarioRunner criterion/criteria" + ) + + _validate_expected_map( + report, + expected_map=expected_map, + expected_opendrive=Path(expected_opendrive) if expected_opendrive else None, + expected_lanelet=Path(expected_lanelet) if expected_lanelet else None, + ) + except ScenarioCheckerError as error: + report.errors.append(str(error)) + return report + + +def validate_scenario_folder( + scenario_folder: Path | str, + *, + repo_root: Path | str | None = None, + expected_map: str = "", + expected_opendrive: Path | str | None = None, + lanelet: Path | str | None = None, +) -> dict[str, object]: + folder = Path(scenario_folder).resolve() + if not folder.is_dir(): + return { + "valid": False, + "folder": str(folder), + "checked": 0, + "errors": [f"Scenario folder does not exist: {folder}"], + "warnings": [], + } + + custom_opendrive = Path(expected_opendrive).resolve() if expected_opendrive else None + selected_reference = custom_opendrive.name if custom_opendrive else expected_map + selected_normalized = _normalize_map_reference(selected_reference) + errors: list[str] = [] + warnings: list[str] = [] + checked = 0 + + for scenario in sorted(folder.rglob("*.xosc")): + if "catalogs" in {part.lower() for part in scenario.parts}: + continue + try: + tree = _parse_xml(scenario, "OpenSCENARIO") + logic = _path(tree.getroot(), "RoadNetwork", "LogicFile") + logic_file = logic.get("filepath", "") if logic is not None else "" + if custom_opendrive: + logic_reference = Path(logic_file.replace("\\", "/")) + if ( + scenario.parent.resolve() != custom_opendrive.parent + or logic_reference.is_absolute() + or logic_reference.parent != Path(".") + or logic_reference.name != custom_opendrive.name + ): + continue + elif selected_normalized and _normalize_map_reference(logic_file) != selected_normalized: + continue + except ScenarioCheckerError as error: + errors.append(f"{scenario}: {error}") + continue + + report = validate_scenario( + scenario, + repo_root=repo_root, + opendrive=expected_opendrive, + lanelet=lanelet, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + expected_lanelet=lanelet, + ) + checked += 1 + errors.extend(f"{scenario}: {message}" for message in report.errors) + warnings.extend(f"{scenario}: {message}" for message in report.warnings) + + if selected_normalized and checked == 0: + errors.append(f"No OpenSCENARIO files match the configured map {selected_reference!r}") + + return { + "valid": not errors, + "folder": str(folder), + "checked": checked, + "errors": errors, + "warnings": warnings, + } + + +def _runtime_asset_path(value: str, scenario_root: Path) -> Path: + reference = Path(value) + root = scenario_root.resolve() + if reference.is_absolute() and reference.exists(): + resolved = reference.resolve() + else: + normalized = value.strip().replace("\\", "/").lstrip("/") + repository_prefix = "carla-simulation/scenarios/" + if repository_prefix in normalized: + normalized = normalized.split(repository_prefix, 1)[1] + resolved = (root / normalized).resolve() + if not resolved.is_relative_to(root): + raise ScenarioCheckerError( + f"Runtime scenario path must stay below {root}: {value}" + ) + return resolved + + +def _scenario_root_from_file(scenario: Path) -> Path: + for parent in scenario.resolve().parents: + if parent.name == "scenarios" and parent.parent.name == "carla-simulation": + return parent + return scenario.resolve().parent + + +def validate_runtime( + target: Path | str, + environment: Optional[dict[str, str]] = None, +) -> dict[str, object]: + env = os.environ if environment is None else environment + resolved_target = Path(target).resolve() + if resolved_target == Path("/"): + raise ScenarioCheckerError("Scenario path must not be empty or the filesystem root") + if resolved_target.is_dir(): + target_type = "folder" + root = resolved_target + elif resolved_target.is_file(): + target_type = "file" + root = _scenario_root_from_file(resolved_target) + else: + raise ScenarioCheckerError(f"Scenario path does not exist: {resolved_target}") + + expected_map = env.get("MAP", "").strip() + opendrive_value = env.get("CUSTOM_OPENDRIVE", "").strip() + lanelet_value = env.get("CUSTOM_LANELET", "").strip() + expected_opendrive = ( + _runtime_asset_path(opendrive_value, root) if opendrive_value else None + ) + lanelet = _runtime_asset_path(lanelet_value, root) if lanelet_value else None + + if target_type == "folder": + return validate_scenario_folder( + root, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + lanelet=lanelet, + ) + report = validate_scenario( + resolved_target, + opendrive=expected_opendrive, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + expected_lanelet=lanelet, + lanelet=lanelet, + ) + return report.to_dict() + + +def _rename_ego(root: ET.Element, actor: ET.Element) -> None: + old_name = actor.get("name", "") + if old_name == "ego_vehicle": + return + for element in root.iter(): + for attribute, value in list(element.attrib.items()): + if value == old_name: + element.set(attribute, "ego_vehicle") + + +def _ensure_actor_types(root: ET.Element, ego_actor: ET.Element) -> None: + for actor in _scenario_objects(root): + payload = _actor_payload(actor) + if payload is None: + continue + properties = _child(payload, "Properties") + if properties is None: + properties = _subelement(payload, "Properties") + property_type = next( + ( + prop + for prop in _children(properties, "Property") + if prop.get("name") == "type" + ), + None, + ) + if property_type is None: + property_type = _subelement(properties, "Property", {"name": "type"}) + property_type.set( + "value", + "ego_vehicle" if actor is ego_actor else "other_vehicle", + ) + + +def _remove_object_controllers(root: ET.Element) -> int: + removed = 0 + for actor in _scenario_objects(root): + for controller in _children(actor, "ObjectController"): + actor.remove(controller) + removed += 1 + return removed + + +def _clear_catalog_locations(root: ET.Element) -> int: + catalog_locations = _child(root, "CatalogLocations") + if catalog_locations is None: + return 0 + removed = len(list(catalog_locations)) + catalog_locations.clear() + return removed + + +def _replace_ros_controller(root: ET.Element) -> int: + actions = _path(root, "Storyboard", "Init", "Actions") + if actions is None: + raise ScenarioCheckerError("Storyboard/Init/Actions is required to add ego controller") + ego_private = _ego_private(root, "ego_vehicle") + if ego_private is None: + ego_private = _subelement(actions, "Private", {"entityRef": "ego_vehicle"}) + + # Shared maneuver actions cannot be removed without changing other actors. + for group in _iter(root, "ManeuverGroup"): + refs = { + ref.get("entityRef") + for ref in _children(_child(group, "Actors"), "EntityRef") + } + if "ego_vehicle" in refs and len(refs) > 1 and list(_iter(group, "ControllerAction")): + raise ScenarioCheckerError( + "Ego ControllerAction is shared with other actors; split the " + "ManeuverGroup by actor before importing" + ) + existing = _ego_controller_actions(root, "ego_vehicle") + parents = {child: parent for parent in root.iter() for child in parent} + required_children = { + "Action": "PrivateAction", "Event": "Action", + "Maneuver": "Event", "ManeuverGroup": "Maneuver", + } + for action in existing: + parent = parents[action] + parent.remove(action) + # Remove storyboard containers left without their required action children. + while (required := required_children.get(_local_name(parent.tag))): + if _children(parent, required): + break + owner = parents[parent] + owner.remove(parent) + parent = owner + removed = len(existing) + + private_action = _subelement(ego_private, "PrivateAction") + controller_action = _subelement(private_action, "ControllerAction") + override = _subelement(controller_action, "OverrideControllerValueAction") + for name in ("Throttle", "Brake", "Clutch", "ParkingBrake", "SteeringWheel"): + _subelement(override, name, {"value": "0", "active": "false"}) + _subelement(override, "Gear", {"number": "0", "active": "false"}) + assign = _subelement(controller_action, "AssignControllerAction") + controller = _subelement(assign, "Controller", {"name": "RosRouteController"}) + properties = _subelement(controller, "Properties") + _subelement( + properties, + "Property", + {"name": "module", "value": ROS_CONTROLLER_MODULE}, + ) + return removed + + +def _ensure_rts(root: ET.Element) -> int: + added = 0 + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = { + ref.get("entityRef", "") + for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") + } + if not actors or "ego_vehicle" in actors: + continue + for trajectory in _iter(maneuver_group, "Trajectory"): + declarations = _child(trajectory, "ParameterDeclarations") + if declarations is None: + declarations = ET.Element(f"{_namespace(trajectory)}ParameterDeclarations") + trajectory.insert(0, declarations) + existing = next( + ( + parameter + for parameter in _children(declarations, "ParameterDeclaration") + if parameter.get("name") == "rts-mode" + ), + None, + ) + if existing is None: + _subelement( + declarations, + "ParameterDeclaration", + {"name": "rts-mode", "value": "rts", "parameterType": "string"}, + ) + added += 1 + return added + + +def _convert_weather(root: ET.Element) -> int: + converted = 0 + for precipitation in _iter(root, "Precipitation"): + if "intensity" not in precipitation.attrib: + continue + if "precipitationIntensity" not in precipitation.attrib: + precipitation.set("precipitationIntensity", precipitation.get("intensity", "")) + del precipitation.attrib["intensity"] + converted += 1 + return converted + + +def _adjust_teleports(root: ET.Element) -> int: + adjusted = 0 + init_actions = _path(root, "Storyboard", "Init", "Actions") + for teleport in _iter(init_actions, "TeleportAction"): + world_position = next(iter(_iter(teleport, "WorldPosition")), None) + if world_position is None: + raise ScenarioCheckerError("Init TeleportAction has no WorldPosition") + try: + z_value = float(world_position.get("z", "0")) + except ValueError as error: + raise ScenarioCheckerError( + "Init TeleportAction WorldPosition requires a numeric z value" + ) from error + world_position.set("z", f"{z_value + 0.1:.12g}") + adjusted += 1 + return adjusted + + +def _condition_group(stop_trigger: ET.Element) -> ET.Element: + return _subelement(stop_trigger, "ConditionGroup") + + +def _ensure_act_stop_trigger( + root: ET.Element, + *, + timeout: Optional[float], + stop_on_ego_route_complete: bool, +) -> list[str]: + actions = [] + stories = _children(_child(root, "Storyboard"), "Story") + acts = _children(stories[-1], "Act") if stories else [] + if not acts: + return actions + act = acts[-1] + stop_trigger = _child(act, "StopTrigger") + if stop_trigger is None: + stop_trigger = _subelement(act, "StopTrigger") + + if timeout is not None and not any(True for _ in _iter(stop_trigger, "SimulationTimeCondition")): + group = _condition_group(stop_trigger) + condition = _subelement( + group, + "Condition", + {"name": "OpenADSimTimeout", "delay": "0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + _subelement( + by_value, + "SimulationTimeCondition", + {"value": f"{timeout:g}", "rule": "greaterThan"}, + ) + actions.append(f"Added {timeout:g}s Act timeout") + + if stop_on_ego_route_complete: + event_name = _ego_route_event(root, "ego_vehicle") + existing_refs = { + condition.get("storyboardElementRef", "") + for condition in _iter(stop_trigger, "StoryboardElementStateCondition") + if condition.get("state") == "completeState" + } + if event_name and event_name not in existing_refs: + group = _condition_group(stop_trigger) + condition = _subelement( + group, + "Condition", + {"name": "EgoRouteDone", "delay": "0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + _subelement( + by_value, + "StoryboardElementStateCondition", + { + "storyboardElementType": "event", + "storyboardElementRef": event_name, + "state": "completeState", + }, + ) + actions.append(f"Added EgoRouteDone condition for event {event_name}") + return actions + + +def _ensure_criteria(root: ET.Element, driven_distance: float) -> list[str]: + storyboard = _child(root, "Storyboard") + if storyboard is None: + raise ScenarioCheckerError("Storyboard is required to add ScenarioRunner criteria") + stop_trigger = _child(storyboard, "StopTrigger") + if stop_trigger is None: + stop_trigger = _subelement(storyboard, "StopTrigger") + + existing = { + condition.get("name", "") for condition in _iter(stop_trigger, "Condition") + } + criteria_group = next( + ( + group + for group in _children(stop_trigger, "ConditionGroup") + if any( + condition.get("name", "").startswith("criteria_") + for condition in _children(group, "Condition") + ) + ), + None, + ) + if criteria_group is None: + criteria_group = _condition_group(stop_trigger) + + added = [] + for name in CRITERIA: + if name in existing: + continue + condition = _subelement( + criteria_group, + "Condition", + {"name": name, "delay": "0.0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + if name == "criteria_DrivenDistanceTest": + attributes = { + "parameterRef": "distance_success", + "value": f"{driven_distance:g}", + "rule": "greaterThan", + } + else: + attributes = {"parameterRef": "", "value": "0", "rule": "lessThan"} + _subelement(by_value, "ParameterCondition", attributes) + added.append(name) + return added + + +def _sanitize_name(value: str) -> str: + normalized = re.sub(r"[^A-Za-z0-9._-]+", "_", value.strip()) + normalized = normalized.strip("._-") + return normalized + + +def _available_target(output_root: Path, base_name: str) -> Path: + candidate = output_root / base_name + index = 2 + while candidate.exists(): + candidate = output_root / f"{base_name}_{index}" + index += 1 + return candidate + + +def _write_xml(tree: ET.ElementTree, path: Path) -> None: + ET.indent(tree, space=" ") + tree.write(path, encoding="utf-8", xml_declaration=True) + + +def import_scenario( + scenario_file: Path | str, + *, + output_root: Path | str, + name: str = "", + opendrive: Path | str | None = None, + lanelet: Path | str | None = None, + ego: str = "", + timeout: Optional[float] = 60.0, + stop_on_ego_route_complete: bool = True, + driven_distance: float = 30.0, + repo_root: Path | str | None = None, +) -> ImportResult: + if timeout is not None and timeout <= 0: + raise ScenarioCheckerError("Scenario timeout must be greater than zero") + if driven_distance <= 0: + raise ScenarioCheckerError("Driven-distance criterion must be greater than zero") + scenario_path = Path(scenario_file).resolve() + root_path = Path(repo_root).resolve() if repo_root else _repo_root_from(scenario_path) + report = validate_scenario( + scenario_path, + opendrive=opendrive, + lanelet=lanelet, + ego=ego, + repo_root=root_path, + allow_repair=True, + ) + if not report.is_valid or report.map_resolution is None: + raise ScenarioCheckerError("; ".join(report.errors)) + + tree = _parse_xml(scenario_path, "OpenSCENARIO") + root = tree.getroot() + ego_actor, ego_errors = _select_ego(root, ego, allow_repair=True) + if ego_actor is None: + raise ScenarioCheckerError("; ".join(ego_errors)) + + actions: list[str] = [] + import_warnings = list(report.warnings) + actions.extend(_convert_to_osc_1_1(root)) + original_ego_name = ego_actor.get("name", "") + _rename_ego(root, ego_actor) + if original_ego_name != "ego_vehicle": + actions.append(f"Renamed ego actor {original_ego_name} to ego_vehicle") + object_controllers_removed = _remove_object_controllers(root) + if object_controllers_removed: + actions.append( + f"Removed {object_controllers_removed} ScenarioObject ObjectController element(s)" + ) + catalog_locations_cleared = _clear_catalog_locations(root) + if catalog_locations_cleared: + actions.append( + f"Cleared {catalog_locations_cleared} unused catalog location(s)" + ) + _ensure_actor_types(root, ego_actor) + actions.append("Normalized actor type properties") + replaced_controller_actions = _replace_ros_controller(root) + if replaced_controller_actions: + actions.append( + f"Replaced {replaced_controller_actions} ego ControllerAction element(s) " + "with RosRouteController" + ) + else: + actions.append("Added RosRouteController to ego_vehicle") + + rts_added = _ensure_rts(root) + if rts_added: + actions.append(f"Added rts-mode=rts to {rts_added} non-ego trajectory/trajectories") + weather_converted = _convert_weather(root) + if weather_converted: + actions.append(f"Converted {weather_converted} precipitation attribute(s)") + teleport_adjusted = _adjust_teleports(root) + if teleport_adjusted: + actions.append(f"Raised {teleport_adjusted} initial teleport position(s) by 0.1 m") + if stop_on_ego_route_complete and not _ego_route_event(root, "ego_vehicle"): + import_warnings.append( + "No ego AssignRouteAction event found; route-completion StopTrigger was not added" + ) + actions.extend( + _ensure_act_stop_trigger( + root, + timeout=timeout, + stop_on_ego_route_complete=stop_on_ego_route_complete, + ) + ) + criteria_added = _ensure_criteria(root, driven_distance) + if criteria_added: + actions.append(f"Added {len(criteria_added)} ScenarioRunner criterion/criteria") + + resolution = report.map_resolution + logic_element = _path(root, "RoadNetwork", "LogicFile") + assert logic_element is not None + + timestamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + base_name = _sanitize_name(name) if name.strip() else timestamp + if not base_name: + raise ScenarioCheckerError("Import name contains no usable characters") + destination_root = Path(output_root).resolve() + destination_root.mkdir(parents=True, exist_ok=True) + destination = _available_target(destination_root, base_name) + staging = Path(tempfile.mkdtemp(prefix=".scenario-import-", dir=destination_root)) + staging.chmod(0o2775) + + try: + scenario_output = staging / f"{destination.name}.xosc" + imported_resolution = resolution + if resolution.kind == "custom": + assert resolution.opendrive is not None and resolution.lanelet is not None + opendrive_name = _sanitize_name(resolution.opendrive.stem) + ".xodr" + lanelet_name = _sanitize_name(resolution.lanelet.stem) + ".osm" + opendrive_output = staging / opendrive_name + lanelet_output = staging / lanelet_name + shutil.copy2(resolution.opendrive, opendrive_output) + shutil.copy2(resolution.lanelet, lanelet_output) + logic_element.set("filepath", opendrive_name) + imported_resolution = MapResolution( + kind="custom", + logic_file=opendrive_name, + opendrive=destination / opendrive_name, + lanelet=destination / lanelet_name, + ) + actions.append(f"Set LogicFile to imported OpenDRIVE {opendrive_name}") + else: + logic_element.set("filepath", resolution.map_name) + imported_resolution = MapResolution( + kind="prebuilt", + logic_file=resolution.map_name, + map_name=resolution.map_name, + ) + + _write_xml(tree, scenario_output) + manifest = { + "imported_at": datetime.now(timezone.utc).isoformat(), + "source": str(scenario_path), + "scenario": f"{destination.name}.xosc", + "map": { + "type": imported_resolution.kind, + "map_name": imported_resolution.map_name, + "opendrive": imported_resolution.opendrive.name if imported_resolution.opendrive else "", + "lanelet": imported_resolution.lanelet.name if imported_resolution.lanelet else "", + }, + "actions": actions, + "teleport_z_adjusted": True, + } + (staging / "import.json").write_text( + json.dumps(manifest, indent=2, sort_keys=True) + "\n", + encoding="utf-8", + ) + staging.rename(destination) + except Exception: + shutil.rmtree(staging, ignore_errors=True) + raise + + return ImportResult( + directory=destination, + scenario_file=destination / f"{destination.name}.xosc", + map_resolution=imported_resolution, + actions=tuple(actions), + warnings=tuple(import_warnings), + repo_root=root_path, + ) + + +def _add_map_arguments(parser: argparse.ArgumentParser) -> None: + parser.add_argument("--opendrive", help="custom OpenDRIVE file overriding LogicFile") + parser.add_argument("--lanelet", help="matching Lanelet2 .osm file") + parser.add_argument("--ego", default="", help="actor to use when ego_vehicle is missing") + parser.add_argument("--repo-root", help="OpenADSim repository root") + parser.add_argument("--json", action="store_true", help="emit machine-readable JSON") + + +def _parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser( + description="Validate and import OpenSCENARIO bundles for OpenADSim/CARLA" + ) + subparsers = parser.add_subparsers(dest="command", required=True) + + validate = subparsers.add_parser("validate", help="validate without modifying files") + validate.add_argument("scenario") + _add_map_arguments(validate) + validate.add_argument("--expected-map", default="") + validate.add_argument("--expected-opendrive") + validate.add_argument("--expected-lanelet") + + validate_folder = subparsers.add_parser( + "validate-folder", + help="validate scenarios matching one active map", + ) + validate_folder.add_argument("folder") + validate_folder.add_argument("--repo-root") + validate_folder.add_argument("--expected-map", default="") + validate_folder.add_argument("--expected-opendrive") + validate_folder.add_argument("--lanelet") + validate_folder.add_argument("--json", action="store_true") + + validate_runtime_parser = subparsers.add_parser( + "validate-runtime", + help="validate the active scenario configuration from environment variables", + ) + validate_runtime_parser.add_argument("target") + validate_runtime_parser.add_argument("--json", action="store_true") + + importer = subparsers.add_parser("import", help="validate and create an import bundle") + importer.add_argument("scenario") + _add_map_arguments(importer) + importer.add_argument("--output-root", required=True) + importer.add_argument("--name", default="") + importer.add_argument("--timeout", type=float, default=60.0) + importer.add_argument("--no-ego-route-stop", action="store_true") + importer.add_argument("--driven-distance", type=float, default=30.0) + return parser.parse_args() + + +def _print_report(data: dict[str, object], as_json: bool) -> None: + if as_json: + print(json.dumps(data, indent=2, sort_keys=True)) + return + if data.get("valid"): + target = data.get("scenario_file") or data.get("scenario") or data.get("folder", "") + print(f"Valid: {target}") + if "checked" in data: + print(f" checked: {data['checked']}") + for action in data.get("actions", data.get("planned_changes", [])): + print(f" - {action}") + for warning in data.get("warnings", []): + print(f" warning: {warning}") + else: + for error in data.get("errors", []): + print(f"Error: {error}", file=sys.stderr) + + +def main() -> int: + args = _parse_args() + try: + if args.command == "validate": + report = validate_scenario( + args.scenario, + opendrive=args.opendrive, + lanelet=args.lanelet, + ego=args.ego, + repo_root=args.repo_root, + expected_map=args.expected_map, + expected_opendrive=args.expected_opendrive, + expected_lanelet=args.expected_lanelet, + ) + data = report.to_dict() + _print_report(data, args.json) + return 0 if report.is_valid else 1 + + if args.command == "validate-folder": + data = validate_scenario_folder( + args.folder, + repo_root=args.repo_root, + expected_map=args.expected_map, + expected_opendrive=args.expected_opendrive, + lanelet=args.lanelet, + ) + _print_report(data, args.json) + return 0 if data["valid"] else 1 + + if args.command == "validate-runtime": + data = validate_runtime(args.target) + _print_report(data, args.json) + return 0 if data["valid"] else 1 + + repo_root = Path(args.repo_root).resolve() if args.repo_root else None + result = import_scenario( + args.scenario, + output_root=args.output_root, + name=args.name, + opendrive=args.opendrive, + lanelet=args.lanelet, + ego=args.ego, + timeout=args.timeout, + stop_on_ego_route_complete=not args.no_ego_route_stop, + driven_distance=args.driven_distance, + repo_root=repo_root, + ) + data = result.to_dict() + _print_report(data, args.json) + return 0 + except ScenarioCheckerError as error: + data = {"valid": False, "errors": [str(error)], "warnings": []} + _print_report(data, args.json) + return 1 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl new file mode 100644 index 0000000..c06ec1c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -0,0 +1,34 @@ +openadservice: + image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.0 + args: + - /bin/bash + - -ic + - |- + set -e + python3 /scenario_checker.py validate-runtime "/${SCENARIO_FILE}" + exec python3 -u ../additional-files/scenario_runner.py \ + --host carla-server \ + --openscenario /${SCENARIO_FILE} \ + --output \ + --rtFactor 1.0 \ + --waitForEgo + env: + CARLA_HOST: carla-simulator + CARLA_PORT: 2000 + CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} + MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + SCENARIO_DIRECTORY: /scenarios + SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + volumes: + - mountPath: /scenario_checker.py + data: | +{{ readFile "scenario_checker.py" | indent 6 }} + - mountPath: /carla-simulation/scenarios + hostPath: /work/geller/openads-project/openadsim/carla-simulation/scenarios + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py new file mode 100644 index 0000000..456e3d8 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py @@ -0,0 +1,1413 @@ +#!/usr/bin/env python3 + +"""Validate and import OpenSCENARIO bundles for OpenADSim/CARLA.""" + +from __future__ import annotations + +import argparse +import json +import os +import re +import shutil +import sys +import tempfile +import xml.etree.ElementTree as ET +from dataclasses import dataclass, field +from datetime import datetime, timezone +from pathlib import Path +from typing import Optional + + +PREBUILT_MAPS = { + "aldenhoven": "aldenhoven", + "campus": "campus", + "town10hd_opt": "Town10HD_Opt", +} +CRITERIA = ( + "criteria_RunningStopTest", + "criteria_RunningRedLightTest", + "criteria_CollisionTest", + "criteria_WrongLaneTest", + "criteria_OnSidewalkTest", + "criteria_DrivenDistanceTest", +) +ROS_CONTROLLER_MODULE = "ros_vehicle_control_route_action.py" + + +class ScenarioCheckerError(RuntimeError): + """Raised for a user-facing validation or import error.""" + + +@dataclass(frozen=True) +class MapResolution: + kind: str + logic_file: str + map_name: str = "" + opendrive: Optional[Path] = None + lanelet: Optional[Path] = None + + +@dataclass +class ScenarioReport: + scenario: Path + errors: list[str] = field(default_factory=list) + warnings: list[str] = field(default_factory=list) + planned_changes: list[str] = field(default_factory=list) + map_resolution: Optional[MapResolution] = None + ego_actor: str = "" + + @property + def is_valid(self) -> bool: + return not self.errors + + def to_dict(self) -> dict[str, object]: + map_data: dict[str, object] = {} + if self.map_resolution: + map_data = { + "type": self.map_resolution.kind, + "logic_file": self.map_resolution.logic_file, + "map_name": self.map_resolution.map_name, + "opendrive": str(self.map_resolution.opendrive or ""), + "lanelet": str(self.map_resolution.lanelet or ""), + } + return { + "valid": self.is_valid, + "scenario": str(self.scenario), + "ego_actor": self.ego_actor, + "map": map_data, + "errors": self.errors, + "warnings": self.warnings, + "planned_changes": self.planned_changes, + } + + +@dataclass(frozen=True) +class ImportResult: + directory: Path + scenario_file: Path + map_resolution: MapResolution + actions: tuple[str, ...] + warnings: tuple[str, ...] + repo_root: Path + + def _relative(self, path: Optional[Path]) -> str: + if path is None: + return "" + try: + return path.resolve().relative_to(self.repo_root.resolve()).as_posix() + except ValueError: + return str(path.resolve()) + + def to_dict(self) -> dict[str, object]: + return { + "valid": True, + "directory": self._relative(self.directory), + "scenario_file": self._relative(self.scenario_file), + "map": { + "type": self.map_resolution.kind, + "map_name": self.map_resolution.map_name, + "opendrive": self._relative(self.map_resolution.opendrive), + "lanelet": self._relative(self.map_resolution.lanelet), + }, + "actions": list(self.actions), + "warnings": list(self.warnings), + } + + +def _local_name(tag: str) -> str: + return tag.rsplit("}", 1)[-1] + + +def _namespace(element: ET.Element) -> str: + if element.tag.startswith("{"): + return element.tag.split("}", 1)[0] + "}" + return "" + + +def _child(parent: Optional[ET.Element], name: str) -> Optional[ET.Element]: + if parent is None: + return None + return next( + (element for element in list(parent) if _local_name(element.tag) == name), + None, + ) + + +def _children(parent: Optional[ET.Element], name: str) -> list[ET.Element]: + if parent is None: + return [] + return [element for element in list(parent) if _local_name(element.tag) == name] + + +def _path(parent: Optional[ET.Element], *names: str) -> Optional[ET.Element]: + element = parent + for name in names: + element = _child(element, name) + if element is None: + return None + return element + + +def _iter(parent: Optional[ET.Element], name: str): + if parent is None: + return + for element in parent.iter(): + if _local_name(element.tag) == name: + yield element + + +def _subelement( + parent: ET.Element, + name: str, + attributes: Optional[dict[str, str]] = None, +) -> ET.Element: + return ET.SubElement( + parent, + f"{_namespace(parent)}{name}", + attributes or {}, + ) + + +def _normalize_map_reference(value: str) -> str: + normalized = value.strip().replace("\\", "/").rstrip("/") + filename = normalized.rsplit("/", 1)[-1] + if filename.lower().endswith(".xodr"): + filename = filename[:-5] + return filename.lower() + + +def _canonical_prebuilt_map(value: str) -> str: + return PREBUILT_MAPS.get(_normalize_map_reference(value), "") + + +def _version_conversion_issues(root: ET.Element) -> list[str]: + issues: list[str] = [] + header = _child(root, "FileHeader") + if header is None: + return ["FileHeader is missing"] + + major = header.get("revMajor", "") + minor = header.get("revMinor", "") + if major != "1": + return [f"Unsupported OpenSCENARIO major version {major or ''}; expected 1"] + if minor != "1": + issues.append(f"Convert OpenSCENARIO {major}.{minor or ''} to 1.1") + if _child(root, "VariableDeclarations") is not None: + issues.append("Remove OpenSCENARIO 1.2 VariableDeclarations") + if any(event.get("priority") == "override" for event in _iter(root, "Event")): + issues.append("Convert Event priority 'override' to 'overwrite'") + if any( + condition.get("relativeDistanceType") == "cartesianDistance" + for condition in _iter(root, "RelativeDistanceCondition") + ): + issues.append("Convert cartesianDistance to euclidianDistance") + return issues + + +def _convert_to_osc_1_1(root: ET.Element) -> list[str]: + actions: list[str] = [] + header = _child(root, "FileHeader") + if header is None: + raise ScenarioCheckerError("FileHeader is missing") + + major = header.get("revMajor", "") + minor = header.get("revMinor", "") + if major != "1": + raise ScenarioCheckerError( + f"Unsupported OpenSCENARIO major version {major or ''}; expected 1" + ) + if minor != "1": + header.set("revMinor", "1") + actions.append(f"Converted OpenSCENARIO {major}.{minor or ''} to 1.1") + + variable_declarations = _child(root, "VariableDeclarations") + if variable_declarations is not None: + root.remove(variable_declarations) + actions.append("Removed OpenSCENARIO 1.2 VariableDeclarations") + + priorities_converted = 0 + for event in _iter(root, "Event"): + if event.get("priority") == "override": + event.set("priority", "overwrite") + priorities_converted += 1 + if priorities_converted: + actions.append( + f"Converted {priorities_converted} Event priority value(s) from override to overwrite" + ) + + distances_converted = 0 + for condition in _iter(root, "RelativeDistanceCondition"): + if condition.get("relativeDistanceType") == "cartesianDistance": + condition.set("relativeDistanceType", "euclidianDistance") + distances_converted += 1 + if distances_converted: + actions.append( + f"Converted {distances_converted} cartesianDistance value(s) to euclidianDistance" + ) + return actions + + +def _parse_xml(path: Path, expected_root: str) -> ET.ElementTree: + try: + tree = ET.parse(path) + except (OSError, ET.ParseError) as error: + raise ScenarioCheckerError(f"Cannot parse {path}: {error}") from error + if _local_name(tree.getroot().tag) != expected_root: + raise ScenarioCheckerError( + f"{path} must have <{expected_root}> as its root element" + ) + return tree + + +def _repo_root_from(path: Path) -> Path: + for candidate in (path.resolve(), *path.resolve().parents): + if (candidate / "carla-simulation").is_dir() and (candidate / "utils").is_dir(): + return candidate + return Path.cwd().resolve() + + +def _resolve_map( + scenario_file: Path, + root: ET.Element, + *, + opendrive: Optional[Path], + lanelet: Optional[Path], +) -> MapResolution: + logic_element = _path(root, "RoadNetwork", "LogicFile") + if logic_element is None or not logic_element.get("filepath", "").strip(): + raise ScenarioCheckerError("RoadNetwork/LogicFile filepath is missing") + logic_file = logic_element.get("filepath", "").strip() + + selected_opendrive = opendrive.resolve() if opendrive else None + if selected_opendrive: + if selected_opendrive.suffix.lower() != ".xodr": + raise ScenarioCheckerError("Uploaded OpenDRIVE map must end in .xodr") + _parse_xml(selected_opendrive, "OpenDRIVE") + elif logic_file.lower().endswith(".xodr"): + raise ScenarioCheckerError( + "OpenDRIVE map referenced by LogicFile must be explicitly uploaded: " + f"{logic_file}" + ) + + if selected_opendrive: + selected_lanelet = lanelet.resolve() if lanelet else None + if selected_lanelet is None or not selected_lanelet.is_file(): + raise ScenarioCheckerError( + "Custom OpenDRIVE requires an explicitly uploaded Lanelet2 .osm file" + ) + if selected_lanelet.suffix.lower() != ".osm": + raise ScenarioCheckerError("Lanelet2 map must end in .osm") + _parse_xml(selected_lanelet, "osm") + return MapResolution( + kind="custom", + logic_file=logic_file, + opendrive=selected_opendrive, + lanelet=selected_lanelet, + ) + + if lanelet: + raise ScenarioCheckerError( + "A Lanelet2 upload without a custom OpenDRIVE map is not supported by the importer" + ) + map_name = _canonical_prebuilt_map(logic_file) + if not map_name: + supported = ", ".join(PREBUILT_MAPS.values()) + raise ScenarioCheckerError( + f"LogicFile references unknown prebuilt map {logic_file!r}; supported: {supported}" + ) + return MapResolution(kind="prebuilt", logic_file=logic_file, map_name=map_name) + + +def _scenario_objects(root: ET.Element) -> list[ET.Element]: + return _children(_child(root, "Entities"), "ScenarioObject") + + +def _actor_payload(actor: ET.Element) -> Optional[ET.Element]: + return next( + ( + element + for element in list(actor) + if _local_name(element.tag) in {"Vehicle", "Pedestrian"} + ), + None, + ) + + +def _actor_type(actor: ET.Element) -> str: + payload = _actor_payload(actor) + properties = _child(payload, "Properties") + for prop in _children(properties, "Property"): + if prop.get("name") == "type": + return prop.get("value", "") + return "" + + +def _select_ego( + root: ET.Element, + requested_ego: str, + *, + allow_repair: bool, +) -> tuple[Optional[ET.Element], list[str]]: + actors = _scenario_objects(root) + ego_actors = [ + actor + for actor in actors + if actor.get("name") == "ego_vehicle" or _actor_type(actor) == "ego_vehicle" + ] + unique_ego = list({id(actor): actor for actor in ego_actors}.values()) + if len(unique_ego) > 1: + return None, ["Multiple actors are marked as ego_vehicle"] + if unique_ego: + if requested_ego and unique_ego[0].get("name") != requested_ego: + return None, [ + f"Requested ego actor {requested_ego!r} conflicts with existing ego_vehicle" + ] + return unique_ego[0], [] + + vehicle_actors = [] + for actor in actors: + payload = _actor_payload(actor) + if payload is not None and _local_name(payload.tag) == "Vehicle": + vehicle_actors.append(actor) + if requested_ego: + requested = next( + (actor for actor in vehicle_actors if actor.get("name") == requested_ego), + None, + ) + if requested is None: + return None, [f"Requested ego actor does not exist or is not a Vehicle: {requested_ego}"] + return requested, [] + if not vehicle_actors: + return None, ["Scenario contains no inline Vehicle actor that can become ego_vehicle"] + if not allow_repair: + return None, [ + "Scenario has no ego_vehicle; import it to select and normalize an ego actor" + ] + return vehicle_actors[0], [] + + +def _ego_private(root: ET.Element, ego_name: str) -> Optional[ET.Element]: + actions = _path(root, "Storyboard", "Init", "Actions") + for private in _children(actions, "Private"): + if private.get("entityRef") == ego_name: + return private + return None + + +def _ego_controller_actions(root: ET.Element, ego_name: str) -> list[ET.Element]: + actions = _path(root, "Storyboard", "Init", "Actions") + result = [ + action + for private in _children(actions, "Private") + if private.get("entityRef") == ego_name + for action in _children(private, "PrivateAction") + if _child(action, "ControllerAction") is not None + ] + for group in _iter(root, "ManeuverGroup"): + actors = _child(group, "Actors") + refs = {ref.get("entityRef") for ref in _children(actors, "EntityRef")} + if ego_name in refs: + result.extend( + action for action in _iter(group, "PrivateAction") + if _child(action, "ControllerAction") is not None + ) + return result + + +def _has_normalized_ego_controller(root: ET.Element, ego_name: str) -> bool: + controller_actions = _ego_controller_actions(root, ego_name) + if len(controller_actions) != 1: + return False + init = _path(root, "Storyboard", "Init", "Actions") + if controller_actions[0] not in list(_iter(init, "PrivateAction")): + return False + assign_actions = list(_iter(controller_actions[0], "AssignControllerAction")) + if len(assign_actions) != 1: + return False + return any( + prop.get("name") == "module" and prop.get("value") == ROS_CONTROLLER_MODULE + for prop in _iter(assign_actions[0], "Property") + ) + + +def _object_controllers(root: ET.Element) -> list[ET.Element]: + return [ + controller + for actor in _scenario_objects(root) + for controller in _children(actor, "ObjectController") + ] + + +def _catalog_references_outside_object_controllers( + root: ET.Element, +) -> list[ET.Element]: + replaced_reference_ids = { + id(reference) + for controller in _object_controllers(root) + for reference in _iter(controller, "CatalogReference") + } + return [ + reference + for reference in _iter(root, "CatalogReference") + if id(reference) not in replaced_reference_ids + ] + + +def _ego_route_event(root: ET.Element, ego_name: str) -> str: + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = _child(maneuver_group, "Actors") + if not any( + ref.get("entityRef") == ego_name for ref in _children(actors, "EntityRef") + ): + continue + for event in _iter(maneuver_group, "Event"): + if any(True for _ in _iter(event, "AssignRouteAction")): + return event.get("name", "") + return "" + + +def _missing_rts_count(root: ET.Element, ego_name: str) -> int: + missing = 0 + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = { + ref.get("entityRef", "") + for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") + } + if not actors or ego_name in actors: + continue + for trajectory in _iter(maneuver_group, "Trajectory"): + declarations = _child(trajectory, "ParameterDeclarations") + if not any( + parameter.get("name") == "rts-mode" + for parameter in _children(declarations, "ParameterDeclaration") + ): + missing += 1 + return missing + + +def _missing_criteria(root: ET.Element) -> list[str]: + storyboard = _child(root, "Storyboard") + stop_trigger = _child(storyboard, "StopTrigger") + existing = { + condition.get("name", "") for condition in _iter(stop_trigger, "Condition") + } + return [name for name in CRITERIA if name not in existing] + + +def _validate_expected_map( + report: ScenarioReport, + *, + expected_map: str, + expected_opendrive: Optional[Path], + expected_lanelet: Optional[Path], +) -> None: + resolution = report.map_resolution + if resolution is None: + return + if expected_map: + expected_canonical = _canonical_prebuilt_map(expected_map) + if resolution.kind != "prebuilt" or resolution.map_name != expected_canonical: + report.errors.append( + f"Configured prebuilt map {expected_map!r} does not match LogicFile {resolution.logic_file!r}" + ) + if expected_opendrive: + if resolution.kind != "custom" or resolution.opendrive is None: + report.errors.append( + "Configured CUSTOM_OPENDRIVE does not match the prebuilt map in LogicFile" + ) + else: + configured = expected_opendrive.resolve() + if configured.parent != report.scenario.parent.resolve(): + report.errors.append( + "CUSTOM_OPENDRIVE must be in the same directory as the " + f"OpenSCENARIO file: {configured}" + ) + logic_reference = Path(resolution.logic_file.replace("\\", "/")) + if ( + logic_reference.is_absolute() + or logic_reference.parent != Path(".") + or logic_reference.name != configured.name + ): + report.errors.append( + f"LogicFile filepath must reference the configured OpenDRIVE in the " + "same directory as the OpenSCENARIO file; expected only the filename " + f"{configured.name!r}, got {resolution.logic_file!r}" + ) + try: + matches = resolution.opendrive.samefile(configured) + except OSError: + matches = resolution.opendrive.resolve() == configured + if not matches: + report.errors.append( + f"Configured OpenDRIVE {configured} does not match LogicFile map {resolution.opendrive}" + ) + if expected_lanelet: + if resolution.lanelet is None: + report.errors.append("Configured CUSTOM_LANELET has no matching custom OpenDRIVE map") + else: + configured = expected_lanelet.resolve() + if configured.parent != report.scenario.parent.resolve(): + report.errors.append( + "CUSTOM_LANELET must be in the same directory as the " + f"OpenSCENARIO file: {configured}" + ) + try: + matches = resolution.lanelet.samefile(configured) + except OSError: + matches = resolution.lanelet.resolve() == configured + if not matches: + report.errors.append( + f"Configured Lanelet2 map {configured} does not match resolved map {resolution.lanelet}" + ) + + +def validate_scenario( + scenario_file: Path | str, + *, + opendrive: Path | str | None = None, + lanelet: Path | str | None = None, + ego: str = "", + repo_root: Path | str | None = None, + expected_map: str = "", + expected_opendrive: Path | str | None = None, + expected_lanelet: Path | str | None = None, + allow_repair: bool = False, +) -> ScenarioReport: + scenario_path = Path(scenario_file).resolve() + report = ScenarioReport(scenario=scenario_path) + try: + tree = _parse_xml(scenario_path, "OpenSCENARIO") + root = tree.getroot() + version_issues = _version_conversion_issues(root) + unrepairable_version = any( + issue.startswith("Unsupported") or issue == "FileHeader is missing" + for issue in version_issues + ) + if unrepairable_version or not allow_repair: + report.errors.extend(version_issues) + else: + report.planned_changes.extend(version_issues) + report.map_resolution = _resolve_map( + scenario_path, + root, + opendrive=Path(opendrive) if opendrive else None, + lanelet=Path(lanelet) if lanelet else None, + ) + ego_actor, ego_errors = _select_ego( + root, + ego, + allow_repair=allow_repair, + ) + report.errors.extend(ego_errors) + if ego_actor is not None: + report.ego_actor = ego_actor.get("name", "") + if report.ego_actor != "ego_vehicle": + report.planned_changes.append( + f"Rename ego actor {report.ego_actor!r} to 'ego_vehicle'" + ) + if _actor_type(ego_actor) != "ego_vehicle": + report.planned_changes.append("Set ego actor type=ego_vehicle") + if not _has_normalized_ego_controller(root, report.ego_actor): + if allow_repair: + report.planned_changes.append( + "Replace ego ControllerAction elements with RosRouteController" + ) + else: + report.errors.append( + "ego_vehicle controller setup is not normalized; import the " + "scenario to replace it with RosRouteController" + ) + missing_rts = _missing_rts_count(root, report.ego_actor) + if missing_rts: + report.planned_changes.append( + f"Add rts-mode=rts to {missing_rts} non-ego trajectory/trajectories" + ) + + object_controller_count = len(_object_controllers(root)) + if object_controller_count: + message = ( + f"Remove {object_controller_count} ScenarioObject " + "ObjectController element(s)" + ) + if allow_repair: + report.planned_changes.append(message) + else: + report.errors.append( + f"{message}; import the scenario to use runtime controllers" + ) + remaining_catalog_references = _catalog_references_outside_object_controllers(root) + if remaining_catalog_references: + report.errors.append( + f"Scenario contains {len(remaining_catalog_references)} unsupported " + "external CatalogReference element(s)" + ) + old_precipitation = sum( + 1 for element in _iter(root, "Precipitation") if "intensity" in element.attrib + ) + if old_precipitation: + report.planned_changes.append( + f"Rename intensity on {old_precipitation} Precipitation element(s)" + ) + + init_actions = _path(root, "Storyboard", "Init", "Actions") + teleport_count = 0 + for teleport in _iter(init_actions, "TeleportAction"): + world_position = next(iter(_iter(teleport, "WorldPosition")), None) + if world_position is None: + report.errors.append("Init TeleportAction has no WorldPosition") + continue + try: + float(world_position.get("z", "0")) + except ValueError: + report.errors.append("Init TeleportAction WorldPosition requires a numeric z value") + continue + teleport_count += 1 + if teleport_count: + report.planned_changes.append( + f"Raise {teleport_count} initial TeleportAction position(s) by 0.1 m" + ) + + missing_criteria = _missing_criteria(root) + if missing_criteria: + report.planned_changes.append( + f"Add {len(missing_criteria)} missing ScenarioRunner criterion/criteria" + ) + + _validate_expected_map( + report, + expected_map=expected_map, + expected_opendrive=Path(expected_opendrive) if expected_opendrive else None, + expected_lanelet=Path(expected_lanelet) if expected_lanelet else None, + ) + except ScenarioCheckerError as error: + report.errors.append(str(error)) + return report + + +def validate_scenario_folder( + scenario_folder: Path | str, + *, + repo_root: Path | str | None = None, + expected_map: str = "", + expected_opendrive: Path | str | None = None, + lanelet: Path | str | None = None, +) -> dict[str, object]: + folder = Path(scenario_folder).resolve() + if not folder.is_dir(): + return { + "valid": False, + "folder": str(folder), + "checked": 0, + "errors": [f"Scenario folder does not exist: {folder}"], + "warnings": [], + } + + custom_opendrive = Path(expected_opendrive).resolve() if expected_opendrive else None + selected_reference = custom_opendrive.name if custom_opendrive else expected_map + selected_normalized = _normalize_map_reference(selected_reference) + errors: list[str] = [] + warnings: list[str] = [] + checked = 0 + + for scenario in sorted(folder.rglob("*.xosc")): + if "catalogs" in {part.lower() for part in scenario.parts}: + continue + try: + tree = _parse_xml(scenario, "OpenSCENARIO") + logic = _path(tree.getroot(), "RoadNetwork", "LogicFile") + logic_file = logic.get("filepath", "") if logic is not None else "" + if custom_opendrive: + logic_reference = Path(logic_file.replace("\\", "/")) + if ( + scenario.parent.resolve() != custom_opendrive.parent + or logic_reference.is_absolute() + or logic_reference.parent != Path(".") + or logic_reference.name != custom_opendrive.name + ): + continue + elif selected_normalized and _normalize_map_reference(logic_file) != selected_normalized: + continue + except ScenarioCheckerError as error: + errors.append(f"{scenario}: {error}") + continue + + report = validate_scenario( + scenario, + repo_root=repo_root, + opendrive=expected_opendrive, + lanelet=lanelet, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + expected_lanelet=lanelet, + ) + checked += 1 + errors.extend(f"{scenario}: {message}" for message in report.errors) + warnings.extend(f"{scenario}: {message}" for message in report.warnings) + + if selected_normalized and checked == 0: + errors.append(f"No OpenSCENARIO files match the configured map {selected_reference!r}") + + return { + "valid": not errors, + "folder": str(folder), + "checked": checked, + "errors": errors, + "warnings": warnings, + } + + +def _runtime_asset_path(value: str, scenario_root: Path) -> Path: + reference = Path(value) + root = scenario_root.resolve() + if reference.is_absolute() and reference.exists(): + resolved = reference.resolve() + else: + normalized = value.strip().replace("\\", "/").lstrip("/") + repository_prefix = "carla-simulation/scenarios/" + if repository_prefix in normalized: + normalized = normalized.split(repository_prefix, 1)[1] + resolved = (root / normalized).resolve() + if not resolved.is_relative_to(root): + raise ScenarioCheckerError( + f"Runtime scenario path must stay below {root}: {value}" + ) + return resolved + + +def _scenario_root_from_file(scenario: Path) -> Path: + for parent in scenario.resolve().parents: + if parent.name == "scenarios" and parent.parent.name == "carla-simulation": + return parent + return scenario.resolve().parent + + +def validate_runtime( + target: Path | str, + environment: Optional[dict[str, str]] = None, +) -> dict[str, object]: + env = os.environ if environment is None else environment + resolved_target = Path(target).resolve() + if resolved_target == Path("/"): + raise ScenarioCheckerError("Scenario path must not be empty or the filesystem root") + if resolved_target.is_dir(): + target_type = "folder" + root = resolved_target + elif resolved_target.is_file(): + target_type = "file" + root = _scenario_root_from_file(resolved_target) + else: + raise ScenarioCheckerError(f"Scenario path does not exist: {resolved_target}") + + expected_map = env.get("MAP", "").strip() + opendrive_value = env.get("CUSTOM_OPENDRIVE", "").strip() + lanelet_value = env.get("CUSTOM_LANELET", "").strip() + expected_opendrive = ( + _runtime_asset_path(opendrive_value, root) if opendrive_value else None + ) + lanelet = _runtime_asset_path(lanelet_value, root) if lanelet_value else None + + if target_type == "folder": + return validate_scenario_folder( + root, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + lanelet=lanelet, + ) + report = validate_scenario( + resolved_target, + opendrive=expected_opendrive, + expected_map=expected_map, + expected_opendrive=expected_opendrive, + expected_lanelet=lanelet, + lanelet=lanelet, + ) + return report.to_dict() + + +def _rename_ego(root: ET.Element, actor: ET.Element) -> None: + old_name = actor.get("name", "") + if old_name == "ego_vehicle": + return + for element in root.iter(): + for attribute, value in list(element.attrib.items()): + if value == old_name: + element.set(attribute, "ego_vehicle") + + +def _ensure_actor_types(root: ET.Element, ego_actor: ET.Element) -> None: + for actor in _scenario_objects(root): + payload = _actor_payload(actor) + if payload is None: + continue + properties = _child(payload, "Properties") + if properties is None: + properties = _subelement(payload, "Properties") + property_type = next( + ( + prop + for prop in _children(properties, "Property") + if prop.get("name") == "type" + ), + None, + ) + if property_type is None: + property_type = _subelement(properties, "Property", {"name": "type"}) + property_type.set( + "value", + "ego_vehicle" if actor is ego_actor else "other_vehicle", + ) + + +def _remove_object_controllers(root: ET.Element) -> int: + removed = 0 + for actor in _scenario_objects(root): + for controller in _children(actor, "ObjectController"): + actor.remove(controller) + removed += 1 + return removed + + +def _clear_catalog_locations(root: ET.Element) -> int: + catalog_locations = _child(root, "CatalogLocations") + if catalog_locations is None: + return 0 + removed = len(list(catalog_locations)) + catalog_locations.clear() + return removed + + +def _replace_ros_controller(root: ET.Element) -> int: + actions = _path(root, "Storyboard", "Init", "Actions") + if actions is None: + raise ScenarioCheckerError("Storyboard/Init/Actions is required to add ego controller") + ego_private = _ego_private(root, "ego_vehicle") + if ego_private is None: + ego_private = _subelement(actions, "Private", {"entityRef": "ego_vehicle"}) + + # Shared maneuver actions cannot be removed without changing other actors. + for group in _iter(root, "ManeuverGroup"): + refs = { + ref.get("entityRef") + for ref in _children(_child(group, "Actors"), "EntityRef") + } + if "ego_vehicle" in refs and len(refs) > 1 and list(_iter(group, "ControllerAction")): + raise ScenarioCheckerError( + "Ego ControllerAction is shared with other actors; split the " + "ManeuverGroup by actor before importing" + ) + existing = _ego_controller_actions(root, "ego_vehicle") + parents = {child: parent for parent in root.iter() for child in parent} + required_children = { + "Action": "PrivateAction", "Event": "Action", + "Maneuver": "Event", "ManeuverGroup": "Maneuver", + } + for action in existing: + parent = parents[action] + parent.remove(action) + # Remove storyboard containers left without their required action children. + while (required := required_children.get(_local_name(parent.tag))): + if _children(parent, required): + break + owner = parents[parent] + owner.remove(parent) + parent = owner + removed = len(existing) + + private_action = _subelement(ego_private, "PrivateAction") + controller_action = _subelement(private_action, "ControllerAction") + override = _subelement(controller_action, "OverrideControllerValueAction") + for name in ("Throttle", "Brake", "Clutch", "ParkingBrake", "SteeringWheel"): + _subelement(override, name, {"value": "0", "active": "false"}) + _subelement(override, "Gear", {"number": "0", "active": "false"}) + assign = _subelement(controller_action, "AssignControllerAction") + controller = _subelement(assign, "Controller", {"name": "RosRouteController"}) + properties = _subelement(controller, "Properties") + _subelement( + properties, + "Property", + {"name": "module", "value": ROS_CONTROLLER_MODULE}, + ) + return removed + + +def _ensure_rts(root: ET.Element) -> int: + added = 0 + for maneuver_group in _iter(root, "ManeuverGroup"): + actors = { + ref.get("entityRef", "") + for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") + } + if not actors or "ego_vehicle" in actors: + continue + for trajectory in _iter(maneuver_group, "Trajectory"): + declarations = _child(trajectory, "ParameterDeclarations") + if declarations is None: + declarations = ET.Element(f"{_namespace(trajectory)}ParameterDeclarations") + trajectory.insert(0, declarations) + existing = next( + ( + parameter + for parameter in _children(declarations, "ParameterDeclaration") + if parameter.get("name") == "rts-mode" + ), + None, + ) + if existing is None: + _subelement( + declarations, + "ParameterDeclaration", + {"name": "rts-mode", "value": "rts", "parameterType": "string"}, + ) + added += 1 + return added + + +def _convert_weather(root: ET.Element) -> int: + converted = 0 + for precipitation in _iter(root, "Precipitation"): + if "intensity" not in precipitation.attrib: + continue + if "precipitationIntensity" not in precipitation.attrib: + precipitation.set("precipitationIntensity", precipitation.get("intensity", "")) + del precipitation.attrib["intensity"] + converted += 1 + return converted + + +def _adjust_teleports(root: ET.Element) -> int: + adjusted = 0 + init_actions = _path(root, "Storyboard", "Init", "Actions") + for teleport in _iter(init_actions, "TeleportAction"): + world_position = next(iter(_iter(teleport, "WorldPosition")), None) + if world_position is None: + raise ScenarioCheckerError("Init TeleportAction has no WorldPosition") + try: + z_value = float(world_position.get("z", "0")) + except ValueError as error: + raise ScenarioCheckerError( + "Init TeleportAction WorldPosition requires a numeric z value" + ) from error + world_position.set("z", f"{z_value + 0.1:.12g}") + adjusted += 1 + return adjusted + + +def _condition_group(stop_trigger: ET.Element) -> ET.Element: + return _subelement(stop_trigger, "ConditionGroup") + + +def _ensure_act_stop_trigger( + root: ET.Element, + *, + timeout: Optional[float], + stop_on_ego_route_complete: bool, +) -> list[str]: + actions = [] + stories = _children(_child(root, "Storyboard"), "Story") + acts = _children(stories[-1], "Act") if stories else [] + if not acts: + return actions + act = acts[-1] + stop_trigger = _child(act, "StopTrigger") + if stop_trigger is None: + stop_trigger = _subelement(act, "StopTrigger") + + if timeout is not None and not any(True for _ in _iter(stop_trigger, "SimulationTimeCondition")): + group = _condition_group(stop_trigger) + condition = _subelement( + group, + "Condition", + {"name": "OpenADSimTimeout", "delay": "0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + _subelement( + by_value, + "SimulationTimeCondition", + {"value": f"{timeout:g}", "rule": "greaterThan"}, + ) + actions.append(f"Added {timeout:g}s Act timeout") + + if stop_on_ego_route_complete: + event_name = _ego_route_event(root, "ego_vehicle") + existing_refs = { + condition.get("storyboardElementRef", "") + for condition in _iter(stop_trigger, "StoryboardElementStateCondition") + if condition.get("state") == "completeState" + } + if event_name and event_name not in existing_refs: + group = _condition_group(stop_trigger) + condition = _subelement( + group, + "Condition", + {"name": "EgoRouteDone", "delay": "0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + _subelement( + by_value, + "StoryboardElementStateCondition", + { + "storyboardElementType": "event", + "storyboardElementRef": event_name, + "state": "completeState", + }, + ) + actions.append(f"Added EgoRouteDone condition for event {event_name}") + return actions + + +def _ensure_criteria(root: ET.Element, driven_distance: float) -> list[str]: + storyboard = _child(root, "Storyboard") + if storyboard is None: + raise ScenarioCheckerError("Storyboard is required to add ScenarioRunner criteria") + stop_trigger = _child(storyboard, "StopTrigger") + if stop_trigger is None: + stop_trigger = _subelement(storyboard, "StopTrigger") + + existing = { + condition.get("name", "") for condition in _iter(stop_trigger, "Condition") + } + criteria_group = next( + ( + group + for group in _children(stop_trigger, "ConditionGroup") + if any( + condition.get("name", "").startswith("criteria_") + for condition in _children(group, "Condition") + ) + ), + None, + ) + if criteria_group is None: + criteria_group = _condition_group(stop_trigger) + + added = [] + for name in CRITERIA: + if name in existing: + continue + condition = _subelement( + criteria_group, + "Condition", + {"name": name, "delay": "0.0", "conditionEdge": "rising"}, + ) + by_value = _subelement(condition, "ByValueCondition") + if name == "criteria_DrivenDistanceTest": + attributes = { + "parameterRef": "distance_success", + "value": f"{driven_distance:g}", + "rule": "greaterThan", + } + else: + attributes = {"parameterRef": "", "value": "0", "rule": "lessThan"} + _subelement(by_value, "ParameterCondition", attributes) + added.append(name) + return added + + +def _sanitize_name(value: str) -> str: + normalized = re.sub(r"[^A-Za-z0-9._-]+", "_", value.strip()) + normalized = normalized.strip("._-") + return normalized + + +def _available_target(output_root: Path, base_name: str) -> Path: + candidate = output_root / base_name + index = 2 + while candidate.exists(): + candidate = output_root / f"{base_name}_{index}" + index += 1 + return candidate + + +def _write_xml(tree: ET.ElementTree, path: Path) -> None: + ET.indent(tree, space=" ") + tree.write(path, encoding="utf-8", xml_declaration=True) + + +def import_scenario( + scenario_file: Path | str, + *, + output_root: Path | str, + name: str = "", + opendrive: Path | str | None = None, + lanelet: Path | str | None = None, + ego: str = "", + timeout: Optional[float] = 60.0, + stop_on_ego_route_complete: bool = True, + driven_distance: float = 30.0, + repo_root: Path | str | None = None, +) -> ImportResult: + if timeout is not None and timeout <= 0: + raise ScenarioCheckerError("Scenario timeout must be greater than zero") + if driven_distance <= 0: + raise ScenarioCheckerError("Driven-distance criterion must be greater than zero") + scenario_path = Path(scenario_file).resolve() + root_path = Path(repo_root).resolve() if repo_root else _repo_root_from(scenario_path) + report = validate_scenario( + scenario_path, + opendrive=opendrive, + lanelet=lanelet, + ego=ego, + repo_root=root_path, + allow_repair=True, + ) + if not report.is_valid or report.map_resolution is None: + raise ScenarioCheckerError("; ".join(report.errors)) + + tree = _parse_xml(scenario_path, "OpenSCENARIO") + root = tree.getroot() + ego_actor, ego_errors = _select_ego(root, ego, allow_repair=True) + if ego_actor is None: + raise ScenarioCheckerError("; ".join(ego_errors)) + + actions: list[str] = [] + import_warnings = list(report.warnings) + actions.extend(_convert_to_osc_1_1(root)) + original_ego_name = ego_actor.get("name", "") + _rename_ego(root, ego_actor) + if original_ego_name != "ego_vehicle": + actions.append(f"Renamed ego actor {original_ego_name} to ego_vehicle") + object_controllers_removed = _remove_object_controllers(root) + if object_controllers_removed: + actions.append( + f"Removed {object_controllers_removed} ScenarioObject ObjectController element(s)" + ) + catalog_locations_cleared = _clear_catalog_locations(root) + if catalog_locations_cleared: + actions.append( + f"Cleared {catalog_locations_cleared} unused catalog location(s)" + ) + _ensure_actor_types(root, ego_actor) + actions.append("Normalized actor type properties") + replaced_controller_actions = _replace_ros_controller(root) + if replaced_controller_actions: + actions.append( + f"Replaced {replaced_controller_actions} ego ControllerAction element(s) " + "with RosRouteController" + ) + else: + actions.append("Added RosRouteController to ego_vehicle") + + rts_added = _ensure_rts(root) + if rts_added: + actions.append(f"Added rts-mode=rts to {rts_added} non-ego trajectory/trajectories") + weather_converted = _convert_weather(root) + if weather_converted: + actions.append(f"Converted {weather_converted} precipitation attribute(s)") + teleport_adjusted = _adjust_teleports(root) + if teleport_adjusted: + actions.append(f"Raised {teleport_adjusted} initial teleport position(s) by 0.1 m") + if stop_on_ego_route_complete and not _ego_route_event(root, "ego_vehicle"): + import_warnings.append( + "No ego AssignRouteAction event found; route-completion StopTrigger was not added" + ) + actions.extend( + _ensure_act_stop_trigger( + root, + timeout=timeout, + stop_on_ego_route_complete=stop_on_ego_route_complete, + ) + ) + criteria_added = _ensure_criteria(root, driven_distance) + if criteria_added: + actions.append(f"Added {len(criteria_added)} ScenarioRunner criterion/criteria") + + resolution = report.map_resolution + logic_element = _path(root, "RoadNetwork", "LogicFile") + assert logic_element is not None + + timestamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + base_name = _sanitize_name(name) if name.strip() else timestamp + if not base_name: + raise ScenarioCheckerError("Import name contains no usable characters") + destination_root = Path(output_root).resolve() + destination_root.mkdir(parents=True, exist_ok=True) + destination = _available_target(destination_root, base_name) + staging = Path(tempfile.mkdtemp(prefix=".scenario-import-", dir=destination_root)) + staging.chmod(0o2775) + + try: + scenario_output = staging / f"{destination.name}.xosc" + imported_resolution = resolution + if resolution.kind == "custom": + assert resolution.opendrive is not None and resolution.lanelet is not None + opendrive_name = _sanitize_name(resolution.opendrive.stem) + ".xodr" + lanelet_name = _sanitize_name(resolution.lanelet.stem) + ".osm" + opendrive_output = staging / opendrive_name + lanelet_output = staging / lanelet_name + shutil.copy2(resolution.opendrive, opendrive_output) + shutil.copy2(resolution.lanelet, lanelet_output) + logic_element.set("filepath", opendrive_name) + imported_resolution = MapResolution( + kind="custom", + logic_file=opendrive_name, + opendrive=destination / opendrive_name, + lanelet=destination / lanelet_name, + ) + actions.append(f"Set LogicFile to imported OpenDRIVE {opendrive_name}") + else: + logic_element.set("filepath", resolution.map_name) + imported_resolution = MapResolution( + kind="prebuilt", + logic_file=resolution.map_name, + map_name=resolution.map_name, + ) + + _write_xml(tree, scenario_output) + manifest = { + "imported_at": datetime.now(timezone.utc).isoformat(), + "source": str(scenario_path), + "scenario": f"{destination.name}.xosc", + "map": { + "type": imported_resolution.kind, + "map_name": imported_resolution.map_name, + "opendrive": imported_resolution.opendrive.name if imported_resolution.opendrive else "", + "lanelet": imported_resolution.lanelet.name if imported_resolution.lanelet else "", + }, + "actions": actions, + "teleport_z_adjusted": True, + } + (staging / "import.json").write_text( + json.dumps(manifest, indent=2, sort_keys=True) + "\n", + encoding="utf-8", + ) + staging.rename(destination) + except Exception: + shutil.rmtree(staging, ignore_errors=True) + raise + + return ImportResult( + directory=destination, + scenario_file=destination / f"{destination.name}.xosc", + map_resolution=imported_resolution, + actions=tuple(actions), + warnings=tuple(import_warnings), + repo_root=root_path, + ) + + +def _add_map_arguments(parser: argparse.ArgumentParser) -> None: + parser.add_argument("--opendrive", help="custom OpenDRIVE file overriding LogicFile") + parser.add_argument("--lanelet", help="matching Lanelet2 .osm file") + parser.add_argument("--ego", default="", help="actor to use when ego_vehicle is missing") + parser.add_argument("--repo-root", help="OpenADSim repository root") + parser.add_argument("--json", action="store_true", help="emit machine-readable JSON") + + +def _parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser( + description="Validate and import OpenSCENARIO bundles for OpenADSim/CARLA" + ) + subparsers = parser.add_subparsers(dest="command", required=True) + + validate = subparsers.add_parser("validate", help="validate without modifying files") + validate.add_argument("scenario") + _add_map_arguments(validate) + validate.add_argument("--expected-map", default="") + validate.add_argument("--expected-opendrive") + validate.add_argument("--expected-lanelet") + + validate_folder = subparsers.add_parser( + "validate-folder", + help="validate scenarios matching one active map", + ) + validate_folder.add_argument("folder") + validate_folder.add_argument("--repo-root") + validate_folder.add_argument("--expected-map", default="") + validate_folder.add_argument("--expected-opendrive") + validate_folder.add_argument("--lanelet") + validate_folder.add_argument("--json", action="store_true") + + validate_runtime_parser = subparsers.add_parser( + "validate-runtime", + help="validate the active scenario configuration from environment variables", + ) + validate_runtime_parser.add_argument("target") + validate_runtime_parser.add_argument("--json", action="store_true") + + importer = subparsers.add_parser("import", help="validate and create an import bundle") + importer.add_argument("scenario") + _add_map_arguments(importer) + importer.add_argument("--output-root", required=True) + importer.add_argument("--name", default="") + importer.add_argument("--timeout", type=float, default=60.0) + importer.add_argument("--no-ego-route-stop", action="store_true") + importer.add_argument("--driven-distance", type=float, default=30.0) + return parser.parse_args() + + +def _print_report(data: dict[str, object], as_json: bool) -> None: + if as_json: + print(json.dumps(data, indent=2, sort_keys=True)) + return + if data.get("valid"): + target = data.get("scenario_file") or data.get("scenario") or data.get("folder", "") + print(f"Valid: {target}") + if "checked" in data: + print(f" checked: {data['checked']}") + for action in data.get("actions", data.get("planned_changes", [])): + print(f" - {action}") + for warning in data.get("warnings", []): + print(f" warning: {warning}") + else: + for error in data.get("errors", []): + print(f"Error: {error}", file=sys.stderr) + + +def main() -> int: + args = _parse_args() + try: + if args.command == "validate": + report = validate_scenario( + args.scenario, + opendrive=args.opendrive, + lanelet=args.lanelet, + ego=args.ego, + repo_root=args.repo_root, + expected_map=args.expected_map, + expected_opendrive=args.expected_opendrive, + expected_lanelet=args.expected_lanelet, + ) + data = report.to_dict() + _print_report(data, args.json) + return 0 if report.is_valid else 1 + + if args.command == "validate-folder": + data = validate_scenario_folder( + args.folder, + repo_root=args.repo_root, + expected_map=args.expected_map, + expected_opendrive=args.expected_opendrive, + lanelet=args.lanelet, + ) + _print_report(data, args.json) + return 0 if data["valid"] else 1 + + if args.command == "validate-runtime": + data = validate_runtime(args.target) + _print_report(data, args.json) + return 0 if data["valid"] else 1 + + repo_root = Path(args.repo_root).resolve() if args.repo_root else None + result = import_scenario( + args.scenario, + output_root=args.output_root, + name=args.name, + opendrive=args.opendrive, + lanelet=args.lanelet, + ego=args.ego, + timeout=args.timeout, + stop_on_ego_route_complete=not args.no_ego_route_stop, + driven_distance=args.driven_distance, + repo_root=repo_root, + ) + data = result.to_dict() + _print_report(data, args.json) + return 0 + except ScenarioCheckerError as error: + data = {"valid": False, "errors": [str(error)], "warnings": []} + _print_report(data, args.json) + return 1 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl new file mode 100644 index 0000000..2fd4b97 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -0,0 +1,35 @@ +openadservice: + image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.0 + args: + - /bin/bash + - -ic + - |- + set -e + python3 /scenario_checker.py validate-runtime /carla-simulation/scenarios + SCENARIOS_DIR=/carla-simulation/scenarios + if [ -n "${CUSTOM_OPENDRIVE}" ]; then + SCENARIOS_DIR="$(dirname "/${CUSTOM_OPENDRIVE#/}")" + fi + exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ + scenario_runner_path:=${SCENARIO_RUNNER_ROOT} \ + scenarios_dir:=${SCENARIOS_DIR} + env: + CARLA_HOST: carla-simulator + CARLA_PORT: 2000 + CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} + MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + SCENARIO_DIRECTORY: /scenarios + SCENARIO_MAP: {{ (default (default "" (index .Values.composeEnvironment "MAP")) (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + volumes: + - mountPath: /scenario_checker.py + data: | +{{ readFile "scenario_checker.py" | indent 6 }} + - mountPath: /carla-simulation/scenarios + hostPath: /work/geller/openads-project/openadsim/carla-simulation/scenarios + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini b/deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini new file mode 100644 index 0000000..a827287 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini @@ -0,0 +1,165 @@ +[/Script/Engine.Engine] +bSmoothFrameRate=false +SmoothedFrameRateRange=(LowerBound=(Type="ERangeBoundTypes::Inclusive",Value=22),UpperBound=(Type="ERangeBoundTypes::Exclusive",Value=120)) + +[/Script/HardwareTargeting.HardwareTargetingSettings] +TargetedHardwareClass=Desktop +AppliedTargetedHardwareClass=Desktop +DefaultGraphicsPerformance=Maximum +AppliedDefaultGraphicsPerformance=Maximum + +[/Script/EngineSettings.GameMapsSettings] +EditorStartupMap=/Game/Carla/Maps/campus/campus.campus +GameDefaultMap=/Game/Carla/Maps/campus/campus.campus +ServerDefaultMap=/Game/Carla/Maps/campus/campus.campus +GlobalDefaultGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C +GameInstanceClass=/Script/Carla.CarlaGameInstance +TransitionMap=/Game/Carla/Maps/campus/campus.campus +GlobalDefaultServerGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C + +[/Script/Engine.RendererSettings] +r.DefaultFeature.MotionBlur=False +r.VelocityOutputPass=True +r.AllowStaticLighting=True +r.DiscardUnusedQuality=True +r.DefaultFeature.Bloom=False +r.DefaultFeature.AmbientOcclusion=False +r.DefaultFeature.AmbientOcclusionStaticFraction=False +r.DefaultFeature.AutoExposure=False +r.CustomDepth=3 +r.Streaming.PoolSize=4000 +r.TextureStreaming=True +r.GenerateMeshDistanceFields=True +r.DistanceFieldBuild.EightBit=False +r.DistanceFieldBuild.Compress=False +r.DistanceFields.AtlasSizeXY=1024 +r.DistanceFields.AtlasSizeZ=2048 +r.DefaultFeature.AutoExposure.ExtendDefaultLuminanceRange=True +r.DefaultFeature.AntiAliasing=2 +r.VirtualTextures=True +r.GPUSkin.Support16BitBoneIndex=True +r.GPUSkin.UnlimitedBoneInfluences=True +r.SkinCache.CompileShaders=True +SkeletalMesh.UseExperimentalChunking=1 +r.Lumen.TraceMeshSDFs=1 +r.ReflectionMethod=1 +r.DynamicGlobalIlluminationMethod=1 +r.RayTracing=True +r.Lumen.HardwareRayTracing=True +r.Lumen.HardwareRayTracing.LightingMode=2 +r.Lumen.TranslucencyReflections.FrontLayer.EnableForProject=True +r.RayTracing.Shadows=True +r.RayTracing.UseTextureLod=True +r.PathTracing=False +r.Shadow.Virtual.Enable=1 +r.RayTracing.Shadows.AvoidSelfIntersectionTraceDistance=6 +r.ReflectionCaptureResolution=256 +r.SkinCache.SceneMemoryLimitInMB=1024 +r.CARLA.EnableSegmentationRendering=1 + +r.Lumen.ScreenProbeGather.ShortRangeAO.ScreenSpace.FoliageOcclusionStrength=0.0 +r.Lumen.ScreenProbeGather.ShortRangeAO.ScreenSpace.SlopeCompareToleranceScale=0.5 +r.Lumen.HardwareRayTracing.LightingMode=3 +r.Lumen.HardwareRayTracing.HitLighting.Skylight=1 +r.Lumen.TraceDistanceScale=1.0 + +r.Shadow.Virtual.TranslucentQuality=1 +# r.Lumen.ScreenProbeGather.DownsampleFactor=8 + +[/Script/AIModule.AISense_Sight] +bAutoRegisterAllPawnsAsSources=False +bAutoRegisterNewPawnsAsSources=False + +[/Script/NavigationSystem.RecastNavMesh] +RuntimeGeneration=Static + +[/Script/AIModule.CrowdManager] +MaxAgents=1000 + +[/Script/Engine.PhysicsSettings] +DefaultGravityZ=-980.000000 +DefaultTerminalVelocity=4000.000000 +DefaultFluidFriction=0.300000 +SimulateScratchMemorySize=262144 +RagdollAggregateThreshold=4 +TriangleMeshTriangleMinAreaThreshold=5.000000 +bEnableShapeSharing=False +bEnablePCM=False +bEnableStabilization=False +bWarnMissingLocks=True +bEnable2DPhysics=False +PhysicErrorCorrection=(PingExtrapolation=0.100000,PingLimit=100.000000,ErrorPerLinearDifference=1.000000,ErrorPerAngularDifference=1.000000,MaxRestoredStateError=1.000000,MaxLinearHardSnapDistance=400.000000,PositionLerp=0.000000,AngleLerp=0.400000,LinearVelocityCoefficient=100.000000,AngularVelocityCoefficient=10.000000,ErrorAccumulationSeconds=0.500000,ErrorAccumulationDistanceSq=15.000000,ErrorAccumulationSimilarity=100.000000) +LockedAxis=Invalid +DefaultDegreesOfFreedom=Full3D +BounceThresholdVelocity=200.000000 +FrictionCombineMode=Average +RestitutionCombineMode=Average +MaxAngularVelocity=3600.000000 +MaxDepenetrationVelocity=0.000000 +ContactOffsetMultiplier=0.010000 +MinContactOffset=0.000100 +MaxContactOffset=1.000000 +bSimulateSkeletalMeshOnDedicatedServer=True +DefaultShapeComplexity=CTF_UseSimpleAndComplex +bDefaultHasComplexCollision=True +bSuppressFaceRemapTable=False +bSupportUVFromHitResults=False +bDisableActiveActors=False +bDisableKinematicStaticPairs=False +bDisableKinematicKinematicPairs=False +bDisableCCD=False +bEnableEnhancedDeterminism=True +MaxPhysicsDeltaTime=0.333330 +bSubstepping=True +bSubsteppingAsync=False +MaxSubstepDeltaTime=0.010000 +MaxSubsteps=10 +SyncSceneSmoothingFactor=0.000000 +InitialAverageFrameRate=0.016667 +# PhysXTreeRebuildRate=10 +DefaultBroadphaseSettings=(bUseMBPOnClient=False,bUseMBPOnServer=False,MBPBounds=(Min=(X=0.000000,Y=0.000000,Z=0.000000),Max=(X=0.000000,Y=0.000000,Z=0.000000),IsValid=0),MBPNumSubdivs=2) + +[/Script/LinuxTargetPlatform.LinuxTargetSettings] +SpatializationPlugin= +SourceDataOverridePlugin= +ReverbPlugin= +OcclusionPlugin= +SoundCueCookQualityIndex=-1 +-TargetedRHIs=SF_VULKAN_SM5 ++TargetedRHIs=SF_VULKAN_SM6 + +[/Script/WindowsTargetPlatform.WindowsTargetSettings] +DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 +-D3D12TargetedShaderFormats=PCD3D_SM5 ++D3D12TargetedShaderFormats=PCD3D_SM6 +-VulkanTargetedShaderFormats=SF_VULKAN_SM6 +Compiler=Default +AudioSampleRate=48000 +AudioCallbackBufferFrameSize=1024 +AudioNumBuffersToEnqueue=1 +AudioMaxChannels=0 +AudioNumSourceWorkers=4 +SpatializationPlugin= +SourceDataOverridePlugin= +ReverbPlugin= +OcclusionPlugin= +CompressionOverrides=(bOverrideCompressionTimes=False,DurationThreshold=5.000000,MaxNumRandomBranches=0,SoundCueQualityIndex=0) +CacheSizeKB=0 +MaxChunkSizeOverrideKB=0 +bResampleForDevice=False +MaxSampleRate=0.000000 +HighSampleRate=0.000000 +MedSampleRate=0.000000 +LowSampleRate=0.000000 +MinSampleRate=0.000000 +CompressionQualityModifier=0.000000 +AutoStreamingThreshold=0.000000 +SoundCueCookQualityIndex=-1 + +[/Script/Engine.CollisionProfile] ++Profiles=(Name="CustomSensorCollision",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="SensorObject",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Ignore),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="SensorObject"),(Channel="SensorTrace")),HelpMessage="Used for custom collision meshes for objects that has very complex meshes but we want them to appear in raycast based sensors") ++DefaultChannelResponses=(Channel=ECC_GameTraceChannel1,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="SensorObject") ++DefaultChannelResponses=(Channel=ECC_GameTraceChannel2,DefaultResponse=ECR_Ignore,bTraceType=True,bStaticObject=False,Name="SensorTrace") ++DefaultChannelResponses=(Channel=ECC_GameTraceChannel3,DefaultResponse=ECR_Overlap,bTraceType=True,bStaticObject=False,Name="OverlapChannel") ++EditProfiles=(Name="BlockAll",CustomResponses=((Channel="SensorObject"),(Channel="SensorTrace"))) ++EditProfiles=(Name="OverlapAll",CustomResponses=((Channel="SensorObject",Response=ECR_Overlap),(Channel="SensorTrace",Response=ECR_Overlap))) \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl new file mode 100644 index 0000000..bf797bd --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -0,0 +1,12 @@ +openadservice: + image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.0 + args: + - bash + - -ic + - ./Linux/CarlaUnreal.sh -nosound -RenderOffScreen --ros2 + volumes: + - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini + data: | +{{ readFile "DefaultEngine.ini" | indent 6 }} + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml b/deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml new file mode 100644 index 0000000..438e26c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml @@ -0,0 +1,27 @@ +/**: + ros__parameters: + num_threads: 8 # Number of threads + map_server_name: /localization/lanelet2_map_server # Name of map server + + simulation_fixed_frame_id: carla_map # Name of the fixed frame id in CARLA + fixed_frame_id: map # Name of the fixed frame id over time + simulation_vehicle_frame_id: ego_vehicle # Name of the vehicle frame id in CARLA + vehicle_frame_id: base_link # Name of the vehicle frame id. + simulation_vehicle_frame_id_to_vehicle_frame_id: -1.4895 # Longitudinal offset from simulation_vehicle_frame_id to vehicle_frame_id + + publish_vehicle_frame_tf: true + publish_ego_imu: true + publish_ego_odometry: true + publish_ego_vehicle_state: true + + maps: + simulation_maps: + - aldenhoven + - campus + - Town10HD_Opt + - OpenDriveMap + lanelet_files: + - /data/maps/aldenhoven.osm + - /data/maps/aachen_campus.osm + - /data/maps/Town10.osm + - /lanelet/lanelet.osm diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl new file mode 100644 index 0000000..6c45f1b --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -0,0 +1,23 @@ +openadservice: + env: + NAMESPACE: /carla + INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data + INPUT_MAP_INFO_TOPIC: /carla/carla_converter/map_info + INPUT_OBJECT_LIST_TOPIC: /carla/carla_converter/ego_vehicle/object_list + INPUT_TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory + OUTPUT_EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + OUTPUT_EGO_IMU_TOPIC: /simulation/imu + OUTPUT_EGO_ODOMETRY_TOPIC: /simulation/odometry + OUTPUT_EGO_VEHICLE_STATE_TOPIC: /simulation/vehicle_state + OUTPUT_OBJECT_LIST_FIXED_TOPIC: /simulation/object_list_fixed + OUTPUT_OBJECT_LIST_TOPIC: /simulation/object_list + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOAD_LANELET_MAP: {{ (default "true" (default "true" (env "LANELET_RELOAD"))) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl new file mode 100644 index 0000000..5a4a536 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -0,0 +1,88 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch carla_spawn_objects carla_example_ego_vehicle.launch.py \ + blueprints_directory:=${BLUEPRINTS_DIRECTORY} \ + objects_directory:=${OBJECTS_DIRECTORY} \ + ${SPAWN_POINT:+spawn_point_ego_vehicle:=${SPAWN_POINT}} \ + ${SENSORS:+objects_definition_file:=${SENSORS}} + env: + BLUEPRINTS_DIRECTORY: /config/blueprints + OBJECTS_DIRECTORY: /config/objects + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + SENSORS: {{ (default "" (default "global-sensors.json,karl-minimal.json" (env "SENSORS"))) | quote }} + SPAWN_POINT: {{ (default "" (default "50.787510,6.045938,260.0,90.0,wgs84" (env "SPAWN_POINT"))) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "OBJECTS_DEFINITION_FILE")) | quote }} + ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} + SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT_EGO_VEHICLE")) | quote }} + SPAWN_SENSORS_ONLY: {{ (default "False" (env "SPAWN_SENSORS_ONLY")) | quote }} + CONTROL_ID: {{ (default "control" (env "CONTROL_ID")) | quote }} + volumes: + - mountPath: /config/blueprints/cameras.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"camera_rgb_1280x720_fov110_f2\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_1280x720_fov110_f4\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_2048x768_fov150\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 2048,\n \"image_size_y\": 768,\n \"fov\": 150.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_1920x1080_fov90\",\n \"type\": \"sensor.camera.rgb\",\n \ + \ \"image_size_x\": 1920,\n \"image_size_y\": 1080,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_400x300_fov90\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 400,\n \"image_size_y\": 300,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_depth_1280x720\",\n \"type\": \"sensor.camera.depth\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_semantic_1280x720\",\n \"type\": \"sensor.camera.semantic_segmentation\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\ + \n },\n {\n \"id\": \"camera_rgb_view\",\n \"type\": \"sensor.camera.rgb\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0},\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_traffic_light_2048x768_fov150\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 2048,\n \"image_size_y\": 768,\n \"fov\": 150.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_traffic_light_1280x720_fov110\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n }\n ]\n}\n" + - mountPath: /config/blueprints/karl.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"karl_rack_lidars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"lidar_front\",\n \"type\": \"blueprint.lidar_aeries_ii\",\n \"spawn_point\": {\"x\": 2.8499, \"y\": 0.6455, \"z\": 0.0614, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -3.4377}\n },\n {\n \"id\": \"lidar_fl\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 2.89, \"y\": 1.444, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 45.0}\n },\n {\n \"id\": \"lidar_fr\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 2.89, \"y\": 0.04, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": -45.0}\n },\n {\n\ + \ \"id\": \"lidar_rr\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 0.04, \"y\": 0.04, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": -135.0}\n },\n {\n \"id\": \"lidar_rl\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 0.04, \"y\": 1.444, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 135.0}\n }\n ]\n },\n {\n \"id\": \"karl_rack_cameras\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"camera_front_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.8146, \"y\": 1.4637, \"z\": -0.0013, \"roll\": -0.1166, \"pitch\": 5.9344, \"yaw\": 45.1565}\n },\n \ + \ {\n \"id\": \"camera_front_center\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.9592, \"y\": 0.7903, \"z\": 0.0061, \"roll\": 0.1078, \"pitch\": 5.5148, \"yaw\": 0.3433}\n },\n {\n \"id\": \"camera_front_right\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.9388, \"y\": 0.0951, \"z\": 0.0067, \"roll\": 0.1934, \"pitch\": 5.3588, \"yaw\": -43.6624}\n },\n {\n \"id\": \"camera_mid_right\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 1.685, \"y\": 0.0027, \"z\": 0.0021, \"roll\": 0.3284, \"pitch\": 20.9842, \"yaw\": -89.2525}\n },\n {\n \"id\": \"camera_rear_right\",\n \ + \ \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 0.1231, \"y\": 0.0352, \"z\": -0.012, \"roll\": -0.1653, \"pitch\": 20.5007, \"yaw\": -136.7474}\n },\n {\n \"id\": \"camera_rear_center\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": -0.0226, \"y\": 0.7404, \"z\": 0.105, \"roll\": -0.2975, \"pitch\": 0.3582, \"yaw\": -179.7672}\n },\n {\n \"id\": \"camera_rear_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 0.0601, \"y\": 1.3474, \"z\": 0.0082, \"roll\": 0.1775, \"pitch\": 20.3891, \"yaw\": 135.3664}\n },\n {\n \"id\": \"camera_mid_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \ + \ \"spawn_point\": {\"x\": 1.5602, \"y\": 1.4506, \"z\": -0.0322, \"roll\": 1.0142, \"pitch\": 19.9258, \"yaw\": 90.6135}\n }\n ]\n },\n {\n \"id\": \"karl_rack_radars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"radar_fl\",\n \"type\": \"blueprint.radar_short_range\",\n \"spawn_point\": {\"x\": 2.0505, \"y\": 0.86, \"z\": 0.73, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"id\": \"radar_f\",\n \"type\": \"blueprint.radar_mid_range\",\n \"spawn_point\": {\"x\": 2.3105, \"y\": -0.3, \"z\": 0.25, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"id\": \"radar_fr\",\n \"type\": \"blueprint.radar_short_range\",\n \"spawn_point\"\ + : {\"x\": 2.0505, \"y\": -0.86, \"z\": 0.73, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -90.0}\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/blueprints/lidars.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"lidar_ouster_os1_128\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 75,\n \"channels\": 128,\n \"points_per_second\": 2621440,\n \"upper_fov\": 22.5,\n \"lower_fov\": -22.5,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_ouster_os1_64\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 75,\n \"channels\": 64,\n \"points_per_second\": 1310720,\n \"upper_fov\": 22.5,\n \"lower_fov\": -22.5,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_ouster_os1_32\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 50,\n \"channels\": 32,\n \"points_per_second\": 327680,\n \"upper_fov\"\ + : 15.0,\n \"lower_fov\": -25.0,\n \"rotation_frequency\": 20,\n \"noise_stddev\": 0.0\n },\n {\n \"id\": \"lidar_aeries_ii\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 500,\n \"channels\": 300,\n \"points_per_second\": 2048000,\n \"upper_fov\": 15.0,\n \"lower_fov\": -15.0,\n \"horizontal_fov\": 120.0,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_velodyne_vlp16\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 100,\n \"channels\": 16,\n \"points_per_second\": 600000,\n \"upper_fov\": 15.0,\n \"lower_fov\": -15.0,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n }\n ]\n}\n" + - mountPath: /config/blueprints/props.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"beacon\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.beacon\",\n \"children\": []\n },\n {\n \"id\": \"beaconwithlight\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.beaconwithlight\",\n \"children\": []\n },\n {\n \"id\": \"roadworkbarrier\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.roadworkbarrier\",\n \"children\": []\n }\n ]\n}\n" + - mountPath: /config/blueprints/radars.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"radar_long_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 30.0,\n \"vertical_fov\": 10.0,\n \"range\": 200.0\n },\n {\n \"id\": \"radar_mid_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 110.0,\n \"vertical_fov\": 23.0\n },\n {\n \"id\": \"radar_short_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 130.0,\n \"vertical_fov\": 14.0\n }\n ]\n}\n" + - mountPath: /config/blueprints/risus.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"srisu\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.srisu\",\n \"children\": [\n {\n \"id\": \"sensor_platform\",\n \"type\": \"blueprint.srisu_sensor_platform\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 2.0\n }\n ]\n },\n {\n \"id\": \"srisu_no_sensor_platform\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.srisu\"\ + ,\n \"children\": [\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 2.0\n }\n ]\n },\n {\n \"id\": \"srisu_sensor_platform\",\n \"type\": \"group\",\n \"children\": [\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"id\": \"camera_left\",\n \"spawn_point\": {\"x\": 0.3, \"y\": 0.0, \"z\": -0.7, \"roll\": 0.0, \"pitch\": 25.0, \"yaw\": 35.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"id\": \"camera_right\",\n \"spawn_point\"\ + : {\"x\": 0.3, \"y\": 0.0, \"z\": -0.7, \"roll\": 0.0, \"pitch\": 25.0, \"yaw\": -35.0}\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar_top\",\n \"spawn_point\": {\"x\": 0.41, \"y\": 0.04, \"z\": 0.17, \"roll\": 0.0, \"pitch\": 27.54, \"yaw\": 0.0},\n \"range\": 120.0\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar_bottom\",\n \"spawn_point\": {\"x\": 0.14, \"y\": 0.01, \"z\": -0.14, \"roll\": 0.0, \"pitch\": 41.36, \"yaw\": 0.0},\n \"range\": 120.0\n }\n ]\n },\n {\n \"id\": \"mrisu\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.mrisu\",\n \"children\":\n [\n {\n \"id\": \"sensor_platform\"\ + ,\n \"type\": \"blueprint.mrisu_sensor_platform\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.69, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 1.0\n }\n ]\n },\n {\n \"id\": \"mrisu_sensor_platform\",\n \"type\": \"group\",\n \"children\": \n [\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"id\": \"camera_left\",\n \"spawn_point\": {\"x\": 0.075, \"y\": 0.098, \"z\": 0.071, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\"\ + : 35.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"id\": \"camera_right\",\n \"spawn_point\": {\"x\": 0.075, \"y\": -0.0915, \"z\": 0.071, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -35.0}\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar\",\n \"spawn_point\": {\"x\": 0.001, \"y\": 0.0, \"z\": 0.161, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 180.0}\n }\n ]\n }\n ]\n}" + - mountPath: /config/blueprints/shuttle.json + data: "{\n \"blueprints\": [\n {\n \"id\": \"shuttle_lidars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"lidar_front_left\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": 2.235, \"y\": 0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 28.499}\n },\n {\n \"id\": \"lidar_front_right\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": 2.235, \"y\": -0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -28.499}\n },\n {\n \"id\": \"lidar_rear_left\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": -2.235, \"y\": 0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 151.501}\n \ + \ },\n {\n \"id\": \"lidar_rear_right\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": -2.235, \"y\": -0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -151.501}\n }\n ]\n },\n {\n \"id\": \"shuttle_cameras\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"camera_front_left_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.333, \"y\": 0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -15.000}\n },\n {\n \"id\": \"camera_front_right_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0,\ + \ \"yaw\": 15.000}\n },\n {\n \"id\": \"camera_rear_left_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.333, \"y\": 0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -165.000}\n },\n {\n \"id\": \"camera_rear_right_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 165.000}\n },\n {\n \"id\": \"camera_front_left_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.260, \"y\": 0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 105.000}\n },\n {\n \"id\": \"camera_front_right_2\"\ + ,\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.260, \"y\": -0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -105.000}\n },\n {\n \"id\": \"camera_rear_left_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.260, \"y\": 0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 75.000}\n },\n {\n \"id\": \"camera_rear_right_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.260, \"y\": -0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -75.000}\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/global-sensors.json + data: "{\n \"objects\": [\n {\n \"type\": \"sensor.pseudo.actor_list\",\n \"id\": \"actor_list\"\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.pseudo.markers\",\n \"id\": \"markers\"\n },\n {\n \"type\": \"sensor.pseudo.opendrive_map\",\n \"id\": \"carla_map\"\n },\n {\n \"type\": \"sensor.pseudo.traffic_lights\",\n \"id\": \"traffic_lights\"\n }\n ]\n}\n" + - mountPath: /config/objects/karl-all.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.karl_rack_lidars\",\n \"id\": \"karl_rack_lidars\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.karl_rack_cameras\",\n \"id\": \"karl_rack_cameras\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.karl_rack_radars\",\n \"id\": \"karl_rack_radars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n \ + \ {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\"\n },\n {\n\ + \ \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/karl-basic.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.karl_rack_lidars\",\n \"id\": \"karl_rack_lidars\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_traffic_light_1280x720_fov110\",\n \"id\": \"karl_rack_cameras/camera_front_center\",\n \"spawn_point\": {\"x\": 0.8337, \"y\": 0.0953, \"z\": 1.9161, \"roll\": 0.1078, \"pitch\": 5.5148, \"yaw\"\ + : 0.3433}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\"\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n \ + \ },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/karl-minimal.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n \ + \ },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/props.json + data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.beacon\",\n \"id\": \"beacon1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 173.0, \"z\": 254.8, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"type\": \"blueprint.beaconwithlight\",\n \"id\": \"beaconwithlight1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 168.5, \"z\": 254.8, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"type\": \"blueprint.roadworkbarrier\",\n \"id\": \"roadworkbarrier1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 170.8, \"z\": 255.5, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n }\n ]\n}\n" + - mountPath: /config/objects/rita-all.json + data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu1\",\n \"spawn_point\": {\n \"lat\": 50.779692,\n \"lon\": 6.050775,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -109.93\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu2\",\n \"spawn_point\": {\n \"lat\": 50.779457,\n \"lon\": 6.050782,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 117.76\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu3\",\n \"spawn_point\": {\n \"lat\": 50.779446,\n \"lon\": 6.050505,\n \"alt_above_ground\": 0.0,\n \ + \ \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 42.48\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu4\",\n \"spawn_point\": {\n \"lat\": 50.779656,\n \"lon\": 6.050454,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -32.30\n }\n }\n ]\n}" + - mountPath: /config/objects/rita-minimal.json + data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu1\",\n \"spawn_point\": {\n \"lat\": 50.779692,\n \"lon\": 6.050775,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -109.93\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu2\",\n \"spawn_point\": {\n \"lat\": 50.779457,\n \"lon\": 6.050782,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 117.76\n }\n },\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu3\",\n \"spawn_point\": {\n \"lat\": 50.779446,\n \"lon\": 6.050505,\n \ + \ \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 42.48\n }\n },\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu4\",\n \"spawn_point\": {\n \"lat\": 50.779656,\n \"lon\": 6.050454,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -32.30\n }\n }\n ]\n}" + - mountPath: /config/objects/shuttle-all.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.shuttle_lidars\",\n \"id\": \"shuttle_lidars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.shuttle_cameras\",\n \"id\": \"shuttle_cameras\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \ + \ \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n\ + \ \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/shuttle-basic.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.shuttle_lidars\",\n \"id\": \"shuttle_lidars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_traffic_light_2048x768_fov150\",\n \"id\": \"shuttle_cameras/camera_front_right_1\",\n \"spawn_point\": {\"x\": 2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 15.000}\n \ + \ },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"\ + yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config/objects/shuttle-minimal.json + data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n \ + \ },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml b/deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml new file mode 100644 index 0000000..63adbaf --- /dev/null +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml @@ -0,0 +1,49 @@ +/**: + ros__parameters: + num_threads: 8 + remote_host: 127.0.0.1 + shm_namespace: middleware_bridge + socket_buffer_bytes: 1048576 + max_udp_payload_bytes: 60000 + max_shm_message_bytes: 50331648 # 48 MiB as default in 'rmw_zenoh' + shm_poll_interval_us: 1000 + reassembly_timeout_ms: 1000 + auto_discovery_wait_ms: 1000 + auto_discovery_poll_ms: 1000 + side_a2b.topics: + - __auto__ + side_a2b.topic_types: + - rosgraph_msgs/msg/Clock + - tf2_msgs/msg/TFMessage + - sensor_msgs/msg/Imu + - sensor_msgs/msg/NavSatFix + - sensor_msgs/msg/Image + - sensor_msgs/msg/CameraInfo + - sensor_msgs/msg/PointCloud2 + - nav_msgs/msg/Odometry + side_a2b.transports: + - udp + - udp + - udp + - udp + - shm + - udp + - shm + - udp + side_a2b.qos_depths: + - 5 + - 5 + - 5 + - 5 + - 1 + - 5 + - 1 + - 5 + side_b2a.topics: + - /carla/ego_vehicle/vehicle_control_cmd + side_b2a.topic_types: + - carla_msgs/msg/CarlaEgoVehicleControl + side_b2a.transports: + - udp + side_b2a.qos_depths: + - 1 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl new file mode 100644 index 0000000..b057222 --- /dev/null +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -0,0 +1,19 @@ +openadservice: + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + SIDE_A_NAME: {{ (default "bridge_fast" (env "SIDE_A_NAME")) | quote }} + SIDE_A_RMW_IMPLEMENTATION: {{ (default "rmw_fastrtps_cpp" (env "SIDE_A_RMW_IMPLEMENTATION")) | quote }} + SIDE_A_TX_PORT: {{ (default "17001" (env "SIDE_A_TX_PORT")) | quote }} + SIDE_A_RX_PORT: {{ (default "17002" (env "SIDE_A_RX_PORT")) | quote }} + SIDE_B_NAME: {{ (default "bridge_zenoh" (env "SIDE_B_NAME")) | quote }} + SIDE_B_RMW_IMPLEMENTATION: {{ (default "rmw_zenoh_cpp" (env "SIDE_B_RMW_IMPLEMENTATION")) | quote }} + SIDE_B_TX_PORT: {{ (default "17002" (env "SIDE_B_TX_PORT")) | quote }} + SIDE_B_RX_PORT: {{ (default "17001" (env "SIDE_B_RX_PORT")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml diff --git a/deployments/helmfile/environments/base.yaml.gotmpl b/deployments/helmfile/environments/base.yaml.gotmpl new file mode 100644 index 0000000..48431f2 --- /dev/null +++ b/deployments/helmfile/environments/base.yaml.gotmpl @@ -0,0 +1,11 @@ +# Generated from host-side variables referenced by multiple generated services. +# Export a variable before running Helmfile to override its conversion-time value. +composeEnvironment: + CUSTOM_LANELET: {{ env "CUSTOM_LANELET" | default "" | quote }} + CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | default "" | quote }} + LOG_LEVEL: {{ env "LOG_LEVEL" | default "" | quote }} + MAP: {{ env "MAP" | default "campus" | quote }} + ROLE_NAME: {{ env "ROLE_NAME" | default "" | quote }} + ROS_DOMAIN_ID: {{ env "ROS_DOMAIN_ID" | default "" | quote }} + TRACE: {{ env "TRACE" | default "" | quote }} + USE_SIM_TIME: {{ env "USE_SIM_TIME" | default "true" | quote }} diff --git a/deployments/helmfile/environments/overrides.yaml.gotmpl b/deployments/helmfile/environments/overrides.yaml.gotmpl new file mode 100644 index 0000000..3be9c50 --- /dev/null +++ b/deployments/helmfile/environments/overrides.yaml.gotmpl @@ -0,0 +1,2 @@ +# User- and workflow-specific values can be added here. +{} diff --git a/deployments/helmfile/environments/profiles.yaml.gotmpl b/deployments/helmfile/environments/profiles.yaml.gotmpl new file mode 100644 index 0000000..7d0ca12 --- /dev/null +++ b/deployments/helmfile/environments/profiles.yaml.gotmpl @@ -0,0 +1,26 @@ +# The single profile selector for this Helmfile. +# It uses COMPOSE_PROFILES exactly like Docker Compose. Its default comes from +# the .env file that was used during conversion; export COMPOSE_PROFILES to +# override it for one Helmfile invocation. +# Available profiles: automated-testing, bag-recording, carla, manual-testing, ml-planning, no-perception, perception, planning, traffic +{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "carla,traffic,manual-testing,no-perception,planning") }} + +profileGroups: + automated-testing: + enabled: {{ or (has "automated-testing" $selectedProfiles) }} + bag-recording: + enabled: {{ or (has "bag-recording" $selectedProfiles) }} + carla: + enabled: {{ or (has "carla" $selectedProfiles) }} + manual-testing: + enabled: {{ or (has "manual-testing" $selectedProfiles) }} + ml-planning-or-perception: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "perception" $selectedProfiles) }} + ml-planning-or-planning: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} + no-perception: + enabled: {{ or (has "no-perception" $selectedProfiles) }} + perception: + enabled: {{ or (has "perception" $selectedProfiles) }} + traffic: + enabled: {{ or (has "traffic" $selectedProfiles) }} diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml new file mode 100644 index 0000000..5240dad --- /dev/null +++ b/deployments/helmfile/helmfile.yaml @@ -0,0 +1,143 @@ +environments: + default: + values: + - environments/profiles.yaml.gotmpl + - environments/base.yaml.gotmpl + - environments/overrides.yaml.gotmpl + +--- +releases: +# carla-simulation +- name: carla-ackermann-control + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control + version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-ackermann-control/values.yaml.gotmpl] +- name: carla-control-active-bridge + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 26.9.4 + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-control-active-bridge/values.yaml.gotmpl] +- name: carla-converter + chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter + version: 1.3.1-main + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-converter/values.yaml.gotmpl] +- name: carla-environment + chart: oci://REPLACE_ME/carla-scenario-runner-ros + version: REPLACE_ME + condition: profileGroups.traffic.enabled + values: [carla-simulation/carla-environment/values.yaml.gotmpl] +- name: carla-manual-control + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control + version: 0.10.0-1.1.0-carla-manual-control-update-deployment + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-manual-control/values.yaml.gotmpl] +- name: carla-ros-bridge + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge + version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-ros-bridge/values.yaml.gotmpl] +- name: carla-scenario-runner-ros-automated-testing + chart: oci://REPLACE_ME/carla-scenario-runner-ros + version: REPLACE_ME + condition: profileGroups.automated-testing.enabled + values: [carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] +- name: carla-scenario-runner-ros-manual-testing + chart: oci://REPLACE_ME/carla-scenario-runner-ros + version: REPLACE_ME + condition: profileGroups.manual-testing.enabled + values: [carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] +- name: carla-server + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator + version: 0.1.0-helm + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-server/values.yaml.gotmpl] +- name: carla-simulation-adapter + chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter + version: 1.4.1-main + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-simulation-adapter/values.yaml.gotmpl] +- name: carla-spawn-objects + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects + version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment + condition: profileGroups.carla.enabled + values: [carla-simulation/carla-spawn-objects/values.yaml.gotmpl] +- name: ros-middleware-bridge + chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge + version: 1.2.1-main + condition: profileGroups.carla.enabled + values: [carla-simulation/ros-middleware-bridge/values.yaml.gotmpl] +# openadstack +- name: ackermann-trajectory-control + chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control + version: 1.5.0-main + condition: profileGroups.ml-planning-or-planning.enabled + values: [openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl] +- name: robot-state-publisher + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 1.0.0-main + values: [openadstack/essentials/robot-state-publisher/values.yaml.gotmpl] +- name: triton-server + chart: oci://ghcr.io/openads-project/openads-helm/triton-server + version: 26.05 + condition: profileGroups.ml-planning-or-perception.enabled + values: [openadstack/essentials/triton-server/values.yaml.gotmpl] +- name: zenoh-router + chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router + version: 0.2.10 + values: [openadstack/essentials/zenoh-router/values.yaml.gotmpl] +- name: lanelet2-map-server + chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server + version: 1.2.2-main + values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] +- name: bag-recorder + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 1.0.0-main + condition: profileGroups.bag-recording.enabled + values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] +- name: rviz-carla + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 1.0.0-main + condition: profileGroups.carla.enabled + values: [openadstack/monitoring/rviz-carla/values.yaml.gotmpl] +- name: point-cloud-fusion + chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion + version: 1.4.0-main + condition: profileGroups.perception.enabled + values: [openadstack/perception/point_cloud_fusion/values.yaml.gotmpl] +- name: point-cloud-object-detection + chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection + version: 3.0.0-main + condition: profileGroups.perception.enabled + values: [openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl] +- name: lanelet2-route-planning + chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning + version: 1.2.0-main + condition: profileGroups.ml-planning-or-planning.enabled + values: [openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl] +- name: simple-planner + chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner + version: 1.4.0-main + condition: profileGroups.ml-planning-or-planning.enabled + values: [openadstack/planning/simple_planner/values.yaml.gotmpl] +- name: trajectory-optimization + chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization + version: 1.4.0-main + condition: profileGroups.ml-planning-or-planning.enabled + values: [openadstack/planning/trajectory_optimization/values.yaml.gotmpl] +- name: autoware-multi-object-tracker + chart: oci://ghcr.io/thinking-cars/autoware_multi_object_tracker/helm/autoware-multi-object-tracker + version: 1.1.0-main + condition: profileGroups.perception.enabled + values: [openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl] +- name: lanelet2-object-list-prediction-no-perception + chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction + version: 1.0.2-main + condition: profileGroups.no-perception.enabled + values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl] +- name: lanelet2-object-list-prediction-perception + chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction + version: 1.0.2-main + condition: profileGroups.perception.enabled + values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl] diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv new file mode 100644 index 0000000..51c6464 --- /dev/null +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv @@ -0,0 +1,132 @@ +v,kappa,kappa_dot +0,0.193400,0.15 +1,0.193400,0.15 +2,0.193400,0.329200 +3,0.193400,0.329200 +4,0.193400,0.329200 +5,0.193400,0.329200 +6,0.193400,0.329200 +7,0.193400,0.329200 +8,0.193400,0.329200 +9,0.193400,0.329200 +10,0.193400,0.329200 +11,0.193400,0.329200 +12,0.193400,0.329200 +13,0.193400,0.329200 +14,0.193400,0.329200 +15,0.172800,0.288000 +16,0.151875,0.253125 +17,0.134533,0.224221 +18,0.120000,0.200000 +19,0.107701,0.179501 +20,0.097200,0.162000 +21,0.088163,0.146939 +22,0.080331,0.133884 +23,0.073497,0.122495 +24,0.067500,0.112500 +25,0.062208,0.103680 +26,0.057515,0.095858 +27,0.053333,0.088889 +28,0.049592,0.082653 +29,0.046231,0.077051 +30,0.043200,0.072000 +31,0.040458,0.067430 +32,0.037969,0.063281 +33,0.035702,0.059504 +34,0.033633,0.056055 +35,0.031739,0.052898 +36,0.030000,0.050000 +37,0.028400,0.047334 +38,0.026925,0.044875 +39,0.025562,0.042604 +40,0.024300,0.040500 +41,0.023129,0.038548 +42,0.022041,0.036735 +43,0.021028,0.035046 +44,0.020083,0.033471 +45,0.019200,0.032000 +46,0.018374,0.030624 +47,0.017601,0.029335 +48,0.016875,0.028125 +49,0.016193,0.026989 +50,0.015552,0.025920 +51,0.014948,0.024913 +52,0.014379,0.023964 +53,0.013841,0.023069 +54,0.013333,0.022222 +55,0.012853,0.021421 +56,0.012398,0.020663 +57,0.011967,0.019945 +58,0.011558,0.019263 +59,0.011169,0.018615 +60,0.010800,0.018000 +61,0.010449,0.017415 +62,0.010114,0.016857 +63,0.009796,0.016327 +64,0.009492,0.015820 +65,0.009202,0.015337 +66,0.008926,0.014876 +67,0.008661,0.014435 +68,0.008408,0.014014 +69,0.008166,0.013611 +70,0.007935,0.013224 +71,0.007713,0.012855 +72,0.007500,0.012500 +73,0.007296,0.012160 +74,0.007100,0.011833 +75,0.006912,0.011520 +76,0.006731,0.011219 +77,0.006558,0.010929 +78,0.006391,0.010651 +79,0.006230,0.010383 +80,0.006075,0.010125 +81,0.005926,0.009877 +82,0.005782,0.009637 +83,0.005644,0.009406 +84,0.005510,0.009184 +85,0.005381,0.008969 +86,0.005257,0.008761 +87,0.005137,0.008561 +88,0.005021,0.008368 +89,0.004908,0.008181 +90,0.004800,0.008000 +91,0.004695,0.007825 +92,0.004594,0.007656 +93,0.004495,0.007492 +94,0.004400,0.007334 +95,0.004308,0.007180 +96,0.004219,0.007031 +97,0.004132,0.006887 +98,0.004048,0.006747 +99,0.003967,0.006612 +100,0.003888,0.006480 +101,0.003811,0.006352 +102,0.003737,0.006228 +103,0.003665,0.006108 +104,0.003595,0.005991 +105,0.003527,0.005878 +106,0.003460,0.005767 +107,0.003396,0.005660 +108,0.003333,0.005556 +109,0.003272,0.005454 +110,0.003213,0.005355 +111,0.003156,0.005259 +112,0.003099,0.005166 +113,0.003045,0.005075 +114,0.002992,0.004986 +115,0.002940,0.004900 +116,0.002889,0.004816 +117,0.002840,0.004734 +118,0.002792,0.004654 +119,0.002746,0.004576 +120,0.002700,0.004500 +121,0.002656,0.004426 +122,0.002612,0.004354 +123,0.002570,0.004283 +124,0.002529,0.004214 +125,0.002488,0.004147 +126,0.002449,0.004082 +127,0.002411,0.004018 +128,0.002373,0.003955 +129,0.002336,0.003894 +130,0.002301,0.003834 diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml new file mode 100644 index 0000000..b133073 --- /dev/null +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml @@ -0,0 +1,186 @@ +/**/*: + ros__parameters: + # General controller parameters + vehicle_frame_id: "base_link" + fixed_over_time_frame_id: "map" + control_frequency: 50.0 # [Hz] + vehicle_state_timeout: 0.2 # [s] + lateral_lookahead_time: 0.2 # [s] + longitudinal_lookahead_time: 0.1 # [s] + + # Inverse single track parameters + wheelbase: 3.124 # [m] + # l_v: 1.58744 # [m] front offset to center of gravity + # l_h: 1.53656 # [m] rear offset to center of gravity + # m: 2395.0 # [kg] vehicle mass + # c_sv: 130000 # [N/rad] Cornering stiffness front + # c_sh: 190000 # [N/rad] Cornering stiffness rear + # EG = m / wheelbase * (l_h * c_sh - l_v * c_sv) / (c_sv * c_sh) # self-steering gradient + selfsteergradient: 0.002656230515 # [s^2/m] + + # Other controller parameters + standstill_request_acceleration_gain: -0.5 + + # Control value constraints + max_longitudinal_acceleration: 2.0 # [m/s^2] + min_longitudinal_acceleration: -4.5 # [m/s^2] + max_longitudinal_jerk: 4.0 # [m/s^3] + use_speed_dependent_lateral_limits: true + lateral_limits_csv: "config/karl-lateral-limits-v1p3.csv" + max_curvature: 0.1933268013 # [1/m]; if use_speed_dependent_lateral_limits is false + # max_curvature_rate = 1 / (L * cos²(d)) * d_dot; with d = 0° and d_dot = 30°/s + max_curvature_rate: 0.1676052419 # [1/(m*s)]; if use_speed_dependent_lateral_limits is false + # max_curvature_acceleration = 1 / (L * cos²(d)) * (d_dot_dot + 2*tan(d)*d_dot²); with d = 0° and d_dot_dot = 130°/s² + max_curvature_acceleration: 0.7262893814 # [1/(m*s^2)] + anti_windup_gain: 1.0 # [1/s] + use_back_calculation: false + use_odom: false + + # Gain scheduling lookup tables + velocity_lookup: # [m/s] + - -2.78 + - -0.2 + - 0.0 + - 0.2 + - 2.78 + - 11.11 + - 16.67 + - 22.22 + - 27.78 + - 33.33 + - 38.89 + feed_forward_acceleration_gain: + - 0.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 1.0 # value for 0.0 m/s + - 1.0 # value for 0.2 m/s + - 1.0 # value for 2.78 m/s + - 1.0 # value for 11.11 m/s + - 1.0 # value for 16.67 m/s + - 1.0 # value for 22.22 m/s + - 1.0 # value for 27.78 m/s + - 1.0 # value for 33.33 m/s + - 1.0 # value for 38.89 m/s + feed_forward_steering_angle_gain: + - 0.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 1.0 # value for 0.0 m/s + - 1.0 # value for 0.2 m/s + - 1.0 # value for 2.78 m/s + - 1.0 # value for 11.11 m/s + - 1.0 # value for 16.67 m/s + - 1.0 # value for 22.22 m/s + - 1.0 # value for 27.78 m/s + - 1.0 # value for 33.33 m/s + - 1.0 # value for 38.89 m/s + # Velocity controller parameters + dv_p: + - 1.0 # value for -2.78 m/s + - 1.0 # value for -0.2 m/s + - 1.0 # value for 0.0 m/s + - 1.0 # value for 0.2 m/s + - 1.0 # value for 2.78 m/s + - 1.0 # value for 11.11 m/s + - 1.0 # value for 16.67 m/s + - 1.0 # value for 22.22 m/s + - 1.0 # value for 27.78 m/s + - 1.0 # value for 33.33 m/s + - 1.0 # value for 38.89 m/s + dv_i: + - 0.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 0.0 # value for 2.78 m/s + - 0.0 # value for 11.11 m/s + - 0.0 # value for 16.67 m/s + - 0.0 # value for 22.22 m/s + - 0.0 # value for 27.78 m/s + - 0.0 # value for 33.33 m/s + - 0.0 # value for 38.89 m/s + dv_d: + - 0.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 0.0 # value for 2.78 m/s + - 0.0 # value for 11.11 m/s + - 0.0 # value for 16.67 m/s + - 0.0 # value for 22.22 m/s + - 0.0 # value for 27.78 m/s + - 0.0 # value for 33.33 m/s + - 0.0 # value for 38.89 m/s + # Lateral deviation controller parameters + dy_p: + - 0.1 # value for -2.78 m/s + - 0.1 # value for -0.2 m/s + - 0.1 # value for 0.0 m/s + - 0.1 # value for 0.2 m/s + - 0.1 # value for 2.78 m/s + - 0.05 # value for 11.11 m/s + - 0.03 # value for 16.67 m/s + - 0.025 # value for 22.22 m/s + - 0.025 # value for 27.78 m/s + - 0.025 # value for 33.33 m/s + - 0.02 # value for 38.89 m/s + dy_i: + - 0.004 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 0.002 # value for 2.78 m/s + - 0.004 # value for 11.11 m/s + - 0.001 # value for 16.67 m/s + - 0.0007 # value for 22.22 m/s + - 0.0 # value for 27.78 m/s + - 0.0 # value for 33.33 m/s + - 0.0 # value for 38.89 m/s + dy_d: + - 0.04 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 0.04 # value for 2.78 m/s + - 0.02 # value for 11.11 m/s + - 0.02 # value for 16.67 m/s + - 0.02 # value for 22.22 m/s + - 0.015 # value for 27.78 m/s + - 0.015 # value for 33.33 m/s + - 0.015 # value for 38.89 m/s + # heading deviation controller parameters + dpsi_p: + - 1.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 1.0 # value for 2.78 m/s + - 1.0 # value for 11.11 m/s + - 1.0 # value for 16.67 m/s + - 1.0 # value for 22.22 m/s + - 1.0 # value for 27.78 m/s + - 1.0 # value for 33.33 m/s + - 1.0 # value for 38.89 m/s + dpsi_i: + - 1.2 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 1.2 # value for 2.78 m/s + - 0.6 # value for 11.11 m/s + - 0.4 # value for 16.67 m/s + - 0.14 # value for 22.22 m/s + - 0.13 # value for 27.78 m/s + - 0.13 # value for 33.33 m/s + - 0.13 # value for 38.89 m/s + dpsi_d: + - 0.0 # value for -2.78 m/s + - 0.0 # value for -0.2 m/s + - 0.0 # value for 0.0 m/s + - 0.0 # value for 0.2 m/s + - 0.0 # value for 2.78 m/s + - 0.0 # value for 11.11 m/s + - 0.0 # value for 16.67 m/s + - 0.0 # value for 22.22 m/s + - 0.0 # value for 27.78 m/s + - 0.0 # value for 33.33 m/s + - 0.0 # value for 38.89 m/s \ No newline at end of file diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl new file mode 100644 index 0000000..041b586 --- /dev/null +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -0,0 +1,21 @@ +openadservice: + env: + NAMESPACE: /control + EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + LAT_CONTROL_ACTIVE_TOPIC: /control/active + LON_CONTROL_ACTIVE_TOPIC: /control/active + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + TRACE: {{ (default "False" (index .Values.composeEnvironment "TRACE")) | quote }} + volumes: + - mountPath: /docker-ros/ws/install/ackermann_trajectory_control/share/ackermann_trajectory_control/config/karl-lateral-limits-v1p3.csv + data: | +{{ readFile "karl-lateral-limits-v1p3.csv" | indent 6 }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl new file mode 100644 index 0000000..920ada4 --- /dev/null +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -0,0 +1,15 @@ +openadservice: + args: + - {{ "/bin/bash" | quote }} + - {{ "-ic" | quote }} + - |- +{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (default "karl" (env "VEHICLE"))) "/" (default "karl" (default "karl" (env "VEHICLE"))) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (index .Values.composeEnvironment "USE_SIM_TIME"))) | indent 4 }} + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + volumes: + - mountPath: /urdf + image: ghcr.io/openads-project/openads-assets:v1.0.0 + imagePath: urdf diff --git a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl new file mode 100644 index 0000000..218d664 --- /dev/null +++ b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl @@ -0,0 +1,7 @@ +openadservice: + env: + CUDA_VISIBLE_DEVICES: 0 + volumes: + - mountPath: /models + image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 + imagePath: models diff --git a/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl new file mode 100644 index 0000000..a3f2963 --- /dev/null +++ b/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl @@ -0,0 +1 @@ +openadservice: {} diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl new file mode 100644 index 0000000..3b7bee2 --- /dev/null +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -0,0 +1,35 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 run lanelet2_map_server lanelet2_map_server --ros-args \ + -r __ns:=${NAMESPACE} \ + -r __node:=${NAME} \ + -p use_sim_time:=${USE_SIM_TIME} \ + -p map_frame_id:=${MAP_FRAME_ID} \ + -p use_automatic_map_selection:=${USE_AUTOMATIC_MAP_SELECTION} \ + -p map_directory:=${MAP_DIRECTORY} \ + -p map_filepath:=${MAP_FILEPATH} \ + ${ORIGIN_LAT:+-p origin_lat:=${ORIGIN_LAT}} \ + ${ORIGIN_LON:+-p origin_lon:=${ORIGIN_LON}} \ + env: + NAMESPACE: /localization + MAP_DIRECTORY: /data/maps/default-maps + MAP_FILEPATH: /lanelet/lanelet.osm + MAP_FRAME_ID: map + NAV_SAT_FIX_TOPIC: /localization/ego_state_estimation/nav_sat_fix + ORIGIN_LAT: {{ (env "ORIGIN_LAT") | quote }} + ORIGIN_LON: {{ (env "ORIGIN_LON") | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_AUTOMATIC_MAP_SELECTION: false + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} + volumes: + - mountPath: /data/maps + image: ghcr.io/openads-project/lanelet2-maps:v1.0.4 + imagePath: data/maps diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl new file mode 100644 index 0000000..a0e434d --- /dev/null +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -0,0 +1,33 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + set -e + ros2 topic echo --once /planning/lanelet2_route_planning/route > /dev/null + exec ros2 bag record \ + --storage mcap \ + --output /tmp/rosbags/bag \ + --topics \ + /rosout \ + /tf \ + /tf_static \ + /simulation/ego_data \ + /simulation/imu \ + /simulation/odometry \ + /simulation/vehicle_state \ + /simulation/object_list \ + /localization/ego_state_estimation/ego_data \ + /planning/lanelet2_route_planning/route \ + /planning/simple_planner/trajectory \ + /planning/trajectory_optimization/trajectory \ + /understanding/autoware_multi_object_tracker/object_list \ + /understanding/lanelet2_object_list_prediction/object_list + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + volumes: + - mountPath: /tmp/rosbags + hostPath: /work/geller/openads-project/openadsim/openadstack/monitoring/volume diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz b/deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz new file mode 100644 index 0000000..d397051 --- /dev/null +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz @@ -0,0 +1,895 @@ +Panels: + - Class: rviz_common/Displays + Help Height: 0 + Name: Displays + Property Tree Widget: + Expanded: + - /Perception1 + - /Perception1/EgoData1/Planned Trajectory1 + - /Perception1/EgoData1/Planned Trajectory1/Color Options1 + - /Perception1/EgoData1/Planned Trajectory1/Parameter Options1 + - /Perception1/EgoData1/Planned Trajectory1/End Cap1 + - /Perception1/EgoData1/Planned Trajectory1/Fade Out1 + - /Perception1/Tracked ObjectList1/Appearance Properties1 + - /Perception1/Tracked ObjectList1/Appearance Properties1/Hoverboard1 + - /Planning1 + - /Planning1/Route1/Suggested Lane1 + - /Planning1/Route1/Suggested Lane1/Reference Line1/Line1 + - /Planning1/Route1/Suggested Lane1/Boundaries1/Lines1 + - /Planning1/Route1/Drivable Space1/Lines1 + - /Planning1/Reference Trajectory1/Show velocity trajectory1 + - /Planning1/Drivable Trajectory1/Show velocity trajectory1 + Splitter Ratio: 0.42276424169540405 + Tree Height: 328 + - Class: rviz_common/Selection + Name: Selection + - Class: rviz_common/Tool Properties + Expanded: + - /Plan Route1 + Name: Tool Properties + Splitter Ratio: 0.5886790156364441 + - Class: rviz_common/Views + Expanded: + - /Current View1 + Name: Views + Splitter Ratio: 0.5 + - Class: rviz_common/Time + Experimental: false + Name: Time + SyncMode: 0 + SyncSource: "" + - Class: rviz_carla_plugin/CarlaControl + Name: CarlaControl +Visualization Manager: + Class: "" + Displays: + - Alpha: 1 + Class: rviz_default_plugins/RobotModel + Collision Enabled: false + Description File: "" + Description Source: Topic + Description Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /robot_description + Enabled: true + Links: + All Links Enabled: true + Expand Joint Details: false + Expand Link Details: false + Expand Tree: false + Link Tree Style: Links in Alphabetic Order + aeva/aeries2/sensor: + Alpha: 1 + Show Axes: false + Show Trail: false + aeva/vehicle: + Alpha: 1 + Show Axes: false + Show Trail: false + altos_radar: + Alpha: 1 + Show Axes: false + Show Trail: false + base_link: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + drivers/aeva_lidar/front_left_screw_bottom: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_fl/lidar: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_fl/sensor: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_fr/lidar: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_fr/sensor: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_rl/lidar: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_rl/sensor: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_rr/lidar: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/ouster_lidar_rr/sensor: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/smartmicro_radar/front_left: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/smartmicro_radar/front_right: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/smartmicro_radar/rear_left: + Alpha: 1 + Show Axes: false + Show Trail: false + drivers/smartmicro_radar/rear_right: + Alpha: 1 + Show Axes: false + Show Trail: false + front_center_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + front_left_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + front_right_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + mid_center_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + mid_left_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + mid_right_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + rack: + Alpha: 1 + Show Axes: false + Show Trail: false + Value: true + rear_center_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + rear_left_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + rear_right_camera_link: + Alpha: 1 + Show Axes: false + Show Trail: false + Mass Properties: + Inertia: false + Mass: false + Name: Vehicle Model + TF Prefix: "" + Update Interval: 0 + Value: true + Visual Enabled: true + - Class: rviz_default_plugins/TF + Enabled: false + Filter (blacklist): "" + Filter (whitelist): "" + Frame Timeout: 15 + Frames: + All Enabled: true + Marker Scale: 1 + Name: TF + Show Arrows: true + Show Axes: true + Show Names: false + Tree: + {} + Update Interval: 0 + Value: false + - Alpha: 0.5 + Class: lanelet2_rviz_display/Lanelet2MapDisplay + Enabled: true + Fill Lanelets (Road): + Road Color: 56; 56; 56 + Value: false + Name: Lanelet2MapDisplay + Name of lanelet2_map_server: /localization/lanelet2_map_server + Show Map in 3D: false + Value: true + Visualize Areas: + Area Color: 72; 72; 72 + Area Width: 0.30000001192092896 + Fill Areas: false + Value: false + Visualize Crosswalks: + Crosswalk Color: 255; 255; 255 + Value: true + Visualize Lanelet-IDs: + Character Height: 1 + ID Color: 255; 255; 255 + Value: false + Visualize Lanelet-Linestrings: + LL Color Left: 255; 255; 255 + LL Color Right: 255; 255; 255 + Linestring Width: 0.10000000149011612 + Value: true + Visualize Lanelet-Separators: + Linestring Width: 0.10000000149011612 + Separators Color: 0; 0; 255 + Value: false + Visualize Parking: + Fill Parking: true + Parking Color: 0; 179; 76 + Parking Width: 0.30000001192092896 + Value: false + Visualize Sidewalks: + Sidewalk Color: 191; 191; 191 + Value: true + Visualize Stop lines: + Stop Line Color: 255; 25; 25 + Stop Line Width: 0.20000000298023224 + Value: true + Visualize Traffic Lights: + Traffic Light Color: 102; 102; 102 + Traffic Light Height: 3 + Value: true + - Alpha: 0.9900000095367432 + Blocks: 8 + Class: rviz_satellite/AerialMap + Draw Behind: true + Enabled: true + Name: AerialMap + Object URI: https://www.wmts.nrw.de/geobasis/wmts_nw_dop/tiles/nw_dop/EPSG_25832_16/{z}/{x}/{y} + TF tolerance: 0.30000001192092896 + Timeout: 3 + Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /carla/ego_vehicle/gnss + Use Local Map: + Meter per Pixel (Zoom 0): 4891.97021484375 + Origin CRS: EPSG:25832 + "Origin X ": -46133.171875 + "Origin Y ": 6301219.5 + Value: true + Value: true + Visualize in UTM Frame: false + Zoom: 15 + - Class: rviz_default_plugins/Image + Enabled: true + Max Value: 1 + Median window: 5 + Min Value: 0 + Name: 3rd Person View + Normalize Range: true + Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /carla/ego_vehicle/rgb_view/image + Value: true + - Class: rviz_common/Group + Displays: + - Acceleration arrow: + Acceleration Color: 255; 0; 0 + Acceleration scale: 10 + Use acceleration color: true + Value: false + Alpha: 0.6000000238418579 + Bounding box: false + Class: perception_msgs/EgoData + Color: 0; 255; 255 + Enabled: true + Name: EgoData + Orientation: false + Planned Trajectory: + Alpha: 1 + Color Coding: Velocity-dependent Coloring + Color Options: + Base Color: 255; 0; 0 + Negative dynamics: 0; 0; 0 + Positive dynamics: 74; 222; 0 + Value: " " + End Cap: + Round Segments: 16 + Value: Straight + Fade Out: + Fade Length [m]: 5 + Value: true + Parameter Options: + Value: " " + max. acceleration [m/s²]: 1 + max. velocity [km/h]: 20 + Value: true + Text information: + Char height: 4 + Value: false + Velocity: true + Timeout: + Duration: 1 + Value: false + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /localization/ego_state_estimation/ego_data + Value: true + Velocity arrow: + Set height with Velocity: true + Use velocity color: true + Value: false + Velocity Color: 255; 0; 255 + Velocity scale: 1 + Visualize Z dimension: true + - Background Alpha: 0.8999999761581421 + Background Color: 20; 20; 20 + Bottom: 10 + Class: perception_msgs/EgoDataOverlay + Enabled: true + Height: 80 + Left: 10 + Name: EgoDataOverlay + Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /localization/ego_state_estimation/ego_data + Value: true + Width: 350 + - Alpha: 1 + Autocompute Intensity Bounds: true + Autocompute Value Bounds: + Max Value: 10 + Min Value: -10 + Value: true + Axis: Z + Channel Name: intensity + Class: rviz_default_plugins/PointCloud2 + Color: 255; 255; 255 + Color Transformer: Intensity + Decay Time: 0 + Enabled: true + Invert Rainbow: false + Max Color: 255; 255; 255 + Max Intensity: 0.9930919408798218 + Min Color: 0; 0; 0 + Min Intensity: 0.7409994602203369 + Name: Point Cloud Fused + Position Transformer: XYZ + Selectable: true + Size (Pixels): 3 + Size (m): 0.019999999552965164 + Style: Flat Squares + Topic: + Depth: 1 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Best Effort + Value: /perception/point_cloud_fusion/point_cloud + Use Fixed Frame: true + Use rainbow: true + Value: true + - Acceleration arrow: + Acceleration Color: 255; 0; 0 + Acceleration scale: 10 + Use acceleration color: true + Value: false + Alpha: 0.5 + Appearance Properties: + Bounding box: + Orientation Indication: false + Value: false + Classification coloring: + ANIMAL: 0; 128; 128 + BICYCLE: 255; 255; 25 + BUS: 25; 25; 255 + CAR: 25; 25; 255 + MICRO: 25; 255; 255 + MOTORCYCLE: 255; 255; 25 + PEDESTRIAN: 25; 255; 255 + UNKNOWN: 128; 128; 128 + UTILITY: 25; 25; 255 + VRU: 25; 255; 255 + Value: false + Hoverboard: + Corner Radius [m]: 0.3499999940395355 + Corner Style: + Round Segments: 12 + Value: Round + Glow: + Glow Height [m]: 0.699999988079071 + Glow Intensity [0..1]: 0.6000000238418579 + Value: true + Thickness [m]: 0.11999999731779099 + Value: true + Mesh: false + Value: " " + Class: perception_msgs/ObjectList + Color: 0; 255; 25 + Enabled: false + Name: Detected ObjectList + Predictions: + Line Color: 255; 170; 0 + Line Width: 0.25 + Prediction Points: + Point Color: 255; 170; 0 + Point Width: 1 + Value: false + Velocity-based height: true + Probabilities: + Char height: 2 + Value: false + Value: false + Text information: + Char height: 4 + Classification: true + Classification coloring: true + Existence probability: false + Object ID: false + Value: false + Velocity: true + Timeout: + Duration: 1 + Value: false + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /perception/point_cloud_object_detection/object_list + Value: false + Velocity arrow: + Use velocity color: true + Value: true + Velocity Color: 255; 0; 255 + Velocity scale: 1 + - Acceleration arrow: + Acceleration Color: 255; 0; 0 + Acceleration scale: 10 + Use acceleration color: true + Value: false + Alpha: 0.5 + Appearance Properties: + Bounding box: + Orientation Indication: false + Value: false + Classification coloring: + ANIMAL: 0; 128; 128 + BICYCLE: 255; 255; 25 + BUS: 25; 25; 255 + CAR: 25; 25; 255 + MICRO: 25; 255; 255 + MOTORCYCLE: 255; 255; 25 + PEDESTRIAN: 25; 255; 255 + UNKNOWN: 128; 128; 128 + UTILITY: 25; 25; 255 + VRU: 25; 255; 255 + Value: false + Hoverboard: + Corner Radius [m]: 0.3499999940395355 + Corner Style: + Round Segments: 12 + Value: Round + Glow: + Glow Height [m]: 0.699999988079071 + Glow Intensity [0..1]: 0.6000000238418579 + Value: true + Thickness [m]: 0.11999999731779099 + Value: true + Mesh: false + Value: " " + Class: perception_msgs/ObjectList + Color: 0; 255; 25 + Enabled: false + Name: Tracked ObjectList + Predictions: + Line Color: 255; 170; 0 + Line Width: 0.25 + Prediction Points: + Point Color: 255; 170; 0 + Point Width: 1 + Value: false + Velocity-based height: true + Probabilities: + Char height: 2 + Value: false + Value: false + Text information: + Char height: 4 + Classification: true + Classification coloring: true + Existence probability: false + Object ID: false + Value: false + Velocity: true + Timeout: + Duration: 1 + Value: false + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /understanding/autoware_multi_object_tracker/object_list + Value: false + Velocity arrow: + Use velocity color: true + Value: true + Velocity Color: 255; 0; 255 + Velocity scale: 1 + - Acceleration arrow: + Acceleration Color: 255; 0; 0 + Acceleration scale: 10 + Use acceleration color: true + Value: false + Alpha: 0.5 + Appearance Properties: + Bounding box: + Orientation Indication: false + Value: false + Classification coloring: + ANIMAL: 0; 128; 128 + BICYCLE: 255; 255; 25 + BUS: 25; 25; 255 + CAR: 25; 25; 255 + MICRO: 25; 255; 255 + MOTORCYCLE: 255; 255; 25 + PEDESTRIAN: 25; 255; 255 + UNKNOWN: 128; 128; 128 + UTILITY: 25; 25; 255 + VRU: 25; 255; 255 + Value: true + Hoverboard: + Corner Radius [m]: 0.3499999940395355 + Corner Style: + Round Segments: 12 + Value: Round + Glow: + Glow Height [m]: 0.699999988079071 + Glow Intensity [0..1]: 0.6000000238418579 + Value: true + Thickness [m]: 0.11999999731779099 + Value: true + Mesh: false + Value: " " + Class: perception_msgs/ObjectList + Color: 0; 255; 25 + Enabled: true + Name: Predicted ObjectList + Predictions: + Line Color: 255; 170; 0 + Line Width: 0.25 + Prediction Points: + Point Color: 255; 170; 0 + Point Width: 1 + Value: false + Velocity-based height: true + Probabilities: + Char height: 2 + Value: false + Value: true + Text information: + Char height: 4 + Classification: true + Classification coloring: true + Existence probability: false + Object ID: false + Value: false + Velocity: true + Timeout: + Duration: 1 + Value: false + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /understanding/lanelet2_object_list_prediction/object_list + Value: true + Velocity arrow: + Use velocity color: true + Value: false + Velocity Color: 255; 0; 255 + Velocity scale: 1 + Enabled: true + Name: Perception + - Class: rviz_common/Group + Displays: + - Adjacent Lanes: + Boundaries: + Lines: + Color: 255; 170; 0 + Scale: 0.05000000074505806 + Value: true + Points: + Color: 255; 170; 0 + Scale: 0.20000000298023224 + Value: false + Value: true + Reference Line: + Line: + Color: 255; 255; 0 + Scale: 0.05000000074505806 + Value: true + Poses: + Color: 255; 255; 0 + Scale: 0.5 + Value: false + Value: true + Regulatory Elements: + Default Color: 200; 200; 200 + Positions: true + Scale: 0.10000000149011612 + Validity stamp: + Color: 255; 255; 255 + Scale: 0.6000000238418579 + Value: false + Value: true + Speed Limit: + Color: 255; 255; 255 + Scale: 0.5 + Value: false + Turn Signals: + Color: 255; 255; 0 + Scale: 1 + Value: false + Value: false + Class: route_planning_msgs/Route + Destination: + Color (final): 255; 0; 255 + Color (intermediate): 85; 255; 0 + Scale (final): 1 + Scale (intermediate): 1 + Value: true + Drivable Space: + Lines: + Color: 170; 85; 0 + Scale: 0.10000000149011612 + Value: true + Points: + Color: 255; 0; 0 + Scale: 0.20000000298023224 + Value: false + Value: false + Enabled: true + Name: Route + Suggested Lane: + Boundaries: + Lines: + Color: 0; 170; 0 + Scale: 0.20000000298023224 + Value: true + Points: + Color: 0; 170; 0 + Scale: 0.25 + Value: false + Value: true + Lane Change: + Color: 0; 255; 0 + Scale: 0.20000000298023224 + Value: true + Reference Line: + Line: + Color: 0; 255; 0 + Scale: 0.20000000298023224 + Value: true + Poses: + Color: 0; 255; 0 + Scale: 0.5 + Value: false + Value: true + Regulatory Elements: + Default Color: 200; 200; 200 + Positions: true + Scale: 0.20000000298023224 + Validity stamp: + Color: 255; 255; 255 + Scale: 0.6000000238418579 + Value: false + Value: true + Speed Limit: + Color: 255; 255; 255 + Scale: 0.6000000238418579 + Value: false + Turn Signals: + Color: 255; 255; 0 + Scale: 1 + Value: false + Value: true + Timeout: + Duration: 1 + Value: true + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /planning/lanelet2_route_planning/route + Traveled Route: + Opacity: 0.30000001192092896 + Value: true + Value: true + - Background Alpha: 0.8999999761581421 + Background Color: 20; 20; 20 + Class: route_planning_msgs/RouteOverlay + Enabled: true + Height: 125 + Name: RouteOverlay + Right: 10 + Top: 10 + Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /planning/lanelet2_route_planning/route + Value: true + Width: 135 + - Alpha: 1 + Class: trajectory_planning_msgs/Trajectory + Enabled: true + Name: Reference Trajectory + Point-Size: 0.5 + Show acceleration trajectory: + Color acceleration trajectory/samples: 255; 255; 0 + Show acceleration samples: false + Value: false + Show distance trajectory: + Color distance trajectory/samples: 255; 0; 0 + Show distance samples: false + Value: false + Show time trajectory: + Color time trajectory/samples: 0; 0; 255 + Show time samples: false + Value: false + Show velocity trajectory: + Color velocity trajectory/samples: 255; 0; 0 + Show velocity samples: true + Show yaw arrows: + Color yaw arrows: 255; 85; 0 + Scale: 0.5 + Value: false + Value: true + Timeout: + Duration: 1 + Value: true + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /planning/simple_planner/trajectory + Value: true + - Alpha: 1 + Class: trajectory_planning_msgs/Trajectory + Enabled: true + Name: Drivable Trajectory + Point-Size: 0.5 + Show acceleration trajectory: + Color acceleration trajectory/samples: 255; 255; 0 + Show acceleration samples: false + Value: false + Show distance trajectory: + Color distance trajectory/samples: 255; 0; 0 + Show distance samples: false + Value: false + Show time trajectory: + Color time trajectory/samples: 0; 0; 255 + Show time samples: false + Value: false + Show velocity trajectory: + Color velocity trajectory/samples: 255; 255; 255 + Show velocity samples: true + Show yaw arrows: + Color yaw arrows: 255; 85; 0 + Scale: 0.5 + Value: false + Value: true + Timeout: + Duration: 1 + Value: true + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /planning/trajectory_optimization/trajectory + Value: true + Enabled: true + Name: Planning + Enabled: true + Global Options: + Background Color: 0; 0; 0 + Fixed Frame: map + Frame Rate: 30 + Name: root + Tools: + - Class: rviz_default_plugins/Interact + Hide Inactive Objects: true + - Class: rviz_default_plugins/SetInitialPose + Covariance x: 0.25 + Covariance y: 0.25 + Covariance yaw: 0.06853891909122467 + Topic: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /initialpose + - Action server: + Depth: 5 + Durability Policy: Volatile + History Policy: Keep Last + Reliability Policy: Reliable + Value: /planning/lanelet2_route_planning/plan_route + Class: route_planning_msgs/PlanRoute + Transformation: + Current: + Class: rviz_default_plugins/TF + Value: true + Views: + Current: + Class: rviz_default_plugins/XYOrbit + Distance: 48.21050262451172 + Enable Stereo Rendering: + Stereo Eye Separation: 0.05999999865889549 + Stereo Focal Distance: 1 + Swap Stereo Eyes: false + Value: false + Focal Point: + X: 0 + Y: 0 + Z: 0 + Focal Shape Fixed Size: false + Focal Shape Size: 0.05000000074505806 + Invert Z Axis: false + Name: Current View + Near Clip Distance: 0.009999999776482582 + Pitch: 0.9053980708122253 + Target Frame: base_link + Value: XYOrbit (rviz_default_plugins) + Yaw: 3.3004002571105957 + Saved: ~ +Window Geometry: + 3rd Person View: + collapsed: false + CarlaControl: + collapsed: false + Displays: + collapsed: false + Height: 1043 + Hide Left Dock: false + Hide Right Dock: false + QMainWindow State: 000000ff00000000fd0000000400000000000001ee00000380fc0200000011fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f00700065007200740069006500730200000780000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003b00000183000000c700fffffffb0000001e004f0076006500720076006900650077002000430061006d00650072006101000001620000012c0000000000000000fb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261fb0000002a005400720061006a006500630074006f00720079002000530075006700670065007300740069006f006e010000028a0000012a0000000000000000fb0000002000500072006500640069006300740069006f006e00200049006d00610067006500000002d6000000c30000000000000000fb00000018004300610072006c00610043006f006e00740072006f006c01000001c4000000bc000000b400fffffffb0000002e00540072006100660066006900630020004c006900670068007400200044006500740065006300740069006f006e00000003460000004e0000000000000000fb0000002a0054007200610066006600690063004c00690067006800740044006500740065006300740069006f006e000000027a000001210000000000000000fb0000000c00430061006d0065007200610100000271000000a20000000000000000fb0000001e00330072006400200050006500720073006f006e002000560069006500770100000286000001350000001600fffffffb0000000a0049006d006100670065010000035f0000005c0000000000000000000000010000010000000380fc0200000004fb0000000a00560069006500770073000000003b00000380000000a000fffffffb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000001c004f007600650072007600690065007700200049006d006100670065010000003b000003790000000000000000fb0000001200530065006c0065006300740069006f006e010000025a000000b2000000000000000000000002000009be00000195fc0100000009fb0000001400660072006f006e0074002d006c00650066007400000000000000025f0000000000000000fb0000001800660072006f006e0074002d00630065006e0074006500720000000265000003240000000000000000fb0000001600660072006f006e0074002d00720069006700680074000000058f0000042f0000000000000000fb00000010006d00690064002d006c0065006600740000000641000000fd0000000000000000fb00000012006d00690064002d00720069006700680074000000063b000001030000000000000000fb000000140072006500610072002d00720069006700680074000000052d000002110000000000000000fb000000160072006500610072002d00630065006e007400650072000000067d000000c10000000000000000fb000000120072006500610072002d006c0065006600740000000687000000b70000000000000000fb0000000a00560069006500770073030000004e00000080000002e100000197000000030000073e00000037fc0100000002fb0000000800540069006d006501000000000000073e0000025300fffffffb0000000800540069006d006501000000000000045000000000000000000000054a0000038000000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 + Selection: + collapsed: false + Time: + collapsed: false + Tool Properties: + collapsed: false + Views: + collapsed: false + Width: 1854 + X: 3906 + Y: 0 diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl new file mode 100644 index 0000000..7fa46f4 --- /dev/null +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -0,0 +1,26 @@ +openadservice: + args: + - bash + - -ic + - rviz2 -d /conf.rviz --ros-args -p use_sim_time:=true + gpu: true + env: + NAMESPACE: /monitoring + CONFIG: /conf.rviz + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + volumes: + - mountPath: /docker-ros/ws/monitoring-volume + hostPath: /work/geller/openads-project/openadsim/openadstack/monitoring/volume + - mountPath: /mesh + image: ghcr.io/openads-project/openads-assets:v1.0.0 + imagePath: mesh + - mountPath: /conf.rviz + data: | +{{ readFile "carla.rviz" | indent 6 }} + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml b/deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml new file mode 100644 index 0000000..b8cfb57 --- /dev/null +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml @@ -0,0 +1,59 @@ +/**/*: + ros__parameters: + target_frame: base_link + input_topics: + - "/carla/ego_vehicle/karl_rack_lidars/lidar_fl/point_cloud" + - "/carla/ego_vehicle/karl_rack_lidars/lidar_fr/point_cloud" + - "/carla/ego_vehicle/karl_rack_lidars/lidar_rl/point_cloud" + - "/carla/ego_vehicle/karl_rack_lidars/lidar_rr/point_cloud" + input_transport_hints: + - "raw" + - "raw" + - "raw" + - "raw" + + sync_queue_size: 3 # Queue depth for approximate time synchronization + max_time_diff_sec: 0.05 # Maximum allowed timestamp difference (seconds) across inputs + output_queue_size: 1 # Queue depth for fused output publisher + age_penalty: 0.1 # Optional ApproximateTime tuning + use_cuda: true # Enable CUDA acceleration (requires CUDA build) + fixed_points_per_input_cloud: 0 # 0=disabled + # output_fields: # Determine which fields to include in the output point cloud (all if not set) + # - "x" + # - "y" + # - "z" + # - "intensity" + # - ... + output_stamp_mode: "earliest" + + # --- point_cloud_transport parameters ----- + # point_cloud_fusion.output.enable_pub_plugins: + # - point_cloud_transport/cloudini + # - point_cloud_transport/draco + # - point_cloud_transport/raw + # - point_cloud_transport/zlib + # - point_cloud_transport/zstd + # point_cloud_fusion.output.cloudini.cloudini_resolution: 0.001 + # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.x: POSITION + # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.y: POSITION + # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.z: POSITION + # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.rgb: 16 + # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.x: 16 + # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.y: 16 + # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.z: 16 + # point_cloud_fusion.output.draco.attribute_mapping.rgba_tweak.rgb: true + # point_cloud_fusion.output.draco.attribute_mapping.rgba_tweak.rgba: false + # point_cloud_fusion.output.draco.decode_speed: 7 + # point_cloud_fusion.output.draco.deduplicate: true + # point_cloud_fusion.output.draco.encode_method: 0 + # point_cloud_fusion.output.draco.encode_speed: 7 + # point_cloud_fusion.output.draco.expert_attribute_types: false + # point_cloud_fusion.output.draco.expert_quantization: false + # point_cloud_fusion.output.draco.force_quantization: false + # point_cloud_fusion.output.draco.quantization_COLOR: 14 + # point_cloud_fusion.output.draco.quantization_GENERIC: 14 + # point_cloud_fusion.output.draco.quantization_NORMAL: 14 + # point_cloud_fusion.output.draco.quantization_POSITION: 14 + # point_cloud_fusion.output.draco.quantization_TEX_COORD: 14 + # point_cloud_fusion.output.zlib.encode_level: 7 + # point_cloud_fusion.output.zstd.zstd_encode_level: 7 diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl new file mode 100644 index 0000000..d4aad7b --- /dev/null +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -0,0 +1,26 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch point_cloud_fusion point_cloud_fusion.launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + trace:=${TRACE} \ + point_cloud_topic:=${POINT_CLOUD_TOPIC} + gpu: true + env: + NAMESPACE: /perception + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml new file mode 100644 index 0000000..5c8b256 --- /dev/null +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml @@ -0,0 +1,74 @@ +/**: + ros__parameters: + + # Core node configuration + prediction.server_url: "triton-server:8001" + prediction.model_repository: "point-cloud-object-detection" + prediction.model_version: "1" + preprocessing.backend: "cuda" + preprocessing.inference_frame: base_link + output.frame: base_link + output.grid_maps.frame: base_link + output.sensor_id: 0 + point_cloud_transport: raw + prediction.use_shm: true + prediction.cuda_input_shm: true + prediction.triton_client_timeout_s: 5.0 + + # Output filtering and object metadata + postprocessing.class_score_threshold: 0.0 + + # Object covariance defaults + # CONTINUOUS_STATE_COVARIANCE_UNKNOWN = -1.0 + output.variances: [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0] + + # Model input feature selection + input.point_feature_field: "intensity" + + # Runtime overrides for exported manifest defaults. + # preprocessing.detection_area.z_min: -1.0 + # preprocessing.detection_area.z_max: 4.0 + preprocessing.point_feature.value_threshold: 100.0 # should be set to appriximately the 99% percentile of the expected point_feature_field values in the input point cloud. + # car, bus, motorcycle, bicycle, utility, pedestrian, vru, micro, animal + postprocessing.nms.score_threshold: [0.3, 0.3, 0.3, 0.4, 0.3, 0.6, 0.4, 0.4, 0.3] + # postprocessing.class_score_threshold: 0.0 + postprocessing.nms.iou_threshold: 0.05 + postprocessing.nms.max_num_objects: 256 + + # Rectangular no-detection zone in inference_frame + preprocessing.no_detection_zone.enabled: true + preprocessing.no_detection_zone.remove_points: true + preprocessing.no_detection_zone.x_min: -1.5 + preprocessing.no_detection_zone.x_max: 4.2 + preprocessing.no_detection_zone.y_min: -1.2 + preprocessing.no_detection_zone.y_max: 1.2 + preprocessing.no_detection_zone.publish_polygon: true + preprocessing.no_detection_zone.publish_points: true + + # Circular-sector detection area in inference_frame + preprocessing.detection_area.enabled: true + preprocessing.detection_area.center_x: 0.0 + preprocessing.detection_area.center_y: 0.0 + + preprocessing.detection_area.radius: 50.0 + preprocessing.detection_area.bearing_deg: 0.0 + preprocessing.detection_area.fov_deg: 360.0 + preprocessing.detection_area.publish_polygon: true + preprocessing.detection_area.num_segments: 32 + preprocessing.detection_area.filter_detections: true + preprocessing.detection_area.filter_mode: "center" + + # Model bounds output + output.model_bounds.publish_polygon: true + + # Grid-map outputs + output.grid_maps.publish_density: true + output.grid_maps.publish_dynamic: true + output.grid_maps.publish_combined: true + output.grid_maps.publish_static: true + output.grid_maps.zero_in_no_detection_zone: true + output.grid_maps.zero_outside_detection_area: true + output.grid_maps.density_gain: 5.0 + output.grid_maps.dynamic_gain: 1.0 + output.grid_maps.combined_gain: 1.0 + output.grid_maps.static_gain: 5.0 diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl new file mode 100644 index 0000000..65f628e --- /dev/null +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -0,0 +1,41 @@ +openadservice: + image: ghcr.io/openads-project/point_cloud_object_detection:v3.0.0-slim + args: + - /bin/bash + - -ic + - |- + ros2 launch point_cloud_object_detection point_cloud_object_detection.launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + trace:=${TRACE} \ + point_cloud_topic:=${POINT_CLOUD_TOPIC} \ + object_list_topic:=${OBJECT_LIST_TOPIC} \ + no_detection_zone_topic:=${NO_DETECTION_ZONE_TOPIC} \ + no_detection_zone_points_topic:=${NO_DETECTION_ZONE_POINTS_TOPIC} \ + detection_area_topic:=${DETECTION_AREA_TOPIC} \ + model_bounds_topic:=${MODEL_BOUNDS_TOPIC} \ + density_grid_map_topic:=${DENSITY_GRID_MAP_TOPIC} \ + dynamic_grid_map_topic:=${DYNAMIC_GRID_MAP_TOPIC} \ + combined_grid_map_topic:=${COMBINED_GRID_MAP_TOPIC} \ + static_grid_map_topic:=${STATIC_GRID_MAP_TOPIC} + gpu: true + env: + NAMESPACE: /perception + POINT_CLOUD_TOPIC: /perception/point_cloud_fusion/point_cloud + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + volumes: + - mountPath: /models + image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 + imagePath: models + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml new file mode 100644 index 0000000..f905f71 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml @@ -0,0 +1,25 @@ +/**/*: + ros__parameters: + ll2_map_server_name: /localization/lanelet2_map_server + publish_frequency: 20.0 + action_feedback_frequency: 1.0 + sampling_distance: 1.0 + project_destination_to_reference_line: true + destination_distance_threshold: 1.0 + required_traveled_distance_proportion: 0.5 + enrich_route_ahead_ego_distance: 150.0 + enrich_route_behind_ego_distance: 100.0 + route_undershoot_distance: 10.0 + route_overshoot_distance: 10.0 + max_drivable_space_radius: 50.0 + max_num_threads: 8 + transform_timeout: 0.1 + + # --- plan_route_action_client --- + # waypoints: + # - ", " + # - ", , " + # - ", , -1" # intermediate destination + enable_random_destination: false + enable_continuous_planning: false + cancel_route: false \ No newline at end of file diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl new file mode 100644 index 0000000..102f122 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -0,0 +1,13 @@ +openadservice: + env: + NAMESPACE: /planning + EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/simple_planner/params.yml b/deployments/helmfile/openadstack/planning/simple_planner/params.yml new file mode 100644 index 0000000..1eb4851 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/simple_planner/params.yml @@ -0,0 +1,82 @@ +/**: + ros__parameters: + + #### general parameters + vehicle_frame_id: base_link # Frame ID of local vehicle frame (trajectory is planned in this frame) + trajectory_frame_id: base_link # Frame ID of output trajectory + fixed_over_time_frame_id: map # Frame ID of frame that is fixed over time for finding temporal transforms + frequency: 10.0 + route_timeout: 1.0 # time after which a received route is considered invalid (s) (use -1 for no timeout) + ego_data_timeout: 1.0 # time after which a received ego vehicle data is considered invalid (s) (use -1 for no timeout) + + #### trajectory generation parameters + trajectory_horizon: 8.0 # covered time horizon of the published trajectory (s) + n_states: 51 # number of states in published trajectory + interpolation_type: 1 # 0: linear, 1: cubic spline + v_ref: -1.0 # reference velocity (m/s). Set to '-1.0' to use velocity from route. + a_decel: -0.5 # desired deceleration for braking at stop lines or end of route (m/s^2) - must be < 0.0 + a_max_decel: -1.0 # maximum deceleration for safe-stop trajectories (m/s^2) - must be < 0.0 and <= a_decel + trigger_turn_signals: False # true: planner will request turn signal services; false: planner will not trigger turn signals + + #### grid map parameters + consider_grid_map: False # true: planner will consider grid map; false: planner will ignore grid map + grid_map_timeout: 1.0 # time after which a received grid map is considered invalid (s) (use -1 for no timeout) + grid_occupied_threshold: 15 # minimum occupancy value that is considered blocked in the grid map + consider_out_of_grid: False # true: points outside the grid map are treated as occupied; false: free + grid_longitudinal_safety_distance: 1.5 # longitudinal ego-box margin; negative values shrink the box (m) + grid_lateral_safety_distance: 0.0 # lateral ego-box margin; negative values shrink the box (m) + + #### traffic light parameters + consider_traffic_lights: False # true: planner will consider traffic lights; false: planner will ignore traffic lights + offset_to_stop_line: 0.0 # additional distance to stop in front of a stop line (m) (default: 0.0 -> stops with front of vehicle at stop line) + ignore_stop_line_threshold: 0.5 # a stop line will be ignored if the front of the vehicle has already passed the stop line by more than this threshold (m) + consider_future_states: False # true: trajectory will consider forecast of traffic light states; false: trajectory will only consider current traffic light state + + #### object parameters + consider_objects: True # true: planner will consider perceived objects on the route; false: planner will ignore objects + object_timeout: 1.0 # time after which a received object list is considered invalid (s) (use -1 for no timeout) + min_prediction_prob: 0.0 # minimum probability for considering an object prediction branch; otherwise the most likely one is used + object_longitudinal_safety_distance: 1.5 # longitudinal ego-box margin; negative values shrink the box (m) + object_lateral_safety_distance: 0.0 # lateral ego-box margin; negative values shrink the box (m) + object_interaction_time_window: 0.5 # maximum time offset for counting a spatial overlap as interaction (s) + object_velocity_reduction_step: 0.1 # velocity decrement per object-avoidance iteration (m/s) + object_velocity_release_step: 0.5 # maximum velocity increase per cycle after hysteresis cleared object conflicts (m/s) + object_standstill_speed_threshold: 0.2 # publish standstill if object avoidance would require a lower speed cap (m/s) + object_velocity_release_hysteresis_cycles: 3 # number of conflict-free cycles required before increasing the remembered object speed cap + publish_object_interaction_markers: True # publish RViz markers for the conflict explaining the final speed reduction + + #### lane change parameters + lane_change_distance_factor: 6.0 # factor multiplied with the current velocity to determine the lane change distance (m) + lane_change_min_distance_factor: 2.0 # factor multiplied with the vehicle length to determine the minimum lane change distance (m) + + #### diagnostic parameters + diagnostic_updater: + period: 1.0 + use_fqn: false + topic_diagnostics: + ego_data: + min_frequency: 45.45 # 22ms + max_frequency: 55.55 # 18ms + min_acceptable_timestamp_delta: 0.0 + max_acceptable_timestamp_delta: 0.002 + object_list: + min_frequency: 9.09 # 110ms + max_frequency: 11.11 # 90ms + min_acceptable_timestamp_delta: 0.0 + max_acceptable_timestamp_delta: 0.01 + route: + min_frequency: 18.18 # 55ms + max_frequency: 22.22 # 45ms + min_acceptable_timestamp_delta: 0.0 + max_acceptable_timestamp_delta: 0.005 + grid_map: + min_frequency: 9.09 # 110ms + max_frequency: 11.11 # 90ms + min_acceptable_timestamp_delta: 0.0 + max_acceptable_timestamp_delta: 0.01 + diagnosed_publishers: + trajectory: + min_frequency: 9.09 # 110ms + max_frequency: 11.11 # 90ms + min_acceptable_timestamp_delta: 0.0 + max_acceptable_timestamp_delta: 0.01 \ No newline at end of file diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl new file mode 100644 index 0000000..e818ca1 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -0,0 +1,36 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch simple_planner simple_planner.launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + trace:=${TRACE} \ + ego_data_topic:=${EGO_DATA_TOPIC} \ + object_list_topic:=${OBJECT_LIST_TOPIC} \ + route_topic:=${ROUTE_TOPIC} \ + grid_map_topic:=${GRID_MAP_TOPIC} \ + trajectory_topic:=${TRAJECTORY_TOPIC} \ + object_interaction_markers_topic:=${OBJECT_INTERACTION_MARKERS_TOPIC} \ + left_turn_indicator_service:=${LEFT_TURN_INDICATOR_SERVICE} \ + right_turn_indicator_service:=${RIGHT_TURN_INDICATOR_SERVICE} \ + hazard_lights_service:=${HAZARD_LIGHTS_SERVICE} + env: + NAMESPACE: /planning + EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROUTE_TOPIC: /planning/lanelet2_route_planning/route + RUST_LOG: zenoh=warn + TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml b/deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml new file mode 100644 index 0000000..5cf9e31 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml @@ -0,0 +1,49 @@ +/**: + ros__parameters: + ### ROS node parameters + vehicle_frame_id: base_link # Frame ID of local vehicle frame (the ocp is defined in this frame) + trajectory_frame_id: base_link # Frame ID of output trajectory + fixed_over_time_frame_id: map # Frame ID of frame that is fixed over time for finding temporal transforms + ego_data_timeout: 1.0 # Time after which a received ego vehicle data is considered invalid [s]. Optimization will not be run if ego data is invalid. + optimization_frequency: 10.0 # frequency of the optimization loop [Hz] + standstill_threshold: 0.3 # threshold for standstill detection [m/s]. If all state velocities are below this threshold, publish standstill trajectory + high_level_stabilization: False # init first trajectory point with: current EgoData (True); interpolation of last trajectory -> bi-level (False) + consider_objects: 2 # consider objects in optimization: 0 = no, 1 = static (no prediction), 2 = dynamic (with prediction) + min_prediction_probability: 0.0 # consider only predictions with probability > this threshold + consider_boundaries: 3 # consider route boundaries in optimization: 0 = no, 1 = suggested lane, 2 = including adjacent, 3 = drivable space + verbose: False # print debug infromation and solver statistics + performance_logging: False # write one CSV record for each completed solver run + debug_visualization: True # publish debug visualization markers (e.g. obstacle circles) + run_as_callback: False # run OCP once for each received reference trajectory (true) or on a timer (false) + + #### thresholds for bi-level stabilization + bi_level_dV: 2.0 # maximum v difference before bi-level stabilization hits [m/s] + bi_level_dY: 0.3 # maximum y-offset before bi-level stabilization hits [m] + bi_level_dYaw: 89.0 # maximum yaw difference before bi-level stabilization hits [degree] + + ### general parameters defining the ocp + model_name: 'karl' # name of the acados model + optimization_horizon: 5.0 # optimization horizon [s] (also used as build parameter in OCP) + n_shots: 50 # number of shooting intervals in optimization horizon (also used as build parameter in OCP) + + #### cost weights + cost_weights: + - 0.1 # dlat (0) + - 0.0 # psi (1) (considered if RWS model is used) + - 0.5 # overspeed (2) + - 0.4 # underspeed (3) + - 0.15 # a_lat (4) + - 0.15 # a_lon_pos (5) + - 0.1 # a_lon_neg (6) + - 0.2 # j_lat (7) + - 0.1 # j_lon_pos (8) + - 0.1 # j_lon_neg (9) + - 0.1 # alpha (10) + - 3.0 # endYaw (11) + dynamic_weight: 1.0 # base for exponential weight + + # other cost params + thw: 2.0 # time headway [s] + d_min_obstacle_long: 1.0 # minimum distance to keep to obstacles in longitudinal direction [m] + d_min_obstacle_lat: 0.1 # minimum distance to keep to obstacles in lateral direction [m] + d_min_boundary_lat: -0.5 # minimum distance to keep to boundaries in lateral direction [m] \ No newline at end of file diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl new file mode 100644 index 0000000..6d80ee4 --- /dev/null +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -0,0 +1,40 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch trajectory_optimization trajectory_optimization.launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + ros_tracing:=${ROS_TRACING} \ + driving_mode:=${DRIVING_MODE} \ + ego_data_topic:=${EGO_DATA_TOPIC} \ + object_list_topic:=${OBJECT_LIST_TOPIC} \ + reference_trajectory_topic:=${REFERENCE_TRAJECTORY_TOPIC} \ + route_topic:=${ROUTE_TOPIC} \ + trajectory_topic:=${TRAJECTORY_TOPIC} \ + boundary_marker_topic:=${BOUNDARY_MARKER_TOPIC} \ + ego_circles_topic:=${EGO_CIRCLES_TOPIC} \ + object_circles_topic:=${OBJECT_CIRCLES_TOPIC} + env: + NAMESPACE: /planning + EGO_CIRCLES_TOPIC: ~/visualization/ego_circles + EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + OBJECT_CIRCLES_TOPIC: ~/visualization/object_circles + OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list + REFERENCE_TRAJECTORY_TOPIC: /planning/simple_planner/trajectory + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROUTE_TOPIC: /planning/lanelet2_route_planning/route + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + ROS_TRACING: {{ (default "false" (default "false" (env "ROS_TRACING"))) | quote }} + DRIVING_MODE: {{ (default "ackermann" (env "DRIVING_MODE")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl new file mode 100644 index 0000000..6d5de91 --- /dev/null +++ b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl @@ -0,0 +1,29 @@ +openadservice: + env: + NAMESPACE: /understanding + DATA_ASSOCIATION_MATRIX_PATH: {{ (default "" (env "DATA_ASSOCIATION_MATRIX_PATH")) | quote }} + INPUT_CHANNELS_PATH: {{ (default "" (env "INPUT_CHANNELS_PATH")) | quote }} + INPUT_DETECTION01_CHANNEL: untracked_objects + INPUT_DETECTION01_OBJECTS: /perception/point_cloud_object_detection/object_list + OUTPUT_MERGED_OBJECTS: ~/merged_object_list + OUTPUT_OBJECTS: ~/object_list + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRACKER_SETTING_PATH: {{ (default "" (env "TRACKER_SETTING_PATH")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + INPUT_DETECTION02_CHANNEL: {{ (default "none" (env "INPUT_DETECTION02_CHANNEL")) | quote }} + INPUT_DETECTION03_CHANNEL: {{ (default "none" (env "INPUT_DETECTION03_CHANNEL")) | quote }} + INPUT_DETECTION04_CHANNEL: {{ (default "none" (env "INPUT_DETECTION04_CHANNEL")) | quote }} + INPUT_DETECTION05_CHANNEL: {{ (default "none" (env "INPUT_DETECTION05_CHANNEL")) | quote }} + INPUT_DETECTION06_CHANNEL: {{ (default "none" (env "INPUT_DETECTION06_CHANNEL")) | quote }} + INPUT_DETECTION07_CHANNEL: {{ (default "none" (env "INPUT_DETECTION07_CHANNEL")) | quote }} + INPUT_DETECTION08_CHANNEL: {{ (default "none" (env "INPUT_DETECTION08_CHANNEL")) | quote }} + INPUT_DETECTION09_CHANNEL: {{ (default "none" (env "INPUT_DETECTION09_CHANNEL")) | quote }} + INPUT_DETECTION10_CHANNEL: {{ (default "none" (env "INPUT_DETECTION10_CHANNEL")) | quote }} + INPUT_DETECTION11_CHANNEL: {{ (default "none" (env "INPUT_DETECTION11_CHANNEL")) | quote }} + INPUT_DETECTION12_CHANNEL: {{ (default "none" (env "INPUT_DETECTION12_CHANNEL")) | quote }} + PUBLISH_MERGED_OBJECTS: {{ (default "false" (env "PUBLISH_MERGED_OBJECTS")) | quote }} + EGO_SOURCE: {{ (default "tf" (env "EGO_SOURCE")) | quote }} diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml new file mode 100644 index 0000000..7308f04 --- /dev/null +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml @@ -0,0 +1,8 @@ +/**/*: + ros__parameters: + ll2_map_server_name: /localization/lanelet2_map_server + lanelet_match_max_distance_m: 0.2 + lanelet_match_max_yaw_diff_rad: 1.047197551 + prediction_horizon_s: 10.0 + prediction_sample_interval_s: 0.5 + unmatched_object_prediction_mode: static \ No newline at end of file diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl new file mode 100644 index 0000000..bdd2f81 --- /dev/null +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -0,0 +1,25 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch lanelet2_object_list_prediction lanelet2_object_list_prediction_launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ + object_list_topic:=${OBJECT_LIST_TOPIC} + env: + NAMESPACE: /understanding + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRACKED_OBJECT_LIST_TOPIC: /simulation/object_list + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml new file mode 100644 index 0000000..7308f04 --- /dev/null +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml @@ -0,0 +1,8 @@ +/**/*: + ros__parameters: + ll2_map_server_name: /localization/lanelet2_map_server + lanelet_match_max_distance_m: 0.2 + lanelet_match_max_yaw_diff_rad: 1.047197551 + prediction_horizon_s: 10.0 + prediction_sample_interval_s: 0.5 + unmatched_object_prediction_mode: static \ No newline at end of file diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl new file mode 100644 index 0000000..98d1fe4 --- /dev/null +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -0,0 +1,25 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch lanelet2_object_list_prediction lanelet2_object_list_prediction_launch.py \ + namespace:=${NAMESPACE} \ + name:=${NAME} \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + params:=${PARAMS} \ + tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ + object_list_topic:=${OBJECT_LIST_TOPIC} + env: + NAMESPACE: /understanding + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TRACKED_OBJECT_LIST_TOPIC: /understanding/autoware_multi_object_tracker/object_list + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /params.yml From a0e75946a91fa607899cadca65afd0c3956b1940 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 10:48:53 +0200 Subject: [PATCH 02/80] make carla host configurable --- deployments/helmfile/CMD.md | 28 + .../carla-client/set_environment.py | 842 ++++++++++++++++++ .../carla-client/values.yaml.gotmpl | 15 + .../carla-ros-bridge/values.yaml.gotmpl | 4 +- .../values.yaml.gotmpl | 6 +- .../values.yaml.gotmpl | 6 +- .../carla-server/values.yaml.gotmpl | 12 + .../helmfile/environments/base.yaml.gotmpl | 2 + deployments/helmfile/helmfile.yaml | 18 +- 9 files changed, 914 insertions(+), 19 deletions(-) create mode 100644 deployments/helmfile/carla-simulation/carla-client/set_environment.py create mode 100644 deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index 5ac8a3b..8b2c436 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -12,6 +12,15 @@ exported yet: docker-compose.yml ``` +Export only the profiles currently active through `COMPOSE_PROFILES`: + +```sh +./utils/compose-to-k8s/compose_to_helmfile.py \ + --active-profiles-only \ + --output-dir deployments/helmfile \ + docker-compose.yml +``` + Generate the same complete release universe, but enable only `perception` by default: @@ -28,9 +37,28 @@ Deploy or update the complete Helmfile: helmfile --file deployments/helmfile/helmfile.yaml sync ``` +Helmfile does not read `.env` itself. Load it into the current shell before +deployment when its `COMPOSE_PROFILES` value should control the enabled +releases: + +```sh +set -a +. ./.env +set +a +helmfile --file deployments/helmfile/helmfile.yaml sync +``` + +Alternatively, export only the profile selection for one deployment: + +```sh +export COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning +helmfile --file deployments/helmfile/helmfile.yaml sync +``` + Deploy or update only the RViz component: ```sh +export COMPOSE_PROFILES=carla helmfile --file deployments/helmfile/helmfile.yaml \ --selector name=zenoh-router \ --selector name=rviz-carla \ diff --git a/deployments/helmfile/carla-simulation/carla-client/set_environment.py b/deployments/helmfile/carla-simulation/carla-client/set_environment.py new file mode 100644 index 0000000..2b6d4ba --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-client/set_environment.py @@ -0,0 +1,842 @@ +#!/usr/bin/env python3 + +"""UE5 environment setup for CARLA traffic and optional weather.""" + +import argparse +import logging +import math +import signal +import time + +import carla +from numpy import random + + +FOLLOWING_DISTANCE = 2.5 +HYBRID_RADIUS = 70.0 +FIXED_DELTA_SECONDS = 0.05 +DEFAULT_NUMBER_OF_VEHICLES = 30 +DEFAULT_NUMBER_OF_WALKERS = 10 +WALKER_SPAWN_Z_OFFSET = 2.0 +PEDESTRIANS_RUNNING = 0.0 +PEDESTRIANS_CROSSING = 0.0 +BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M = 20.0 +EGO_VEHICLE_SPAWN_CLEARANCE_M = 75.0 +NEAR_EGO_SPAWN_RADIUS_M = 200.0 +NEAR_EGO_VEHICLE_TARGET_FRACTION = 0.7 +WALKER_NAV_LOCATION_ATTEMPTS = 10 +CONNECT_RETRY_SECONDS = 2.0 +CLIENT_TIMEOUT_SECONDS = 10.0 +EGO_ROLE_NAME = "ego_vehicle" +BACKGROUND_ROLE_NAME = "autopilot" + +STATUS_INTERVAL = 5.0 +STUCK_SPEED_MPS = 0.2 +STUCK_DISTANCE_M = 1.0 +STUCK_SECONDS = 45.0 + + +def install_signal_handlers(): + def stop(_signum, _frame): + raise KeyboardInterrupt + + signal.signal(signal.SIGINT, stop) + signal.signal(signal.SIGTERM, stop) + + +def parse_args(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--host", default="carla-server", help="CARLA server host") + parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port") + parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") + parser.add_argument( + "-n", + "--number-of-vehicles", + default=DEFAULT_NUMBER_OF_VEHICLES, + type=int, + ) + parser.add_argument( + "-w", + "--number-of-walkers", + default=DEFAULT_NUMBER_OF_WALKERS, + type=int, + ) + parser.add_argument("--filterv", default="vehicle.*", help="Vehicle blueprint filter") + parser.add_argument("--filterw", default="walker.pedestrian.*", help="Walker blueprint filter") + parser.add_argument("--synch", action="store_true", help="Enable synchronous mode") + parser.add_argument("--hybrid", action="store_true", help="Enable TM hybrid physics") + parser.add_argument("--respawn", action="store_true", help="Respawn dormant vehicles") + parser.add_argument( + "--wait-for-ego", + dest="wait_for_ego", + action="store_true", + default=True, + help="Wait for an actor with role_name=ego_vehicle before spawning traffic", + ) + parser.add_argument( + "--no-wait-for-ego", + dest="wait_for_ego", + action="store_false", + help="Spawn traffic immediately without waiting for ego_vehicle", + ) + parser.add_argument( + "--weather", + metavar="PRESET", + help='Weather preset name, e.g. "ClearNoon" or "WetCloudyNoon"', + ) + return parser.parse_args() + + +def connect_to_carla(args): + client = carla.Client(args.host, args.port) + client.set_timeout(CLIENT_TIMEOUT_SECONDS) + + while True: + try: + client.get_server_version() + logging.info("Connected to CARLA at %s:%s", args.host, args.port) + return client + except RuntimeError as error: + logging.warning( + "Waiting for CARLA server at %s:%s: %s", + args.host, + args.port, + error, + ) + time.sleep(CONNECT_RETRY_SECONDS) + + +def wait_for_ego_vehicle(client): + """Return the current world after its ego vehicle appears.""" + while True: + try: + # The ROS bridge may replace the world while loading the configured map. + world = client.get_world() + ego = find_ego_vehicle(world) + if ego is not None: + logging.info("Found ego vehicle with actor id %s", ego.id) + return world + except RuntimeError as error: + logging.warning("Waiting for a stable CARLA world: %s", error) + else: + logging.info("Waiting for ego vehicle with role_name=%s", EGO_ROLE_NAME) + + # Avoid wait_for_tick() on a world that may belong to the old episode. + time.sleep(CONNECT_RETRY_SECONDS) + + +def find_ego_vehicle(world): + for actor in world.get_actors().filter("vehicle.*"): + if is_ego_vehicle(actor): + return actor + return None + + +def is_ego_vehicle(actor): + return ( + actor.attributes.get("role_name") == EGO_ROLE_NAME + or actor.attributes.get("id") == EGO_ROLE_NAME + ) + + +def get_blueprints(world, pattern): + blueprints = world.get_blueprint_library().filter(pattern) + if not blueprints: + raise ValueError("No blueprints found for filter: %s" % pattern) + return sorted(blueprints, key=lambda blueprint: blueprint.id) + + +def apply_weather(world, preset_name): + if not preset_name: + return None + + if not hasattr(carla.WeatherParameters, preset_name): + presets = [ + name + for name in dir(carla.WeatherParameters) + if not name.startswith("_") and name[0].isupper() + ] + raise ValueError( + "Unknown weather preset '%s'. Available presets: %s" + % (preset_name, ", ".join(sorted(presets))) + ) + + previous_weather = world.get_weather() + world.set_weather(getattr(carla.WeatherParameters, preset_name)) + logging.info("Weather preset set to %s", preset_name) + return previous_weather + + +def configure_simulation(world, traffic_manager, args): + traffic_manager.set_global_distance_to_leading_vehicle(FOLLOWING_DISTANCE) + + if args.respawn: + traffic_manager.set_respawn_dormant_vehicles(True) + + if args.hybrid: + traffic_manager.set_hybrid_physics_mode(True) + traffic_manager.set_hybrid_physics_radius(HYBRID_RADIUS) + + original_settings = world.get_settings() + changed_settings = False + synchronous_master = False + + if args.synch: + traffic_manager.set_synchronous_mode(True) + settings = world.get_settings() + if not settings.synchronous_mode: + synchronous_master = True + settings.synchronous_mode = True + settings.fixed_delta_seconds = FIXED_DELTA_SECONDS + world.apply_settings(settings) + changed_settings = True + else: + logging.warning("Running in asynchronous mode; traffic can be less stable") + + return original_settings, changed_settings, synchronous_master + + +def restore_simulation(world, original_settings, changed_settings, previous_weather): + if previous_weather is not None: + world.set_weather(previous_weather) + + if not changed_settings: + return + + settings = world.get_settings() + settings.synchronous_mode = original_settings.synchronous_mode + settings.fixed_delta_seconds = original_settings.fixed_delta_seconds + world.apply_settings(settings) + + +def spawn_vehicles(client, world, traffic_manager, blueprints, count, synchronous_master): + if count <= 0: + return [] + + spawn_points = select_vehicle_spawn_points(world, count) + if count > len(spawn_points): + logging.warning( + "Requested %d vehicles, but only found %d free spawn points", + count, + len(spawn_points), + ) + count = len(spawn_points) + + batch = [] + for transform in spawn_points[:count]: + blueprint = random.choice(blueprints) + set_random_attribute(blueprint, "color") + set_random_attribute(blueprint, "driver_id") + blueprint.set_attribute("role_name", BACKGROUND_ROLE_NAME) + + batch.append( + carla.command.SpawnActor(blueprint, transform).then( + carla.command.SetAutopilot( + carla.command.FutureActor, True, traffic_manager.get_port() + ) + ) + ) + + return apply_spawn_batch(client, batch, synchronous_master) + + +def select_vehicle_spawn_points(world, count): + spawn_points = list(world.get_map().get_spawn_points()) + random.shuffle(spawn_points) + + vehicles = list(world.get_actors().filter("vehicle.*")) + ego = next((actor for actor in vehicles if is_ego_vehicle(actor)), None) + ego_location = ego.get_location() if ego is not None else None + occupied_locations = [ + actor.get_location() for actor in vehicles if actor is not ego + ] + background_vehicles = [ + actor + for actor in vehicles + if actor is not ego + and actor.attributes.get("role_name") == BACKGROUND_ROLE_NAME + ] + selected_spawn_points = [] + + if ego_location is None: + add_clear_vehicle_spawn_points( + spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + return selected_spawn_points + + eligible_spawn_points = [ + spawn_point + for spawn_point in spawn_points + if spawn_point.location.distance(ego_location) + >= EGO_VEHICLE_SPAWN_CLEARANCE_M + ] + near_spawn_points = [ + spawn_point + for spawn_point in eligible_spawn_points + if spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + ] + distant_spawn_points = [ + spawn_point + for spawn_point in eligible_spawn_points + if spawn_point.location.distance(ego_location) > NEAR_EGO_SPAWN_RADIUS_M + ] + + current_nearby = sum( + actor.get_location().distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + for actor in background_vehicles + ) + desired_nearby = round( + (len(background_vehicles) + count) * NEAR_EGO_VEHICLE_TARGET_FRACTION + ) + near_target = min( + count, + max(0, desired_nearby - current_nearby), + ) + add_clear_vehicle_spawn_points( + near_spawn_points, + near_target, + occupied_locations, + selected_spawn_points, + ) + add_clear_vehicle_spawn_points( + distant_spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + + if len(selected_spawn_points) < count: + add_clear_vehicle_spawn_points( + near_spawn_points, + count, + occupied_locations, + selected_spawn_points, + ) + + selected_nearby = sum( + spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M + for spawn_point in selected_spawn_points + ) + logging.info( + "Selected %d/%d vehicle spawn points within %.0f-%.0f m of the ego " + "(current=%d target=%d)", + selected_nearby, + len(selected_spawn_points), + EGO_VEHICLE_SPAWN_CLEARANCE_M, + NEAR_EGO_SPAWN_RADIUS_M, + current_nearby, + desired_nearby, + ) + return selected_spawn_points + + +def add_clear_vehicle_spawn_points( + candidates, + target_count, + occupied_locations, + selected_spawn_points, +): + selected_locations = [ + spawn_point.location for spawn_point in selected_spawn_points + ] + + for spawn_point in candidates: + if len(selected_spawn_points) >= target_count: + break + + if not is_clear_location( + spawn_point.location, + occupied_locations + selected_locations, + BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M, + ): + continue + selected_spawn_points.append(spawn_point) + selected_locations.append(spawn_point.location) + + +def is_clear_location(location, occupied_locations, clearance_m): + return all( + location.distance(occupied_location) >= clearance_m + for occupied_location in occupied_locations + ) + + +def set_random_attribute(blueprint, name): + if blueprint.has_attribute(name): + values = blueprint.get_attribute(name).recommended_values + blueprint.set_attribute(name, random.choice(values)) + + +def apply_spawn_batch(client, batch, do_tick=True): + actor_ids = [] + for response in client.apply_batch_sync(batch, do_tick): + if response.error: + logging.error(response.error) + else: + actor_ids.append(response.actor_id) + return actor_ids + + +def spawn_walkers(client, world, blueprints, count, args, synchronous_master): + if count <= 0: + return [] + + world.set_pedestrians_cross_factor(PEDESTRIANS_CROSSING) + + spawn_points = find_walker_spawn_points(world, count) + if len(spawn_points) < count: + logging.warning( + "Only found %d/%d walker navigation spawn locations. " + "If this stays at 0, the current map likely has no pedestrian navmesh.", + len(spawn_points), + count, + ) + + batch = [] + walker_speeds = [] + for spawn_point in spawn_points: + blueprint = random.choice(blueprints) + + if blueprint.has_attribute("is_invincible"): + blueprint.set_attribute("is_invincible", "false") + + walker_speeds.append(get_walker_speed(blueprint)) + batch.append(carla.command.SpawnActor(blueprint, spawn_point)) + + spawned_walkers = [] + for index, response in enumerate(client.apply_batch_sync(batch, True)): + if response.error: + logging.error(response.error) + else: + spawned_walkers.append( + {"walker": response.actor_id, "speed": walker_speeds[index]} + ) + + records = spawn_walker_controllers(client, world, spawned_walkers) + start_walker_controllers(world, records, args, synchronous_master) + return records + + +def find_walker_spawn_points(world, count): + spawn_points = [] + attempts = max(count * WALKER_NAV_LOCATION_ATTEMPTS, count) + + for _ in range(attempts): + if len(spawn_points) >= count: + break + + location = world.get_random_location_from_navigation() + if location is not None: + location.z += WALKER_SPAWN_Z_OFFSET + spawn_points.append(carla.Transform(location)) + + return spawn_points + + +def get_walker_speed(blueprint): + if not blueprint.has_attribute("speed"): + return 0.0 + + speeds = blueprint.get_attribute("speed").recommended_values + if random.random() > PEDESTRIANS_RUNNING: + return float(speeds[1]) + return float(speeds[2]) + + +def spawn_walker_controllers(client, world, spawned_walkers): + controller_blueprint = world.get_blueprint_library().find("controller.ai.walker") + batch = [ + carla.command.SpawnActor( + controller_blueprint, carla.Transform(), record["walker"] + ) + for record in spawned_walkers + ] + + records = [] + uncontrolled_walkers = [] + for index, response in enumerate(client.apply_batch_sync(batch, True)): + walker = spawned_walkers[index] + if response.error: + logging.error(response.error) + uncontrolled_walkers.append(walker["walker"]) + else: + records.append( + { + "walker": walker["walker"], + "controller": response.actor_id, + "speed": walker["speed"], + } + ) + + destroy_actor_ids(client, uncontrolled_walkers) + return records + + +def start_walker_controllers(world, walker_records, args, synchronous_master): + if not walker_records: + return + + if args.synch and synchronous_master: + world.tick() + else: + world.wait_for_tick() + + speed_by_controller = { + record["controller"]: record["speed"] for record in walker_records + } + controllers = world.get_actors(list(speed_by_controller.keys())) + + for controller in controllers: + controller.start() + target = world.get_random_location_from_navigation() + if target is not None: + controller.go_to_location(target) + controller.set_max_speed(speed_by_controller[controller.id]) + + +def supervise_environment( + client, + world, + traffic_manager, + args, + vehicle_blueprints, + walker_blueprints, + vehicles, + vehicle_sensors, + collided_vehicles, + walker_records, + synchronous_master, +): + vehicle_state = build_vehicle_state(world, vehicles, time.monotonic()) + next_status = time.monotonic() + + while True: + tick_once(world, args, synchronous_master) + + now = time.monotonic() + if now < next_status: + continue + next_status = now + STATUS_INTERVAL + + previous_vehicles = set(vehicles) + vehicles[:] = live_actor_ids(world, vehicles) + missing_vehicle_ids = previous_vehicles - set(vehicles) + remove_vehicle_sensors(client, vehicle_sensors, missing_vehicle_ids) + + walker_records[:] = live_walker_records(client, world, walker_records) + + stuck_vehicles = find_stuck_vehicles(world, vehicles, vehicle_state, now) + collided_vehicle_ids = [ + actor_id for actor_id in vehicles if actor_id in collided_vehicles + ] + collided_vehicles.difference_update(collided_vehicle_ids) + + bad_vehicles = set(stuck_vehicles) | set(collided_vehicle_ids) + if bad_vehicles: + remove_vehicle_sensors(client, vehicle_sensors, bad_vehicles) + destroy_actor_ids(client, bad_vehicles) + vehicles[:] = [actor_id for actor_id in vehicles if actor_id not in bad_vehicles] + for actor_id in bad_vehicles: + vehicle_state.pop(actor_id, None) + + missing_vehicles = max(0, args.number_of_vehicles - len(vehicles)) + new_vehicles = spawn_vehicles( + client, + world, + traffic_manager, + vehicle_blueprints, + missing_vehicles, + synchronous_master, + ) + vehicles.extend(new_vehicles) + vehicle_state.update(build_vehicle_state(world, new_vehicles, now)) + attach_collision_sensors( + world, new_vehicles, vehicle_sensors, collided_vehicles + ) + + missing_walkers = max(0, args.number_of_walkers - len(walker_records)) + new_walkers = spawn_walkers( + client, + world, + walker_blueprints, + missing_walkers, + args, + synchronous_master, + ) + walker_records.extend(new_walkers) + + print( + ( + "environment: vehicles=%d/%d walkers=%d/%d " + "respawned_vehicles=%d respawned_walkers=%d " + "stuck_vehicles=%d collided_vehicles=%d" + ) + % ( + len(vehicles), + args.number_of_vehicles, + len(walker_records), + args.number_of_walkers, + len(new_vehicles), + len(new_walkers), + len(stuck_vehicles), + len(collided_vehicle_ids), + ), + flush=True, + ) + + +def tick_once(world, args, synchronous_master): + if args.synch and synchronous_master: + world.tick() + else: + world.wait_for_tick() + + +def live_actor_ids(world, actor_ids): + live_ids = {actor.id for actor in world.get_actors(actor_ids)} + return [actor_id for actor_id in actor_ids if actor_id in live_ids] + + +def live_walker_records(client, world, walker_records): + actor_ids = [] + for record in walker_records: + actor_ids.extend([record["walker"], record["controller"]]) + + live_ids = {actor.id for actor in world.get_actors(actor_ids)} + live_records = [] + orphan_ids = [] + + for record in walker_records: + walker_alive = record["walker"] in live_ids + controller_alive = record["controller"] in live_ids + if walker_alive and controller_alive: + live_records.append(record) + else: + if walker_alive: + orphan_ids.append(record["walker"]) + if controller_alive: + orphan_ids.append(record["controller"]) + + destroy_actor_ids(client, orphan_ids) + return live_records + + +def build_vehicle_state(world, vehicle_ids, now): + state = {} + for actor in world.get_actors(vehicle_ids): + state[actor.id] = { + "spawned_at": now, + "last_moved_at": now, + "last_location": location_tuple(actor.get_location()), + } + return state + + +def find_stuck_vehicles(world, vehicle_ids, vehicle_state, now): + stuck_vehicles = [] + actors = world.get_actors(vehicle_ids) + live_ids = set() + + for actor in actors: + live_ids.add(actor.id) + state = vehicle_state.setdefault( + actor.id, + { + "spawned_at": now, + "last_moved_at": now, + "last_location": location_tuple(actor.get_location()), + }, + ) + + location = location_tuple(actor.get_location()) + moved_distance = distance(location, state["last_location"]) + speed = vector_length(actor.get_velocity()) + + if speed > STUCK_SPEED_MPS or moved_distance > STUCK_DISTANCE_M: + state["last_moved_at"] = now + state["last_location"] = location + continue + + stuck_long_enough = now - state["last_moved_at"] >= STUCK_SECONDS + if stuck_long_enough: + stuck_vehicles.append(actor.id) + + for actor_id in list(vehicle_state.keys()): + if actor_id not in live_ids: + vehicle_state.pop(actor_id, None) + + return stuck_vehicles + + +def location_tuple(location): + return (location.x, location.y, location.z) + + +def distance(first, second): + return math.sqrt( + (first[0] - second[0]) ** 2 + + (first[1] - second[1]) ** 2 + + (first[2] - second[2]) ** 2 + ) + + +def vector_length(vector): + return math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z) + + +def attach_collision_sensors(world, vehicle_ids, vehicle_sensors, collided_vehicles): + if not vehicle_ids: + return + + blueprint = world.get_blueprint_library().find("sensor.other.collision") + for vehicle in world.get_actors(vehicle_ids): + if vehicle.id in vehicle_sensors: + continue + + try: + sensor = world.spawn_actor(blueprint, carla.Transform(), attach_to=vehicle) + except RuntimeError as error: + logging.warning("Could not attach collision sensor: %s", error) + continue + + sensor.listen( + lambda _event, actor_id=vehicle.id: collided_vehicles.add(actor_id) + ) + vehicle_sensors[vehicle.id] = sensor + + +def remove_vehicle_sensors(client, vehicle_sensors, vehicle_ids): + sensor_ids = [] + for vehicle_id in vehicle_ids: + sensor = vehicle_sensors.pop(vehicle_id, None) + if sensor is None: + continue + + try: + sensor.stop() + except RuntimeError as error: + logging.warning("Could not stop collision sensor: %s", error) + sensor_ids.append(sensor.id) + + destroy_actor_ids(client, sensor_ids) + + +def destroy_actor_ids(client, actor_ids): + if actor_ids: + client.apply_batch([carla.command.DestroyActor(actor_id) for actor_id in actor_ids]) + + +def cleanup(client, vehicles, vehicle_sensors, walker_records): + remove_vehicle_sensors(client, vehicle_sensors, list(vehicle_sensors.keys())) + + controllers = world_actors_from_records(client, walker_records, "controller") + for controller in controllers: + try: + controller.stop() + except RuntimeError as error: + logging.warning("Could not stop walker controller: %s", error) + + print("\ndestroying %d vehicles" % len(vehicles), flush=True) + destroy_actor_ids(client, vehicles) + + walker_actor_ids = [] + for record in walker_records: + walker_actor_ids.extend([record["walker"], record["controller"]]) + + print("\ndestroying %d walkers" % len(walker_records), flush=True) + destroy_actor_ids(client, walker_actor_ids) + + +def world_actors_from_records(client, records, key): + actor_ids = [record[key] for record in records] + return client.get_world().get_actors(actor_ids) + + +def main(): + args = parse_args() + logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO) + install_signal_handlers() + + client = connect_to_carla(args) + if args.wait_for_ego: + world = wait_for_ego_vehicle(client) + else: + world = client.get_world() + traffic_manager = client.get_trafficmanager(args.tm_port) + + vehicles = [] + vehicle_sensors = {} + collided_vehicles = set() + walker_records = [] + previous_weather = None + original_settings = None + changed_settings = False + + try: + previous_weather = apply_weather(world, args.weather) + original_settings, changed_settings, synchronous_master = configure_simulation( + world, traffic_manager, args + ) + + vehicle_blueprints = get_blueprints(world, args.filterv) + walker_blueprints = get_blueprints(world, args.filterw) + vehicles.extend( + spawn_vehicles( + client, + world, + traffic_manager, + vehicle_blueprints, + args.number_of_vehicles, + synchronous_master, + ) + ) + attach_collision_sensors( + world, vehicles, vehicle_sensors, collided_vehicles + ) + + walker_records.extend( + spawn_walkers( + client, + world, + walker_blueprints, + args.number_of_walkers, + args, + synchronous_master, + ) + ) + + print( + "Spawned %d vehicles and %d walkers, press Ctrl+C to exit." + % (len(vehicles), len(walker_records)), + flush=True, + ) + supervise_environment( + client, + world, + traffic_manager, + args, + vehicle_blueprints, + walker_blueprints, + vehicles, + vehicle_sensors, + collided_vehicles, + walker_records, + synchronous_master, + ) + + finally: + cleanup(client, vehicles, vehicle_sensors, walker_records) + restore_simulation(world, original_settings, changed_settings, previous_weather) + time.sleep(0.5) + + +if __name__ == "__main__": + try: + main() + except KeyboardInterrupt: + pass + finally: + print("\ndone.") diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl new file mode 100644 index 0000000..dc0e37c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl @@ -0,0 +1,15 @@ +openadservice: + args: + - /bin/bash + - -ic + - |- + exec python3 /set_environment.py \ + --host "${CARLA_HOST}" \ + --port "${CARLA_PORT}" + env: + CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} + CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} + volumes: + - mountPath: /set_environment.py + data: | +{{ readFile "set_environment.py" | indent 6 }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 405eb7c..56743e1 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -8,8 +8,8 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "True" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - HOST: {{ (default "carla-server" (env "HOST")) | quote }} - PORT: {{ (default "2000" (env "PORT")) | quote }} + HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} + PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} TIMEOUT: {{ (default "5000" (env "TIMEOUT")) | quote }} PASSIVE: {{ (default "False" (env "PASSIVE")) | quote }} PUBLISH_CLOCK: {{ (default "True" (env "PUBLISH_CLOCK")) | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index c06ec1c..11b51e0 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -1,5 +1,4 @@ openadservice: - image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.0 args: - /bin/bash - -ic @@ -13,17 +12,16 @@ openadservice: --rtFactor 1.0 \ --waitForEgo env: - CARLA_HOST: carla-simulator - CARLA_PORT: 2000 + CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SCENARIO_DIRECTORY: /scenarios SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 2fd4b97..6f9cdff 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -1,5 +1,4 @@ openadservice: - image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.0 args: - /bin/bash - -ic @@ -14,17 +13,16 @@ openadservice: scenario_runner_path:=${SCENARIO_RUNNER_ROOT} \ scenarios_dir:=${SCENARIOS_DIR} env: - CARLA_HOST: carla-simulator - CARLA_PORT: 2000 + CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SCENARIO_DIRECTORY: /scenarios SCENARIO_MAP: {{ (default (default "" (index .Values.composeEnvironment "MAP")) (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index bf797bd..de3e7a5 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -8,5 +8,17 @@ openadservice: - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini data: | {{ readFile "DefaultEngine.ini" | indent 6 }} + name: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) }} + ports: [] + expose: + - port: {{ ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) }} + targetPort: {{ ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) }} + protocol: TCP + - port: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 1 }} + targetPort: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 1 }} + protocol: TCP + - port: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 2 }} + targetPort: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 2 }} + protocol: TCP x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/environments/base.yaml.gotmpl b/deployments/helmfile/environments/base.yaml.gotmpl index 48431f2..8092c1b 100644 --- a/deployments/helmfile/environments/base.yaml.gotmpl +++ b/deployments/helmfile/environments/base.yaml.gotmpl @@ -1,6 +1,8 @@ # Generated from host-side variables referenced by multiple generated services. # Export a variable before running Helmfile to override its conversion-time value. composeEnvironment: + CARLA_HOST: {{ env "CARLA_HOST" | default "" | quote }} + CARLA_PORT: {{ env "CARLA_PORT" | default "" | quote }} CUSTOM_LANELET: {{ env "CUSTOM_LANELET" | default "" | quote }} CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | default "" | quote }} LOG_LEVEL: {{ env "LOG_LEVEL" | default "" | quote }} diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 5240dad..d0f1cef 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -13,6 +13,11 @@ releases: version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment condition: profileGroups.carla.enabled values: [carla-simulation/carla-ackermann-control/values.yaml.gotmpl] +- name: carla-client + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client + version: 0.1.0-helm + condition: profileGroups.traffic.enabled + values: [carla-simulation/carla-client/values.yaml.gotmpl] - name: carla-control-active-bridge chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4 @@ -23,11 +28,6 @@ releases: version: 1.3.1-main condition: profileGroups.carla.enabled values: [carla-simulation/carla-converter/values.yaml.gotmpl] -- name: carla-environment - chart: oci://REPLACE_ME/carla-scenario-runner-ros - version: REPLACE_ME - condition: profileGroups.traffic.enabled - values: [carla-simulation/carla-environment/values.yaml.gotmpl] - name: carla-manual-control chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.1.0-carla-manual-control-update-deployment @@ -39,13 +39,13 @@ releases: condition: profileGroups.carla.enabled values: [carla-simulation/carla-ros-bridge/values.yaml.gotmpl] - name: carla-scenario-runner-ros-automated-testing - chart: oci://REPLACE_ME/carla-scenario-runner-ros - version: REPLACE_ME + chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros + version: 0.10.0-1.1.0-helm condition: profileGroups.automated-testing.enabled values: [carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] - name: carla-scenario-runner-ros-manual-testing - chart: oci://REPLACE_ME/carla-scenario-runner-ros - version: REPLACE_ME + chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros + version: 0.10.0-1.1.0-helm condition: profileGroups.manual-testing.enabled values: [carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] - name: carla-server From 468ac3189713a244e1d9ce5c32a2478f41e62272 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 10:52:42 +0200 Subject: [PATCH 03/80] cleanup --- .../carla-spawn-objects/values.yaml.gotmpl | 63 +------------------ 1 file changed, 2 insertions(+), 61 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index 5a4a536..f767c2d 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -25,64 +25,5 @@ openadservice: SPAWN_SENSORS_ONLY: {{ (default "False" (env "SPAWN_SENSORS_ONLY")) | quote }} CONTROL_ID: {{ (default "control" (env "CONTROL_ID")) | quote }} volumes: - - mountPath: /config/blueprints/cameras.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"camera_rgb_1280x720_fov110_f2\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_1280x720_fov110_f4\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_2048x768_fov150\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 2048,\n \"image_size_y\": 768,\n \"fov\": 150.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_1920x1080_fov90\",\n \"type\": \"sensor.camera.rgb\",\n \ - \ \"image_size_x\": 1920,\n \"image_size_y\": 1080,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_rgb_400x300_fov90\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 400,\n \"image_size_y\": 300,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_depth_1280x720\",\n \"type\": \"sensor.camera.depth\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_semantic_1280x720\",\n \"type\": \"sensor.camera.semantic_segmentation\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 90.0,\n \"post_process_profile\": \"Town10HD_Opt\"\ - \n },\n {\n \"id\": \"camera_rgb_view\",\n \"type\": \"sensor.camera.rgb\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0},\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_traffic_light_2048x768_fov150\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 2048,\n \"image_size_y\": 768,\n \"fov\": 150.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n },\n {\n \"id\": \"camera_traffic_light_1280x720_fov110\",\n \"type\": \"sensor.camera.rgb\",\n \"image_size_x\": 1280,\n \"image_size_y\": 720,\n \"fov\": 110.0,\n \"post_process_profile\": \"Town10HD_Opt\"\n }\n ]\n}\n" - - mountPath: /config/blueprints/karl.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"karl_rack_lidars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"lidar_front\",\n \"type\": \"blueprint.lidar_aeries_ii\",\n \"spawn_point\": {\"x\": 2.8499, \"y\": 0.6455, \"z\": 0.0614, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -3.4377}\n },\n {\n \"id\": \"lidar_fl\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 2.89, \"y\": 1.444, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 45.0}\n },\n {\n \"id\": \"lidar_fr\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 2.89, \"y\": 0.04, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": -45.0}\n },\n {\n\ - \ \"id\": \"lidar_rr\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 0.04, \"y\": 0.04, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": -135.0}\n },\n {\n \"id\": \"lidar_rl\",\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"spawn_point\": {\"x\": 0.04, \"y\": 1.444, \"z\": 0.1, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 135.0}\n }\n ]\n },\n {\n \"id\": \"karl_rack_cameras\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"camera_front_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.8146, \"y\": 1.4637, \"z\": -0.0013, \"roll\": -0.1166, \"pitch\": 5.9344, \"yaw\": 45.1565}\n },\n \ - \ {\n \"id\": \"camera_front_center\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.9592, \"y\": 0.7903, \"z\": 0.0061, \"roll\": 0.1078, \"pitch\": 5.5148, \"yaw\": 0.3433}\n },\n {\n \"id\": \"camera_front_right\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"spawn_point\": {\"x\": 2.9388, \"y\": 0.0951, \"z\": 0.0067, \"roll\": 0.1934, \"pitch\": 5.3588, \"yaw\": -43.6624}\n },\n {\n \"id\": \"camera_mid_right\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 1.685, \"y\": 0.0027, \"z\": 0.0021, \"roll\": 0.3284, \"pitch\": 20.9842, \"yaw\": -89.2525}\n },\n {\n \"id\": \"camera_rear_right\",\n \ - \ \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 0.1231, \"y\": 0.0352, \"z\": -0.012, \"roll\": -0.1653, \"pitch\": 20.5007, \"yaw\": -136.7474}\n },\n {\n \"id\": \"camera_rear_center\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": -0.0226, \"y\": 0.7404, \"z\": 0.105, \"roll\": -0.2975, \"pitch\": 0.3582, \"yaw\": -179.7672}\n },\n {\n \"id\": \"camera_rear_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"spawn_point\": {\"x\": 0.0601, \"y\": 1.3474, \"z\": 0.0082, \"roll\": 0.1775, \"pitch\": 20.3891, \"yaw\": 135.3664}\n },\n {\n \"id\": \"camera_mid_left\",\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \ - \ \"spawn_point\": {\"x\": 1.5602, \"y\": 1.4506, \"z\": -0.0322, \"roll\": 1.0142, \"pitch\": 19.9258, \"yaw\": 90.6135}\n }\n ]\n },\n {\n \"id\": \"karl_rack_radars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"radar_fl\",\n \"type\": \"blueprint.radar_short_range\",\n \"spawn_point\": {\"x\": 2.0505, \"y\": 0.86, \"z\": 0.73, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"id\": \"radar_f\",\n \"type\": \"blueprint.radar_mid_range\",\n \"spawn_point\": {\"x\": 2.3105, \"y\": -0.3, \"z\": 0.25, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"id\": \"radar_fr\",\n \"type\": \"blueprint.radar_short_range\",\n \"spawn_point\"\ - : {\"x\": 2.0505, \"y\": -0.86, \"z\": 0.73, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -90.0}\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/blueprints/lidars.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"lidar_ouster_os1_128\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 75,\n \"channels\": 128,\n \"points_per_second\": 2621440,\n \"upper_fov\": 22.5,\n \"lower_fov\": -22.5,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_ouster_os1_64\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 75,\n \"channels\": 64,\n \"points_per_second\": 1310720,\n \"upper_fov\": 22.5,\n \"lower_fov\": -22.5,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_ouster_os1_32\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 50,\n \"channels\": 32,\n \"points_per_second\": 327680,\n \"upper_fov\"\ - : 15.0,\n \"lower_fov\": -25.0,\n \"rotation_frequency\": 20,\n \"noise_stddev\": 0.0\n },\n {\n \"id\": \"lidar_aeries_ii\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 500,\n \"channels\": 300,\n \"points_per_second\": 2048000,\n \"upper_fov\": 15.0,\n \"lower_fov\": -15.0,\n \"horizontal_fov\": 120.0,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n },\n {\n \"id\": \"lidar_velodyne_vlp16\",\n \"type\": \"sensor.lidar.ray_cast\",\n \"range\": 100,\n \"channels\": 16,\n \"points_per_second\": 600000,\n \"upper_fov\": 15.0,\n \"lower_fov\": -15.0,\n \"rotation_frequency\": 20,\n \"sensor_tick\": 0.1\n }\n ]\n}\n" - - mountPath: /config/blueprints/props.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"beacon\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.beacon\",\n \"children\": []\n },\n {\n \"id\": \"beaconwithlight\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.beaconwithlight\",\n \"children\": []\n },\n {\n \"id\": \"roadworkbarrier\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.roadworkbarrier\",\n \"children\": []\n }\n ]\n}\n" - - mountPath: /config/blueprints/radars.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"radar_long_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 30.0,\n \"vertical_fov\": 10.0,\n \"range\": 200.0\n },\n {\n \"id\": \"radar_mid_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 110.0,\n \"vertical_fov\": 23.0\n },\n {\n \"id\": \"radar_short_range\",\n \"type\": \"sensor.other.radar\",\n \"horizontal_fov\": 130.0,\n \"vertical_fov\": 14.0\n }\n ]\n}\n" - - mountPath: /config/blueprints/risus.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"srisu\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.srisu\",\n \"children\": [\n {\n \"id\": \"sensor_platform\",\n \"type\": \"blueprint.srisu_sensor_platform\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 2.0\n }\n ]\n },\n {\n \"id\": \"srisu_no_sensor_platform\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.srisu\"\ - ,\n \"children\": [\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 6.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 2.0\n }\n ]\n },\n {\n \"id\": \"srisu_sensor_platform\",\n \"type\": \"group\",\n \"children\": [\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"id\": \"camera_left\",\n \"spawn_point\": {\"x\": 0.3, \"y\": 0.0, \"z\": -0.7, \"roll\": 0.0, \"pitch\": 25.0, \"yaw\": 35.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f2\",\n \"id\": \"camera_right\",\n \"spawn_point\"\ - : {\"x\": 0.3, \"y\": 0.0, \"z\": -0.7, \"roll\": 0.0, \"pitch\": 25.0, \"yaw\": -35.0}\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar_top\",\n \"spawn_point\": {\"x\": 0.41, \"y\": 0.04, \"z\": 0.17, \"roll\": 0.0, \"pitch\": 27.54, \"yaw\": 0.0},\n \"range\": 120.0\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar_bottom\",\n \"spawn_point\": {\"x\": 0.14, \"y\": 0.01, \"z\": -0.14, \"roll\": 0.0, \"pitch\": 41.36, \"yaw\": 0.0},\n \"range\": 120.0\n }\n ]\n },\n {\n \"id\": \"mrisu\",\n \"type\": \"group\",\n \"physical_object\": \"static.prop.mrisu\",\n \"children\":\n [\n {\n \"id\": \"sensor_platform\"\ - ,\n \"type\": \"blueprint.mrisu_sensor_platform\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.69, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.ideal_objects\",\n \"id\": \"v2x_objectlist\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0},\n \"range\": 50,\n \"hit_point_blanking_radius\": 1.0\n }\n ]\n },\n {\n \"id\": \"mrisu_sensor_platform\",\n \"type\": \"group\",\n \"children\": \n [\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"id\": \"camera_left\",\n \"spawn_point\": {\"x\": 0.075, \"y\": 0.098, \"z\": 0.071, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\"\ - : 35.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_1280x720_fov110_f4\",\n \"id\": \"camera_right\",\n \"spawn_point\": {\"x\": 0.075, \"y\": -0.0915, \"z\": 0.071, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -35.0}\n },\n {\n \"type\": \"blueprint.lidar_ouster_os1_128\",\n \"id\": \"lidar\",\n \"spawn_point\": {\"x\": 0.001, \"y\": 0.0, \"z\": 0.161, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 180.0}\n }\n ]\n }\n ]\n}" - - mountPath: /config/blueprints/shuttle.json - data: "{\n \"blueprints\": [\n {\n \"id\": \"shuttle_lidars\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"lidar_front_left\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": 2.235, \"y\": 0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 28.499}\n },\n {\n \"id\": \"lidar_front_right\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": 2.235, \"y\": -0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -28.499}\n },\n {\n \"id\": \"lidar_rear_left\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": -2.235, \"y\": 0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 151.501}\n \ - \ },\n {\n \"id\": \"lidar_rear_right\",\n \"type\": \"blueprint.lidar_ouster_os1_32\",\n \"spawn_point\": {\"x\": -2.235, \"y\": -0.980, \"z\": 1.739, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -151.501}\n }\n ]\n },\n {\n \"id\": \"shuttle_cameras\",\n \"type\": \"group\",\n \"children\": [\n {\n \"id\": \"camera_front_left_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.333, \"y\": 0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -15.000}\n },\n {\n \"id\": \"camera_front_right_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0,\ - \ \"yaw\": 15.000}\n },\n {\n \"id\": \"camera_rear_left_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.333, \"y\": 0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -165.000}\n },\n {\n \"id\": \"camera_rear_right_1\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 165.000}\n },\n {\n \"id\": \"camera_front_left_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.260, \"y\": 0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 105.000}\n },\n {\n \"id\": \"camera_front_right_2\"\ - ,\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": 2.260, \"y\": -0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -105.000}\n },\n {\n \"id\": \"camera_rear_left_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.260, \"y\": 0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 75.000}\n },\n {\n \"id\": \"camera_rear_right_2\",\n \"type\": \"blueprint.camera_rgb_2048x768_fov150\",\n \"spawn_point\": {\"x\": -2.260, \"y\": -0.978, \"z\": 0.855, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": -75.000}\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/global-sensors.json - data: "{\n \"objects\": [\n {\n \"type\": \"sensor.pseudo.actor_list\",\n \"id\": \"actor_list\"\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.pseudo.markers\",\n \"id\": \"markers\"\n },\n {\n \"type\": \"sensor.pseudo.opendrive_map\",\n \"id\": \"carla_map\"\n },\n {\n \"type\": \"sensor.pseudo.traffic_lights\",\n \"id\": \"traffic_lights\"\n }\n ]\n}\n" - - mountPath: /config/objects/karl-all.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.karl_rack_lidars\",\n \"id\": \"karl_rack_lidars\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.karl_rack_cameras\",\n \"id\": \"karl_rack_cameras\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.karl_rack_radars\",\n \"id\": \"karl_rack_radars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n \ - \ {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\"\n },\n {\n\ - \ \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/karl-basic.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.karl_rack_lidars\",\n \"id\": \"karl_rack_lidars\",\n \"spawn_point\": {\"x\": -2.1255, \"y\": -0.695, \"z\": 1.91, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_traffic_light_1280x720_fov110\",\n \"id\": \"karl_rack_cameras/camera_front_center\",\n \"spawn_point\": {\"x\": 0.8337, \"y\": 0.0953, \"z\": 1.9161, \"roll\": 0.1078, \"pitch\": 5.5148, \"yaw\"\ - : 0.3433}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\"\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n \ - \ },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/karl-minimal.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.karl\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n \ - \ },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/props.json - data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.beacon\",\n \"id\": \"beacon1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 173.0, \"z\": 254.8, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"type\": \"blueprint.beaconwithlight\",\n \"id\": \"beaconwithlight1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 168.5, \"z\": 254.8, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n },\n {\n \"type\": \"blueprint.roadworkbarrier\",\n \"id\": \"roadworkbarrier1\",\n \"spawn_point\": {\"x\": -33.0, \"y\": 170.8, \"z\": 255.5, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 90.0}\n }\n ]\n}\n" - - mountPath: /config/objects/rita-all.json - data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu1\",\n \"spawn_point\": {\n \"lat\": 50.779692,\n \"lon\": 6.050775,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -109.93\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu2\",\n \"spawn_point\": {\n \"lat\": 50.779457,\n \"lon\": 6.050782,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 117.76\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu3\",\n \"spawn_point\": {\n \"lat\": 50.779446,\n \"lon\": 6.050505,\n \"alt_above_ground\": 0.0,\n \ - \ \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 42.48\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu4\",\n \"spawn_point\": {\n \"lat\": 50.779656,\n \"lon\": 6.050454,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -32.30\n }\n }\n ]\n}" - - mountPath: /config/objects/rita-minimal.json - data: "{\n \"objects\": [\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu1\",\n \"spawn_point\": {\n \"lat\": 50.779692,\n \"lon\": 6.050775,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -109.93\n }\n },\n {\n \"type\": \"blueprint.srisu\",\n \"id\": \"srisu2\",\n \"spawn_point\": {\n \"lat\": 50.779457,\n \"lon\": 6.050782,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 117.76\n }\n },\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu3\",\n \"spawn_point\": {\n \"lat\": 50.779446,\n \"lon\": 6.050505,\n \ - \ \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": 42.48\n }\n },\n {\n \"type\": \"blueprint.srisu_no_sensor_platform\",\n \"id\": \"srisu4\",\n \"spawn_point\": {\n \"lat\": 50.779656,\n \"lon\": 6.050454,\n \"alt_above_ground\": 0.0,\n \"roll\": 0.0,\n \"pitch\": 0.0,\n \"yaw\": -32.30\n }\n }\n ]\n}" - - mountPath: /config/objects/shuttle-all.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.shuttle_lidars\",\n \"id\": \"shuttle_lidars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.shuttle_cameras\",\n \"id\": \"shuttle_cameras\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \ - \ \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n\ - \ \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/shuttle-basic.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.shuttle_lidars\",\n \"id\": \"shuttle_lidars\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 0.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"blueprint.camera_traffic_light_2048x768_fov150\",\n \"id\": \"shuttle_cameras/camera_front_right_1\",\n \"spawn_point\": {\"x\": 2.333, \"y\": -0.905, \"z\": 0.910, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 15.000}\n \ - \ },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"\ - yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" - - mountPath: /config/objects/shuttle-minimal.json - data: "{\n \"objects\": [\n {\n \"type\": \"vehicle.ika.shuttle\",\n \"id\": \"ego_vehicle\",\n \"sensors\": [\n {\n \"type\": \"blueprint.camera_rgb_view\",\n \"id\": \"rgb_view\",\n \"spawn_point\": {\"x\": -5.0, \"y\": 0.0, \"z\": 3.5, \"roll\": 0.0, \"pitch\": 20.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.other.tf\",\n \"id\": \"tf\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n },\n {\n \"type\": \"sensor.pseudo.objects\",\n \"id\": \"objects\"\n },\n {\n \"type\": \"sensor.other.odometry\",\n \"id\": \"odometry\",\n \"ignore_tilt\": true,\n \"ignore_altitude\": true\n \ - \ },\n {\n \"type\": \"sensor.other.imu\",\n \"id\": \"imu\",\n \"ignore_tilt\": true\n },\n {\n \"type\": \"sensor.other.gnss\",\n \"id\": \"gnss\",\n \"spawn_point\": {\"x\": 0.0, \"y\": 0.0, \"z\": 1.0, \"roll\": 0.0, \"pitch\": 0.0, \"yaw\": 0.0}\n },\n {\n \"type\": \"sensor.pseudo.speedometer\",\n \"id\": \"speedometer\"\n },\n {\n \"type\": \"actor.pseudo.control\",\n \"id\": \"control\"\n }\n ]\n }\n ]\n}\n" + - mountPath: /config + hostPath: /work/geller/openads-project/openadsim/carla-simulation/config/carla_ros_bridge From f66427af399a1bdc6d3d661e232ac36efa167863 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 11:14:29 +0200 Subject: [PATCH 04/80] update monitoring and set service names --- .gitignore | 1 + .../carla-control-active-bridge/values.yaml.gotmpl | 2 +- .../values.yaml.gotmpl | 2 +- .../values.yaml.gotmpl | 2 +- .../carla-simulation/carla-spawn-objects/values.yaml.gotmpl | 2 +- deployments/helmfile/helmfile.yaml | 6 +++--- .../essentials/robot-state-publisher/values.yaml.gotmpl | 1 + .../openadstack/monitoring/bag-recorder/values.yaml.gotmpl | 3 ++- .../openadstack/monitoring/rviz-carla/values.yaml.gotmpl | 3 ++- 9 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..285babc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +distributed-testing-main-dynamic-helmfiles-simulation-platform \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl index 41c31af..9a016e8 100644 --- a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl @@ -1,5 +1,5 @@ openadservice: - image: ghcr.io/openads-project/monitoring:v1.0.0 + name: carla-control-active-bridge args: - ros2 - run diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 11b51e0..e4a6cba 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -27,6 +27,6 @@ openadservice: data: | {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /carla-simulation/scenarios - hostPath: /work/geller/openads-project/openadsim/carla-simulation/scenarios + hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 6f9cdff..34087bc 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -28,6 +28,6 @@ openadservice: data: | {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /carla-simulation/scenarios - hostPath: /work/geller/openads-project/openadsim/carla-simulation/scenarios + hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index f767c2d..cb9983c 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -26,4 +26,4 @@ openadservice: CONTROL_ID: {{ (default "control" (env "CONTROL_ID")) | quote }} volumes: - mountPath: /config - hostPath: /work/geller/openads-project/openadsim/carla-simulation/config/carla_ros_bridge + hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index d0f1cef..82e7ce7 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -76,7 +76,7 @@ releases: values: [openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl] - name: robot-state-publisher chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 1.0.0-main + version: 26.9.4-main values: [openadstack/essentials/robot-state-publisher/values.yaml.gotmpl] - name: triton-server chart: oci://ghcr.io/openads-project/openads-helm/triton-server @@ -93,12 +93,12 @@ releases: values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] - name: bag-recorder chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 1.0.0-main + version: 26.9.4-main condition: profileGroups.bag-recording.enabled values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] - name: rviz-carla chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 1.0.0-main + version: 26.9.4-main condition: profileGroups.carla.enabled values: [openadstack/monitoring/rviz-carla/values.yaml.gotmpl] - name: point-cloud-fusion diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 920ada4..8463881 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: robot-state-publisher args: - {{ "/bin/bash" | quote }} - {{ "-ic" | quote }} diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index a0e434d..4ed72eb 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: bag-recorder args: - /bin/bash - -ic @@ -30,4 +31,4 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /tmp/rosbags - hostPath: /work/geller/openads-project/openadsim/openadstack/monitoring/volume + hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 7fa46f4..9dd4459 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: rviz-carla args: - bash - -ic @@ -15,7 +16,7 @@ openadservice: LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} volumes: - mountPath: /docker-ros/ws/monitoring-volume - hostPath: /work/geller/openads-project/openadsim/openadstack/monitoring/volume + hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume - mountPath: /mesh image: ghcr.io/openads-project/openads-assets:v1.0.0 imagePath: mesh From 7eb303b03041f815738805b2bc061ebe098401f4 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 11:20:03 +0200 Subject: [PATCH 05/80] update names --- .../values.yaml.gotmpl | 1 + .../carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl | 1 + .../carla-simulation-adapter/values.yaml.gotmpl | 1 + .../localization/lanelet2_map_server/values.yaml.gotmpl | 2 +- .../values.yaml.gotmpl | 1 + .../values.yaml.gotmpl | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index e4a6cba..d56bf85 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: carla-scenario-runner-ros-automated-testing args: - /bin/bash - -ic diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 34087bc..db9f3f1 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: carla-scenario-runner-ros-manual-testing args: - /bin/bash - -ic diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index 6c45f1b..8459182 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: carla-simulation-adapter env: NAMESPACE: /carla INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 3b7bee2..dd0ad67 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -2,7 +2,7 @@ openadservice: args: - /bin/bash - -ic - - |- + - | ros2 run lanelet2_map_server lanelet2_map_server --ros-args \ -r __ns:=${NAMESPACE} \ -r __node:=${NAME} \ diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index bdd2f81..c4a8d8f 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: lanelet2-object-list-prediction-no-perception args: - /bin/bash - -ic diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index 98d1fe4..c971251 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: lanelet2-object-list-prediction-perception args: - /bin/bash - -ic From 2e318d5f3d4c626f4d3a4927543df0cde8dcc7b1 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 15:08:45 +0200 Subject: [PATCH 06/80] update params --- .../carla-simulation/carla-ackermann-control/values.yaml.gotmpl | 1 + .../carla-simulation-adapter/values.yaml.gotmpl | 1 + .../control/ackermann_trajectory_control/values.yaml.gotmpl | 1 + .../localization/lanelet2_map_server/values.yaml.gotmpl | 2 +- .../perception/point_cloud_fusion/values.yaml.gotmpl | 1 + .../perception/point_cloud_object_detection/values.yaml.gotmpl | 1 + .../planning/lanelet2_route_planning/values.yaml.gotmpl | 1 + .../openadstack/planning/simple_planner/values.yaml.gotmpl | 1 + .../planning/trajectory_optimization/values.yaml.gotmpl | 1 + .../values.yaml.gotmpl | 1 + .../values.yaml.gotmpl | 1 + 11 files changed, 11 insertions(+), 1 deletion(-) diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index e7c43ce..7833ceb 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -2,6 +2,7 @@ openadservice: image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci env: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls + PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index 8459182..66809cb 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -18,6 +18,7 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + PARAMS: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml LOAD_LANELET_MAP: {{ (default "true" (default "true" (env "LANELET_RELOAD"))) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl index 041b586..bd0531b 100644 --- a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -4,6 +4,7 @@ openadservice: EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data LAT_CONTROL_ACTIVE_TOPIC: /control/active LON_CONTROL_ACTIVE_TOPIC: /control/active + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index dd0ad67..2104b85 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -28,7 +28,7 @@ openadservice: USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} + PARAMS: /docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml volumes: - mountPath: /data/maps image: ghcr.io/openads-project/lanelet2-maps:v1.0.4 diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl index d4aad7b..22f853d 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -14,6 +14,7 @@ openadservice: gpu: true env: NAMESPACE: /perception + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl index 65f628e..912edf9 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -24,6 +24,7 @@ openadservice: gpu: true env: NAMESPACE: /perception + PARAMS: /params.yml POINT_CLOUD_TOPIC: /perception/point_cloud_fusion/point_cloud RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl index 102f122..cc1e153 100644 --- a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -2,6 +2,7 @@ openadservice: env: NAMESPACE: /planning EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl index e818ca1..774b3f5 100644 --- a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -23,6 +23,7 @@ openadservice: NAMESPACE: /planning EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} ROUTE_TOPIC: /planning/lanelet2_route_planning/route diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index 6d80ee4..cc794ee 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -25,6 +25,7 @@ openadservice: EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data OBJECT_CIRCLES_TOPIC: ~/visualization/object_circles OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list + PARAMS: /params.yml REFERENCE_TRAJECTORY_TOPIC: /planning/simple_planner/trajectory RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index c4a8d8f..7963d2b 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -14,6 +14,7 @@ openadservice: object_list_topic:=${OBJECT_LIST_TOPIC} env: NAMESPACE: /understanding + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index c971251..01cff33 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -14,6 +14,7 @@ openadservice: object_list_topic:=${OBJECT_LIST_TOPIC} env: NAMESPACE: /understanding + PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn From 954c74b472e391e0d132cc93119b5180306cf13f Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 15:15:46 +0200 Subject: [PATCH 07/80] temporary fix image volumes --- .../carla-simulation/carla-converter/values.yaml.gotmpl | 1 + .../carla-simulation/ros-middleware-bridge/values.yaml.gotmpl | 1 + .../essentials/robot-state-publisher/values.yaml.gotmpl | 3 +-- .../localization/lanelet2_map_server/values.yaml.gotmpl | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl index 1fe6ff6..68925ba 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -7,6 +7,7 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + PARAMS: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index b057222..079828f 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -6,6 +6,7 @@ openadservice: USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + PARAMS: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml SIDE_A_NAME: {{ (default "bridge_fast" (env "SIDE_A_NAME")) | quote }} SIDE_A_RMW_IMPLEMENTATION: {{ (default "rmw_fastrtps_cpp" (env "SIDE_A_RMW_IMPLEMENTATION")) | quote }} SIDE_A_TX_PORT: {{ (default "17001" (env "SIDE_A_TX_PORT")) | quote }} diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 8463881..0a3efa8 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -12,5 +12,4 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /urdf - image: ghcr.io/openads-project/openads-assets:v1.0.0 - imagePath: urdf + hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/openads-assets-v1.0.0 diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 2104b85..41148df 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -31,5 +31,4 @@ openadservice: PARAMS: /docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml volumes: - mountPath: /data/maps - image: ghcr.io/openads-project/lanelet2-maps:v1.0.4 - imagePath: data/maps + hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/lanelet2-maps-v1.0.4 From 36d3a608d0a8d94067fbf00694d945d91ddb87ba Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 15:37:16 +0200 Subject: [PATCH 08/80] clean default "/dev/null" | --- .../carla-simulation/carla-manual-control/values.yaml.gotmpl | 2 +- .../carla-simulation/carla-ros-bridge/values.yaml.gotmpl | 2 +- .../values.yaml.gotmpl | 2 +- .../carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl | 2 +- .../helmfile/carla-simulation/carla-server/values.yaml.gotmpl | 2 +- .../openadstack/monitoring/rviz-carla/values.yaml.gotmpl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index 2f5bfde..5196b74 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -11,4 +11,4 @@ openadservice: WINDOW_WIDTH: {{ (default "800" (env "WINDOW_WIDTH")) | quote }} WINDOW_HEIGHT: {{ (default "600" (env "WINDOW_HEIGHT")) | quote }} x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 56743e1..64ad379 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -33,4 +33,4 @@ openadservice: WAYPOINTS_SEARCH_DISTANCE: {{ (default "1.0" (env "WAYPOINTS_SEARCH_DISTANCE")) | quote }} LANE_WAYPOINTS_COUNT: {{ (default "10" (env "LANE_WAYPOINTS_COUNT")) | quote }} x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index d56bf85..182afba 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -30,4 +30,4 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index db9f3f1..4eec7cb 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -31,4 +31,4 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index de3e7a5..b8b011d 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -21,4 +21,4 @@ openadservice: targetPort: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 2 }} protocol: TCP x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 9dd4459..4bdbae9 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -24,4 +24,4 @@ openadservice: data: | {{ readFile "carla.rviz" | indent 6 }} x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} From d3b279d78bd61b62ba3909568daad97e873552ed Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 15:49:19 +0200 Subject: [PATCH 09/80] update depends on --- .gitignore | 3 ++- TODO | 4 ++++ .../ros-middleware-bridge/values.yaml.gotmpl | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 TODO diff --git a/.gitignore b/.gitignore index 285babc..2c8ebb4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -distributed-testing-main-dynamic-helmfiles-simulation-platform \ No newline at end of file +distributed-testing-main-dynamic-helmfiles-simulation-platform +.runtime \ No newline at end of file diff --git a/TODO b/TODO new file mode 100644 index 0000000..06339c7 --- /dev/null +++ b/TODO @@ -0,0 +1,4 @@ +- check prefix + zenoh router + carla-server +- remove gitignore \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index 079828f..ec51877 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -18,3 +18,8 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 From 9ca627c2856594141e6f5a760dbde764537d1d9c Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 10 Sep 2026 16:15:00 +0200 Subject: [PATCH 10/80] update values --- .../carla-ackermann-control/values.yaml.gotmpl | 5 +++++ .../carla-simulation/carla-client/values.yaml.gotmpl | 3 +++ .../carla-control-active-bridge/values.yaml.gotmpl | 3 +++ .../carla-simulation/carla-converter/values.yaml.gotmpl | 7 ++++++- .../carla-manual-control/values.yaml.gotmpl | 5 +++++ .../carla-simulation/carla-ros-bridge/values.yaml.gotmpl | 5 +++++ .../values.yaml.gotmpl | 5 +++++ .../values.yaml.gotmpl | 5 +++++ .../carla-simulation/carla-server/values.yaml.gotmpl | 3 +++ .../carla-simulation-adapter/values.yaml.gotmpl | 5 ++++- .../carla-spawn-objects/values.yaml.gotmpl | 5 +++++ .../ros-middleware-bridge/values.yaml.gotmpl | 2 +- .../ackermann_trajectory_control/values.yaml.gotmpl | 3 +++ .../essentials/robot-state-publisher/values.yaml.gotmpl | 3 +++ .../essentials/triton-server/values.yaml.gotmpl | 3 +++ .../localization/lanelet2_map_server/values.yaml.gotmpl | 5 ++++- .../openadstack/monitoring/bag-recorder/values.yaml.gotmpl | 3 +++ .../openadstack/monitoring/rviz-carla/values.yaml.gotmpl | 3 +++ .../perception/point_cloud_fusion/values.yaml.gotmpl | 3 +++ .../point_cloud_object_detection/values.yaml.gotmpl | 5 +++++ .../planning/lanelet2_route_planning/values.yaml.gotmpl | 3 +++ .../openadstack/planning/simple_planner/values.yaml.gotmpl | 3 +++ .../planning/trajectory_optimization/values.yaml.gotmpl | 3 +++ .../autoware_multi_object_tracker/values.yaml.gotmpl | 3 +++ .../values.yaml.gotmpl | 3 +++ .../values.yaml.gotmpl | 3 +++ 26 files changed, 95 insertions(+), 4 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index 7833ceb..c3726a4 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -15,3 +15,8 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl index dc0e37c..2209234 100644 --- a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl @@ -13,3 +13,6 @@ openadservice: - mountPath: /set_environment.py data: | {{ readFile "set_environment.py" | indent 6 }} + dependsOn: + - host: carla-server + port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl index 9a016e8..1410ad8 100644 --- a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl @@ -16,3 +16,6 @@ openadservice: ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl index 68925ba..1bcb255 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -7,7 +7,12 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - PARAMS: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml + PARAMS: {{ (default "/docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml" (env "PARAMS")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index 5196b74..ef811e7 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -10,5 +10,10 @@ openadservice: WIRELESS_CONTROLLER: {{ (default "False" (env "WIRELESS_CONTROLLER")) | quote }} WINDOW_WIDTH: {{ (default "800" (env "WINDOW_WIDTH")) | quote }} WINDOW_HEIGHT: {{ (default "600" (env "WINDOW_HEIGHT")) | quote }} + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 64ad379..5b8690e 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -32,5 +32,10 @@ openadservice: INTEGRATE_ALL_JUNCTIONS: {{ (default "False" (env "INTEGRATE_ALL_JUNCTIONS")) | quote }} WAYPOINTS_SEARCH_DISTANCE: {{ (default "1.0" (env "WAYPOINTS_SEARCH_DISTANCE")) | quote }} LANE_WAYPOINTS_COUNT: {{ (default "10" (env "LANE_WAYPOINTS_COUNT")) | quote }} + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 182afba..856db7b 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -29,5 +29,10 @@ openadservice: {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 4eec7cb..2e3ce3b 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -30,5 +30,10 @@ openadservice: {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index b8b011d..9b88bce 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -8,6 +8,9 @@ openadservice: - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini data: | {{ readFile "DefaultEngine.ini" | indent 6 }} + dependsOn: + - host: zenoh-router + port: 7447 name: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) }} ports: [] expose: diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index 66809cb..de9a9da 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -18,8 +18,11 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - PARAMS: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml + PARAMS: {{ (default "/docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml" (env "PARAMS")) | quote }} LOAD_LANELET_MAP: {{ (default "true" (default "true" (env "LANELET_RELOAD"))) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index cb9983c..fbee3a4 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -27,3 +27,8 @@ openadservice: volumes: - mountPath: /config hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index ec51877..e3f3c30 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -6,7 +6,7 @@ openadservice: USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - PARAMS: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml + PARAMS: {{ (default "/docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml" (env "PARAMS")) | quote }} SIDE_A_NAME: {{ (default "bridge_fast" (env "SIDE_A_NAME")) | quote }} SIDE_A_RMW_IMPLEMENTATION: {{ (default "rmw_fastrtps_cpp" (env "SIDE_A_RMW_IMPLEMENTATION")) | quote }} SIDE_A_TX_PORT: {{ (default "17001" (env "SIDE_A_TX_PORT")) | quote }} diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl index bd0531b..6300a15 100644 --- a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -20,3 +20,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 0a3efa8..008b18e 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -13,3 +13,6 @@ openadservice: volumes: - mountPath: /urdf hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/openads-assets-v1.0.0 + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl index 218d664..d9c1155 100644 --- a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl @@ -5,3 +5,6 @@ openadservice: - mountPath: /models image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 imagePath: models + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 41148df..7d34841 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -28,7 +28,10 @@ openadservice: USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - PARAMS: /docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml + PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} volumes: - mountPath: /data/maps hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/lanelet2-maps-v1.0.4 + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index 4ed72eb..8a7466b 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -32,3 +32,6 @@ openadservice: volumes: - mountPath: /tmp/rosbags hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 4bdbae9..8ac250e 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -23,5 +23,8 @@ openadservice: - mountPath: /conf.rviz data: | {{ readFile "carla.rviz" | indent 6 }} + dependsOn: + - host: zenoh-router + port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl index 22f853d..26b276f 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -25,3 +25,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl index 912edf9..b7a6231 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -40,3 +40,8 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: triton-server + port: 8000 + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl index cc1e153..3801f4a 100644 --- a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -12,3 +12,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl index 774b3f5..3a0ac55 100644 --- a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -35,3 +35,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index cc794ee..28ae923 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -39,3 +39,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl index 6d5de91..096e944 100644 --- a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl @@ -27,3 +27,6 @@ openadservice: INPUT_DETECTION12_CHANNEL: {{ (default "none" (env "INPUT_DETECTION12_CHANNEL")) | quote }} PUBLISH_MERGED_OBJECTS: {{ (default "false" (env "PUBLISH_MERGED_OBJECTS")) | quote }} EGO_SOURCE: {{ (default "tf" (env "EGO_SOURCE")) | quote }} + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index 7963d2b..8540020 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -25,3 +25,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index 01cff33..6cd04fa 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -25,3 +25,6 @@ openadservice: rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml + dependsOn: + - host: zenoh-router + port: 7447 From 536c03c3ec433e279efc51b6f692b1295a453988 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 17 Sep 2026 16:15:42 +0200 Subject: [PATCH 11/80] do not embedd variable defaults from .env --- deployments/helmfile/CMD.md | 6 ++-- .../values.yaml.gotmpl | 12 ++++++- .../carla-manual-control/values.yaml.gotmpl | 11 ++++++- .../carla-ros-bridge/values.yaml.gotmpl | 33 +++++++++++++++++++ .../values.yaml.gotmpl | 2 +- .../carla-spawn-objects/values.yaml.gotmpl | 6 ++-- .../helmfile/environments/base.yaml.gotmpl | 24 +++++++------- .../environments/profiles.yaml.gotmpl | 11 +++---- .../values.yaml.gotmpl | 2 +- 9 files changed, 79 insertions(+), 28 deletions(-) diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index 8b2c436..e4ec96c 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -2,9 +2,9 @@ Run these commands from the OpenADSim repository root. -Regenerate the supported Helmfile release universe. `COMPOSE_PROFILES` from -`.env` determines which releases are enabled by default. GUI and SUMO are not -exported yet: +Regenerate the supported Helmfile release universe. Host environment values +are evaluated when Helmfile runs and are not embedded during generation. GUI +and SUMO are not exported yet: ```sh ./utils/compose-to-k8s/compose_to_helmfile.py \ diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index c3726a4..be9d40d 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -1,15 +1,25 @@ openadservice: image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci + args: + - /bin/bash + - -ic + - |- + ros2 launch carla_ackermann_control carla_ackermann_control.launch.py \ + params:=${PARAMS} \ + role_name:=${ROLE_NAME} \ + control_loop_rate:=${CONTROL_LOOP_RATE} \ + ${ACKERMANN_COMMAND_TOPIC:+ackermann_command_topic:=${ACKERMANN_COMMAND_TOPIC}} \ + ${VEHICLE_CONTROL_COMMAND_TOPIC:+vehicle_control_command_topic:=${VEHICLE_CONTROL_COMMAND_TOPIC}} env: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} CONTROL_LOOP_RATE: {{ (default "0.05" (env "CONTROL_LOOP_RATE")) | quote }} rosParamFileData: | diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index ef811e7..4c0c458 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -1,11 +1,20 @@ openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch carla_manual_control carla_manual_control.launch.py \ + role_name:=${ROLE_NAME} \ + wireless_controller:=${WIRELESS_CONTROLLER} \ + window_width:=${WINDOW_WIDTH} \ + window_height:=${WINDOW_HEIGHT} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} WIRELESS_CONTROLLER: {{ (default "False" (env "WIRELESS_CONTROLLER")) | quote }} WINDOW_WIDTH: {{ (default "800" (env "WINDOW_WIDTH")) | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 5b8690e..81a4db9 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -1,4 +1,37 @@ openadservice: + args: + - /bin/bash + - -ic + - |- + ros2 launch carla_ros_bridge carla_ros_bridge.launch.py \ + log_level:=${LOG_LEVEL} \ + use_sim_time:=${USE_SIM_TIME} \ + host:=${HOST} \ + port:=${PORT} \ + timeout:=${TIMEOUT} \ + passive:=${PASSIVE} \ + publish_clock:=${PUBLISH_CLOCK} \ + synchronous_mode:=${SYNCHRONOUS_MODE} \ + synchronous_mode_wait_for_vehicle_control_command:=${SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND} \ + fixed_delta_seconds:=${FIXED_DELTA_SECONDS} \ + start_unix_time_stamp:=${START_UNIX_TIME_STAMP} \ + ${TOWN:+town:=${TOWN}} \ + rt_factor:=${RT_FACTOR} \ + register_all_sensors:=${REGISTER_ALL_SENSORS} \ + native_interface:=${NATIVE_INTERFACE} \ + ego_vehicle_role_name:=${EGO_VEHICLE_ROLE_NAME} \ + publish_static_vehicles:=${PUBLISH_STATIC_VEHICLES} \ + publish_compressed_images:=${PUBLISH_COMPRESSED_IMAGES} \ + ignore_altitude:=${IGNORE_ALTITUDE} \ + ignore_tilt:=${IGNORE_TILT} \ + ${GEOREFERENCE_SUBSTITUTION:+georeference_substitution:=${GEOREFERENCE_SUBSTITUTION}} \ + grid_convergence:=${GRID_CONVERGENCE} \ + publish_etsi_messages:=${PUBLISH_ETSI_MESSAGES} \ + mapem_timer_period:=${MAPEM_TIMER_PERIOD} \ + spatem_timer_period:=${SPATEM_TIMER_PERIOD} \ + integrate_all_junctions:=${INTEGRATE_ALL_JUNCTIONS} \ + waypoints_search_distance:=${WAYPOINTS_SEARCH_DISTANCE} \ + lane_waypoints_count:=${LANE_WAYPOINTS_COUNT} env: IGNORE_ALTITUDE: true RMW_IMPLEMENTATION: rmw_zenoh_cpp diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index de9a9da..7edfc58 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -19,7 +19,7 @@ openadservice: LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} PARAMS: {{ (default "/docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml" (env "PARAMS")) | quote }} - LOAD_LANELET_MAP: {{ (default "true" (default "true" (env "LANELET_RELOAD"))) | quote }} + LOAD_LANELET_MAP: {{ (default "true" (env "LANELET_RELOAD")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index fbee3a4..0e65584 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -14,11 +14,11 @@ openadservice: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SENSORS: {{ (default "" (default "global-sensors.json,karl-minimal.json" (env "SENSORS"))) | quote }} - SPAWN_POINT: {{ (default "" (default "50.787510,6.045938,260.0,90.0,wgs84" (env "SPAWN_POINT"))) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + SENSORS: {{ (default "" (env "SENSORS")) | quote }} + SPAWN_POINT: {{ (default "" (env "SPAWN_POINT")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "OBJECTS_DEFINITION_FILE")) | quote }} ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT_EGO_VEHICLE")) | quote }} diff --git a/deployments/helmfile/environments/base.yaml.gotmpl b/deployments/helmfile/environments/base.yaml.gotmpl index 8092c1b..5166133 100644 --- a/deployments/helmfile/environments/base.yaml.gotmpl +++ b/deployments/helmfile/environments/base.yaml.gotmpl @@ -1,13 +1,13 @@ -# Generated from host-side variables referenced by multiple generated services. -# Export a variable before running Helmfile to override its conversion-time value. +# generated from host-side variables referenced by multiple generated services. +# export variables before running Helmfile; generation-time values are not retained. composeEnvironment: - CARLA_HOST: {{ env "CARLA_HOST" | default "" | quote }} - CARLA_PORT: {{ env "CARLA_PORT" | default "" | quote }} - CUSTOM_LANELET: {{ env "CUSTOM_LANELET" | default "" | quote }} - CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | default "" | quote }} - LOG_LEVEL: {{ env "LOG_LEVEL" | default "" | quote }} - MAP: {{ env "MAP" | default "campus" | quote }} - ROLE_NAME: {{ env "ROLE_NAME" | default "" | quote }} - ROS_DOMAIN_ID: {{ env "ROS_DOMAIN_ID" | default "" | quote }} - TRACE: {{ env "TRACE" | default "" | quote }} - USE_SIM_TIME: {{ env "USE_SIM_TIME" | default "true" | quote }} + CARLA_HOST: {{ env "CARLA_HOST" | quote }} + CARLA_PORT: {{ env "CARLA_PORT" | quote }} + CUSTOM_LANELET: {{ env "CUSTOM_LANELET" | quote }} + CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | quote }} + LOG_LEVEL: {{ env "LOG_LEVEL" | quote }} + MAP: {{ env "MAP" | quote }} + ROLE_NAME: {{ env "ROLE_NAME" | quote }} + ROS_DOMAIN_ID: {{ env "ROS_DOMAIN_ID" | quote }} + TRACE: {{ env "TRACE" | quote }} + USE_SIM_TIME: {{ env "USE_SIM_TIME" | quote }} diff --git a/deployments/helmfile/environments/profiles.yaml.gotmpl b/deployments/helmfile/environments/profiles.yaml.gotmpl index 7d0ca12..855270c 100644 --- a/deployments/helmfile/environments/profiles.yaml.gotmpl +++ b/deployments/helmfile/environments/profiles.yaml.gotmpl @@ -1,9 +1,8 @@ -# The single profile selector for this Helmfile. -# It uses COMPOSE_PROFILES exactly like Docker Compose. Its default comes from -# the .env file that was used during conversion; export COMPOSE_PROFILES to -# override it for one Helmfile invocation. -# Available profiles: automated-testing, bag-recording, carla, manual-testing, ml-planning, no-perception, perception, planning, traffic -{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "carla,traffic,manual-testing,no-perception,planning") }} +# the single profile selector for this Helmfile. +# it uses COMPOSE_PROFILES exactly like Docker Compose. An explicit converter +# --profile selection is retained as its default; .env values are read only at runtime. +# available profiles: automated-testing, bag-recording, carla, manual-testing, ml-planning, no-perception, perception, planning, traffic +{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "") }} profileGroups: automated-testing: diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index 28ae923..5d7c74f 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -34,7 +34,7 @@ openadservice: USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - ROS_TRACING: {{ (default "false" (default "false" (env "ROS_TRACING"))) | quote }} + ROS_TRACING: {{ (default "false" (env "ROS_TRACING")) | quote }} DRIVING_MODE: {{ (default "ackermann" (env "DRIVING_MODE")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} From e83e02c9fbca2f0e398bf30881ae3e613b897872 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 17 Sep 2026 16:22:33 +0200 Subject: [PATCH 12/80] cleanup --- .../values.yaml.gotmpl | 14 +---------- .../carla-manual-control/values.yaml.gotmpl | 15 +----------- .../carla-ros-bridge/values.yaml.gotmpl | 24 +------------------ .../carla-spawn-objects/values.yaml.gotmpl | 7 +----- .../helmfile/environments/base.yaml.gotmpl | 1 - .../robot-state-publisher/values.yaml.gotmpl | 2 +- 6 files changed, 5 insertions(+), 58 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index be9d40d..918d28e 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -1,15 +1,5 @@ openadservice: image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci - args: - - /bin/bash - - -ic - - |- - ros2 launch carla_ackermann_control carla_ackermann_control.launch.py \ - params:=${PARAMS} \ - role_name:=${ROLE_NAME} \ - control_loop_rate:=${CONTROL_LOOP_RATE} \ - ${ACKERMANN_COMMAND_TOPIC:+ackermann_command_topic:=${ACKERMANN_COMMAND_TOPIC}} \ - ${VEHICLE_CONTROL_COMMAND_TOPIC:+vehicle_control_command_topic:=${VEHICLE_CONTROL_COMMAND_TOPIC}} env: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml @@ -19,9 +9,7 @@ openadservice: VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} - CONTROL_LOOP_RATE: {{ (default "0.05" (env "CONTROL_LOOP_RATE")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index 4c0c458..17ee2fa 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -1,24 +1,11 @@ openadservice: - args: - - /bin/bash - - -ic - - |- - ros2 launch carla_manual_control carla_manual_control.launch.py \ - role_name:=${ROLE_NAME} \ - wireless_controller:=${WIRELESS_CONTROLLER} \ - window_width:=${WINDOW_WIDTH} \ - window_height:=${WINDOW_HEIGHT} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} - WIRELESS_CONTROLLER: {{ (default "False" (env "WIRELESS_CONTROLLER")) | quote }} - WINDOW_WIDTH: {{ (default "800" (env "WINDOW_WIDTH")) | quote }} - WINDOW_HEIGHT: {{ (default "600" (env "WINDOW_HEIGHT")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 81a4db9..94630ba 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -40,31 +40,9 @@ openadservice: TOWN: {{ (default "/opendrive.xodr" (index .Values.composeEnvironment "MAP")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "True" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} - TIMEOUT: {{ (default "5000" (env "TIMEOUT")) | quote }} - PASSIVE: {{ (default "False" (env "PASSIVE")) | quote }} - PUBLISH_CLOCK: {{ (default "True" (env "PUBLISH_CLOCK")) | quote }} - SYNCHRONOUS_MODE: {{ (default "True" (env "SYNCHRONOUS_MODE")) | quote }} - SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND: {{ (default "False" (env "SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND")) | quote }} - FIXED_DELTA_SECONDS: {{ (default "0.05" (env "FIXED_DELTA_SECONDS")) | quote }} - START_UNIX_TIME_STAMP: {{ (default "0" (env "START_UNIX_TIME_STAMP")) | quote }} - RT_FACTOR: {{ (default "1.0" (env "RT_FACTOR")) | quote }} - REGISTER_ALL_SENSORS: {{ (default "True" (env "REGISTER_ALL_SENSORS")) | quote }} - NATIVE_INTERFACE: {{ (default "True" (env "NATIVE_INTERFACE")) | quote }} - EGO_VEHICLE_ROLE_NAME: {{ (default "[\"hero\",\"ego_vehicle\",\"hero0\",\"hero1\",\"hero2\",\"hero3\"]" (env "EGO_VEHICLE_ROLE_NAME")) | quote }} - PUBLISH_STATIC_VEHICLES: {{ (default "True" (env "PUBLISH_STATIC_VEHICLES")) | quote }} - PUBLISH_COMPRESSED_IMAGES: {{ (default "True" (env "PUBLISH_COMPRESSED_IMAGES")) | quote }} - IGNORE_TILT: {{ (default "True" (env "IGNORE_TILT")) | quote }} - GEOREFERENCE_SUBSTITUTION: {{ (default "" (env "GEOREFERENCE_SUBSTITUTION")) | quote }} - GRID_CONVERGENCE: {{ (default "None" (env "GRID_CONVERGENCE")) | quote }} - PUBLISH_ETSI_MESSAGES: {{ (default "False" (env "PUBLISH_ETSI_MESSAGES")) | quote }} - MAPEM_TIMER_PERIOD: {{ (default "1.0" (env "MAPEM_TIMER_PERIOD")) | quote }} - SPATEM_TIMER_PERIOD: {{ (default "0.1" (env "SPATEM_TIMER_PERIOD")) | quote }} - INTEGRATE_ALL_JUNCTIONS: {{ (default "False" (env "INTEGRATE_ALL_JUNCTIONS")) | quote }} - WAYPOINTS_SEARCH_DISTANCE: {{ (default "1.0" (env "WAYPOINTS_SEARCH_DISTANCE")) | quote }} - LANE_WAYPOINTS_COUNT: {{ (default "10" (env "LANE_WAYPOINTS_COUNT")) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index 0e65584..96b14a0 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -18,12 +18,7 @@ openadservice: SPAWN_POINT: {{ (default "" (env "SPAWN_POINT")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "OBJECTS_DEFINITION_FILE")) | quote }} - ROLE_NAME: {{ (default "ego_vehicle" (index .Values.composeEnvironment "ROLE_NAME")) | quote }} - SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT_EGO_VEHICLE")) | quote }} - SPAWN_SENSORS_ONLY: {{ (default "False" (env "SPAWN_SENSORS_ONLY")) | quote }} - CONTROL_ID: {{ (default "control" (env "CONTROL_ID")) | quote }} + USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} volumes: - mountPath: /config hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge diff --git a/deployments/helmfile/environments/base.yaml.gotmpl b/deployments/helmfile/environments/base.yaml.gotmpl index 5166133..35b63ad 100644 --- a/deployments/helmfile/environments/base.yaml.gotmpl +++ b/deployments/helmfile/environments/base.yaml.gotmpl @@ -7,7 +7,6 @@ composeEnvironment: CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | quote }} LOG_LEVEL: {{ env "LOG_LEVEL" | quote }} MAP: {{ env "MAP" | quote }} - ROLE_NAME: {{ env "ROLE_NAME" | quote }} ROS_DOMAIN_ID: {{ env "ROS_DOMAIN_ID" | quote }} TRACE: {{ env "TRACE" | quote }} USE_SIM_TIME: {{ env "USE_SIM_TIME" | quote }} diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 008b18e..7320157 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -4,7 +4,7 @@ openadservice: - {{ "/bin/bash" | quote }} - {{ "-ic" | quote }} - |- -{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (default "karl" (env "VEHICLE"))) "/" (default "karl" (default "karl" (env "VEHICLE"))) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (index .Values.composeEnvironment "USE_SIM_TIME"))) | indent 4 }} +{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (env "VEHICLE")) "/" (default "karl" (env "VEHICLE")) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (index .Values.composeEnvironment "USE_SIM_TIME"))) | indent 4 }} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} From a95373f55b69120ba2c175730f2a777e8a34fcc1 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sat, 19 Sep 2026 12:26:43 +0200 Subject: [PATCH 13/80] remove base.yaml.gotmpl --- .../carla-ackermann-control/values.yaml.gotmpl | 6 +++--- .../carla-client/values.yaml.gotmpl | 4 ++-- .../carla-control-active-bridge/values.yaml.gotmpl | 2 +- .../carla-converter/values.yaml.gotmpl | 6 +++--- .../carla-manual-control/values.yaml.gotmpl | 6 +++--- .../carla-ros-bridge/values.yaml.gotmpl | 12 ++++++------ .../values.yaml.gotmpl | 12 ++++++------ .../values.yaml.gotmpl | 14 +++++++------- .../carla-server/values.yaml.gotmpl | 14 +++++++------- .../carla-simulation-adapter/values.yaml.gotmpl | 6 +++--- .../carla-spawn-objects/values.yaml.gotmpl | 6 +++--- .../ros-middleware-bridge/values.yaml.gotmpl | 6 +++--- deployments/helmfile/environments/base.yaml.gotmpl | 12 ------------ deployments/helmfile/helmfile.yaml | 1 - .../values.yaml.gotmpl | 8 ++++---- .../robot-state-publisher/values.yaml.gotmpl | 4 ++-- .../lanelet2_map_server/values.yaml.gotmpl | 6 +++--- .../monitoring/bag-recorder/values.yaml.gotmpl | 2 +- .../monitoring/rviz-carla/values.yaml.gotmpl | 6 +++--- .../point_cloud_fusion/values.yaml.gotmpl | 8 ++++---- .../values.yaml.gotmpl | 8 ++++---- .../lanelet2_route_planning/values.yaml.gotmpl | 6 +++--- .../planning/simple_planner/values.yaml.gotmpl | 8 ++++---- .../trajectory_optimization/values.yaml.gotmpl | 6 +++--- .../values.yaml.gotmpl | 6 +++--- .../values.yaml.gotmpl | 6 +++--- .../values.yaml.gotmpl | 6 +++--- 27 files changed, 87 insertions(+), 100 deletions(-) delete mode 100644 deployments/helmfile/environments/base.yaml.gotmpl diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index 918d28e..97080f2 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -4,12 +4,12 @@ openadservice: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl index 2209234..5946c97 100644 --- a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl @@ -7,8 +7,8 @@ openadservice: --host "${CARLA_HOST}" \ --port "${CARLA_PORT}" env: - CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} - CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /set_environment.py data: | diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl index 1410ad8..f82c026 100644 --- a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl @@ -13,7 +13,7 @@ openadservice: - std_msgs env: RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 dependsOn: diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl index 1bcb255..cf36c7b 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -2,11 +2,11 @@ openadservice: env: NAMESPACE: /carla RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} PARAMS: {{ (default "/docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml" (env "PARAMS")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index 17ee2fa..f731377 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -1,11 +1,11 @@ openadservice: env: RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index 94630ba..a04a697 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -35,14 +35,14 @@ openadservice: env: IGNORE_ALTITUDE: true RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TOWN: {{ (default "/opendrive.xodr" (index .Values.composeEnvironment "MAP")) | quote }} + TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} - HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} - PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} + HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 856db7b..cd9564e 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -13,16 +13,16 @@ openadservice: --rtFactor 1.0 \ --waitForEgo env: - CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} - CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} - MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} + MAP: {{ (default "" (env "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} + CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 2e3ce3b..e883dd6 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -14,16 +14,16 @@ openadservice: scenario_runner_path:=${SCENARIO_RUNNER_ROOT} \ scenarios_dir:=${SCENARIOS_DIR} env: - CARLA_HOST: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) | quote }} - CUSTOM_LANELET: {{ (default "" (index .Values.composeEnvironment "CUSTOM_LANELET")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} - MAP: {{ (default "" (index .Values.composeEnvironment "MAP")) | quote }} + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} + MAP: {{ (default "" (env "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SCENARIO_MAP: {{ (default (default "" (index .Values.composeEnvironment "MAP")) (index .Values.composeEnvironment "CUSTOM_OPENDRIVE")) | quote }} + SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - CARLA_PORT: {{ (default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | quote }} + CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index 9b88bce..f8c7183 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -11,17 +11,17 @@ openadservice: dependsOn: - host: zenoh-router port: 7447 - name: {{ (default "carla-server" (index .Values.composeEnvironment "CARLA_HOST")) }} + name: {{ (default "carla-server" (env "CARLA_HOST")) }} ports: [] expose: - - port: {{ ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) }} - targetPort: {{ ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) }} + - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + targetPort: {{ ((default "2000" (env "CARLA_PORT")) | int) }} protocol: TCP - - port: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 1 }} - targetPort: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 1 }} + - port: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} + targetPort: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} protocol: TCP - - port: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 2 }} - targetPort: {{ add ((default "2000" (index .Values.composeEnvironment "CARLA_PORT")) | int) 2 }} + - port: {{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }} + targetPort: {{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }} protocol: TCP x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index 7edfc58..95c2f1b 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -13,11 +13,11 @@ openadservice: OUTPUT_OBJECT_LIST_FIXED_TOPIC: /simulation/object_list_fixed OUTPUT_OBJECT_LIST_TOPIC: /simulation/object_list RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} PARAMS: {{ (default "/docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml" (env "PARAMS")) | quote }} LOAD_LANELET_MAP: {{ (default "true" (env "LANELET_RELOAD")) | quote }} rosParamFileData: | diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index 96b14a0..c626a03 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -12,13 +12,13 @@ openadservice: BLUEPRINTS_DIRECTORY: /config/blueprints OBJECTS_DIRECTORY: /config/objects RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn SENSORS: {{ (default "" (env "SENSORS")) | quote }} SPAWN_POINT: {{ (default "" (env "SPAWN_POINT")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} volumes: - mountPath: /config hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index e3f3c30..0e8279d 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -1,11 +1,11 @@ openadservice: env: RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} PARAMS: {{ (default "/docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml" (env "PARAMS")) | quote }} SIDE_A_NAME: {{ (default "bridge_fast" (env "SIDE_A_NAME")) | quote }} SIDE_A_RMW_IMPLEMENTATION: {{ (default "rmw_fastrtps_cpp" (env "SIDE_A_RMW_IMPLEMENTATION")) | quote }} diff --git a/deployments/helmfile/environments/base.yaml.gotmpl b/deployments/helmfile/environments/base.yaml.gotmpl deleted file mode 100644 index 35b63ad..0000000 --- a/deployments/helmfile/environments/base.yaml.gotmpl +++ /dev/null @@ -1,12 +0,0 @@ -# generated from host-side variables referenced by multiple generated services. -# export variables before running Helmfile; generation-time values are not retained. -composeEnvironment: - CARLA_HOST: {{ env "CARLA_HOST" | quote }} - CARLA_PORT: {{ env "CARLA_PORT" | quote }} - CUSTOM_LANELET: {{ env "CUSTOM_LANELET" | quote }} - CUSTOM_OPENDRIVE: {{ env "CUSTOM_OPENDRIVE" | quote }} - LOG_LEVEL: {{ env "LOG_LEVEL" | quote }} - MAP: {{ env "MAP" | quote }} - ROS_DOMAIN_ID: {{ env "ROS_DOMAIN_ID" | quote }} - TRACE: {{ env "TRACE" | quote }} - USE_SIM_TIME: {{ env "USE_SIM_TIME" | quote }} diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 82e7ce7..d5e0d24 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -2,7 +2,6 @@ environments: default: values: - environments/profiles.yaml.gotmpl - - environments/base.yaml.gotmpl - environments/overrides.yaml.gotmpl --- diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl index 6300a15..265f69e 100644 --- a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -6,13 +6,13 @@ openadservice: LON_CONTROL_ACTIVE_TOPIC: /control/active PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} - TRACE: {{ (default "False" (index .Values.composeEnvironment "TRACE")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + TRACE: {{ (default "False" (env "TRACE")) | quote }} volumes: - mountPath: /docker-ros/ws/install/ackermann_trajectory_control/share/ackermann_trajectory_control/config/karl-lateral-limits-v1p3.csv data: | diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 7320157..bc471d7 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -4,10 +4,10 @@ openadservice: - {{ "/bin/bash" | quote }} - {{ "-ic" | quote }} - |- -{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (env "VEHICLE")) "/" (default "karl" (env "VEHICLE")) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (index .Values.composeEnvironment "USE_SIM_TIME"))) | indent 4 }} +{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (env "VEHICLE")) "/" (default "karl" (env "VEHICLE")) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (env "USE_SIM_TIME"))) | indent 4 }} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 7d34841..75fd137 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -22,12 +22,12 @@ openadservice: ORIGIN_LAT: {{ (env "ORIGIN_LAT") | quote }} ORIGIN_LON: {{ (env "ORIGIN_LON") | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn USE_AUTOMATIC_MAP_SELECTION: false - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} volumes: - mountPath: /data/maps diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index 8a7466b..883baf4 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -26,7 +26,7 @@ openadservice: /understanding/lanelet2_object_list_prediction/object_list env: RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 8ac250e..64fe666 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -9,11 +9,11 @@ openadservice: NAMESPACE: /monitoring CONFIG: /conf.rviz RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} volumes: - mountPath: /docker-ros/ws/monitoring-volume hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl index 26b276f..161603f 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -16,12 +16,12 @@ openadservice: NAMESPACE: /perception PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + TRACE: {{ (default "false" (env "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl index b7a6231..a5b9d45 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -27,12 +27,12 @@ openadservice: PARAMS: /params.yml POINT_CLOUD_TOPIC: /perception/point_cloud_fusion/point_cloud RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + TRACE: {{ (default "false" (env "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} volumes: - mountPath: /models image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl index 3801f4a..d43a322 100644 --- a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -4,11 +4,11 @@ openadservice: EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl index 3a0ac55..699b4eb 100644 --- a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -25,13 +25,13 @@ openadservice: OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} ROUTE_TOPIC: /planning/lanelet2_route_planning/route RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (index .Values.composeEnvironment "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + TRACE: {{ (default "false" (env "TRACE")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index 5d7c74f..fb8b9d2 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -28,12 +28,12 @@ openadservice: PARAMS: /params.yml REFERENCE_TRAJECTORY_TOPIC: /planning/simple_planner/trajectory RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} ROUTE_TOPIC: /planning/lanelet2_route_planning/route RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} ROS_TRACING: {{ (default "false" (env "ROS_TRACING")) | quote }} DRIVING_MODE: {{ (default "ackermann" (env "DRIVING_MODE")) | quote }} rosParamFileData: | diff --git a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl index 096e944..6af0d6f 100644 --- a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl @@ -8,12 +8,12 @@ openadservice: OUTPUT_MERGED_OBJECTS: ~/merged_object_list OUTPUT_OBJECTS: ~/object_list RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn TRACKER_SETTING_PATH: {{ (default "" (env "TRACKER_SETTING_PATH")) | quote }} - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} INPUT_DETECTION02_CHANNEL: {{ (default "none" (env "INPUT_DETECTION02_CHANNEL")) | quote }} INPUT_DETECTION03_CHANNEL: {{ (default "none" (env "INPUT_DETECTION03_CHANNEL")) | quote }} INPUT_DETECTION04_CHANNEL: {{ (default "none" (env "INPUT_DETECTION04_CHANNEL")) | quote }} diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index 8540020..c26bbf0 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -16,12 +16,12 @@ openadservice: NAMESPACE: /understanding PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn TRACKED_OBJECT_LIST_TOPIC: /simulation/object_list - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index 6cd04fa..70a62c5 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -16,12 +16,12 @@ openadservice: NAMESPACE: /understanding PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (index .Values.composeEnvironment "ROS_DOMAIN_ID")) | quote }} + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn TRACKED_OBJECT_LIST_TOPIC: /understanding/autoware_multi_object_tracker/object_list - USE_SIM_TIME: {{ (default "false" (index .Values.composeEnvironment "USE_SIM_TIME")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (index .Values.composeEnvironment "LOG_LEVEL")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml From 172335b4bcc939c3ecf4677def8b8615e4c92994 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 08:12:52 +0200 Subject: [PATCH 14/80] updates values --- .../values.yaml.gotmpl | 9 ++- .../carla-client/values.yaml.gotmpl | 11 +++- .../values.yaml.gotmpl | 5 ++ .../carla-converter/values.yaml.gotmpl | 9 ++- .../carla-environment/values.yaml.gotmpl | 5 ++ .../carla-manual-control/values.yaml.gotmpl | 9 ++- .../carla-ros-bridge/values.yaml.gotmpl | 11 +++- .../values.yaml.gotmpl | 16 +++-- .../values.yaml.gotmpl | 14 ++++- .../carla-server/values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ .../carla-spawn-objects/values.yaml.gotmpl | 9 ++- .../ros-middleware-bridge/values.yaml.gotmpl | 9 ++- deployments/helmfile/helmfile.yaml | 58 +++++++++---------- .../values.yaml.gotmpl | 5 ++ .../robot-state-publisher/values.yaml.gotmpl | 5 ++ .../triton-server/values.yaml.gotmpl | 5 ++ .../zenoh-router/values.yaml.gotmpl | 7 ++- .../lanelet2_map_server/values.yaml.gotmpl | 5 ++ .../bag-recorder/values.yaml.gotmpl | 5 ++ .../monitoring/rviz-carla/values.yaml.gotmpl | 5 ++ .../point_cloud_fusion/values.yaml.gotmpl | 5 ++ .../point_cloud_object_detection/params.yml | 2 +- .../values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ .../simple_planner/values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ .../values.yaml.gotmpl | 5 ++ 30 files changed, 202 insertions(+), 52 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index 97080f2..501f604 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci env: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls @@ -14,7 +19,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl index 5946c97..a6de5c0 100644 --- a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic @@ -14,5 +19,7 @@ openadservice: data: | {{ readFile "set_environment.py" | indent 6 }} dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + envHostPrefixKeys: + - CARLA_HOST diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl index f82c026..6e5a370 100644 --- a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: carla-control-active-bridge args: - ros2 diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl index cf36c7b..2dc4020 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: NAMESPACE: /carla RMW_IMPLEMENTATION: rmw_zenoh_cpp @@ -12,7 +17,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl index e59ee72..1fb3cc5 100644 --- a/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.0 args: - /bin/bash diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index f731377..f11a729 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} @@ -7,8 +12,8 @@ openadservice: LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index a04a697..d929fa9 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic @@ -44,9 +49,11 @@ openadservice: HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 + envHostPrefixKeys: + - HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index cd9564e..82bc831 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: carla-scenario-runner-ros-automated-testing args: - /bin/bash @@ -7,21 +12,22 @@ openadservice: set -e python3 /scenario_checker.py validate-runtime "/${SCENARIO_FILE}" exec python3 -u ../additional-files/scenario_runner.py \ - --host carla-server \ + --host "${CARLA_HOST}" \ --openscenario /${SCENARIO_FILE} \ --output \ --rtFactor 1.0 \ --waitForEgo env: - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} MAP: {{ (default "" (env "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn + SCENARIO_DIRECTORY: /scenarios SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py @@ -30,9 +36,11 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 + envHostPrefixKeys: + - CARLA_HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index e883dd6..90f44e4 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: carla-scenario-runner-ros-manual-testing args: - /bin/bash @@ -14,15 +19,16 @@ openadservice: scenario_runner_path:=${SCENARIO_RUNNER_ROOT} \ scenarios_dir:=${SCENARIOS_DIR} env: - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} MAP: {{ (default "" (env "MAP")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn + SCENARIO_DIRECTORY: /scenarios SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py @@ -31,9 +37,11 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 + envHostPrefixKeys: + - CARLA_HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index f8c7183..26c0d63 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.0 args: - bash diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl index 95c2f1b..09da8ad 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: carla-simulation-adapter env: NAMESPACE: /carla diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index c626a03..3e8a550 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic @@ -23,7 +28,7 @@ openadservice: - mountPath: /config hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index 0e8279d..d164091 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} @@ -19,7 +24,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml dependsOn: - - host: carla-server - port: 2000 + - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index d5e0d24..436a822 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -7,135 +7,135 @@ environments: --- releases: # carla-simulation -- name: carla-ackermann-control +- name: '{{ printf "%s-carla-ackermann-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment condition: profileGroups.carla.enabled values: [carla-simulation/carla-ackermann-control/values.yaml.gotmpl] -- name: carla-client +- name: '{{ printf "%s-carla-client" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.1.0-helm condition: profileGroups.traffic.enabled values: [carla-simulation/carla-client/values.yaml.gotmpl] -- name: carla-control-active-bridge +- name: '{{ printf "%s-carla-control-active-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4 condition: profileGroups.carla.enabled values: [carla-simulation/carla-control-active-bridge/values.yaml.gotmpl] -- name: carla-converter +- name: '{{ printf "%s-carla-converter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter version: 1.3.1-main condition: profileGroups.carla.enabled values: [carla-simulation/carla-converter/values.yaml.gotmpl] -- name: carla-manual-control +- name: '{{ printf "%s-carla-manual-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.1.0-carla-manual-control-update-deployment condition: profileGroups.carla.enabled values: [carla-simulation/carla-manual-control/values.yaml.gotmpl] -- name: carla-ros-bridge +- name: '{{ printf "%s-carla-ros-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment condition: profileGroups.carla.enabled values: [carla-simulation/carla-ros-bridge/values.yaml.gotmpl] -- name: carla-scenario-runner-ros-automated-testing +- name: '{{ printf "%s-carla-scenario-runner-ros-automated-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm condition: profileGroups.automated-testing.enabled values: [carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] -- name: carla-scenario-runner-ros-manual-testing +- name: '{{ printf "%s-carla-scenario-runner-ros-manual-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm condition: profileGroups.manual-testing.enabled values: [carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] -- name: carla-server +- name: '{{ printf "%s-carla-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator version: 0.1.0-helm condition: profileGroups.carla.enabled values: [carla-simulation/carla-server/values.yaml.gotmpl] -- name: carla-simulation-adapter +- name: '{{ printf "%s-carla-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter version: 1.4.1-main condition: profileGroups.carla.enabled values: [carla-simulation/carla-simulation-adapter/values.yaml.gotmpl] -- name: carla-spawn-objects +- name: '{{ printf "%s-carla-spawn-objects" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment condition: profileGroups.carla.enabled values: [carla-simulation/carla-spawn-objects/values.yaml.gotmpl] -- name: ros-middleware-bridge +- name: '{{ printf "%s-ros-middleware-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge version: 1.2.1-main condition: profileGroups.carla.enabled values: [carla-simulation/ros-middleware-bridge/values.yaml.gotmpl] # openadstack -- name: ackermann-trajectory-control +- name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control version: 1.5.0-main condition: profileGroups.ml-planning-or-planning.enabled values: [openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl] -- name: robot-state-publisher +- name: '{{ printf "%s-robot-state-publisher" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4-main values: [openadstack/essentials/robot-state-publisher/values.yaml.gotmpl] -- name: triton-server +- name: '{{ printf "%s-triton-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/openads-helm/triton-server - version: 26.05 + version: '26.05' condition: profileGroups.ml-planning-or-perception.enabled values: [openadstack/essentials/triton-server/values.yaml.gotmpl] -- name: zenoh-router +- name: '{{ printf "%s-zenoh-router" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router version: 0.2.10 values: [openadstack/essentials/zenoh-router/values.yaml.gotmpl] -- name: lanelet2-map-server +- name: '{{ printf "%s-lanelet2-map-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server version: 1.2.2-main values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] -- name: bag-recorder +- name: '{{ printf "%s-bag-recorder" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4-main condition: profileGroups.bag-recording.enabled values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] -- name: rviz-carla +- name: '{{ printf "%s-rviz-carla" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4-main + version: 1.0.0-main condition: profileGroups.carla.enabled values: [openadstack/monitoring/rviz-carla/values.yaml.gotmpl] -- name: point-cloud-fusion +- name: '{{ printf "%s-point-cloud-fusion" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion version: 1.4.0-main condition: profileGroups.perception.enabled values: [openadstack/perception/point_cloud_fusion/values.yaml.gotmpl] -- name: point-cloud-object-detection +- name: '{{ printf "%s-point-cloud-object-detection" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection version: 3.0.0-main condition: profileGroups.perception.enabled values: [openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl] -- name: lanelet2-route-planning +- name: '{{ printf "%s-lanelet2-route-planning" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning version: 1.2.0-main condition: profileGroups.ml-planning-or-planning.enabled values: [openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl] -- name: simple-planner +- name: '{{ printf "%s-simple-planner" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner version: 1.4.0-main condition: profileGroups.ml-planning-or-planning.enabled values: [openadstack/planning/simple_planner/values.yaml.gotmpl] -- name: trajectory-optimization +- name: '{{ printf "%s-trajectory-optimization" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization version: 1.4.0-main condition: profileGroups.ml-planning-or-planning.enabled values: [openadstack/planning/trajectory_optimization/values.yaml.gotmpl] -- name: autoware-multi-object-tracker +- name: '{{ printf "%s-autoware-multi-object-tracker" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/thinking-cars/autoware_multi_object_tracker/helm/autoware-multi-object-tracker version: 1.1.0-main condition: profileGroups.perception.enabled values: [openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl] -- name: lanelet2-object-list-prediction-no-perception +- name: '{{ printf "%s-lanelet2-object-list-prediction-no-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction version: 1.0.2-main condition: profileGroups.no-perception.enabled values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl] -- name: lanelet2-object-list-prediction-perception +- name: '{{ printf "%s-lanelet2-object-list-prediction-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction version: 1.0.2-main condition: profileGroups.perception.enabled diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl index 265f69e..98a341d 100644 --- a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: NAMESPACE: /control EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index bc471d7..46717d7 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: robot-state-publisher args: - {{ "/bin/bash" | quote }} diff --git a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl index d9c1155..7e2a8b7 100644 --- a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: CUDA_VISIBLE_DEVICES: 0 volumes: diff --git a/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl index a3f2963..c0ac4ce 100644 --- a/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl @@ -1 +1,6 @@ -openadservice: {} +openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 75fd137..02f5720 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index 883baf4..6228247 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: bag-recorder args: - /bin/bash diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 64fe666..ae00af9 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: rviz-carla args: - bash diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl index 161603f..6f3f671 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml index 5c8b256..97ef2e5 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml @@ -2,7 +2,7 @@ ros__parameters: # Core node configuration - prediction.server_url: "triton-server:8001" + prediction.server_url: "{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001" prediction.model_repository: "point-cloud-object-detection" prediction.model_version: "1" preprocessing.backend: "cuda" diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl index a5b9d45..dece39f 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} image: ghcr.io/openads-project/point_cloud_object_detection:v3.0.0-slim args: - /bin/bash diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl index d43a322..585bb31 100644 --- a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: NAMESPACE: /planning EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl index 699b4eb..b840052 100644 --- a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index fb8b9d2..3a830f7 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} args: - /bin/bash - -ic diff --git a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl index 6af0d6f..6499641 100644 --- a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} env: NAMESPACE: /understanding DATA_ASSOCIATION_MATRIX_PATH: {{ (default "" (env "DATA_ASSOCIATION_MATRIX_PATH")) | quote }} diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index c26bbf0..9f716ad 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: lanelet2-object-list-prediction-no-perception args: - /bin/bash diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index 70a62c5..b88f46a 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -1,4 +1,9 @@ openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} name: lanelet2-object-list-prediction-perception args: - /bin/bash From b8c2424bc4be0cb9222e596ec15733e94460ad04 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 11:47:49 +0200 Subject: [PATCH 15/80] update values --- .../carla-ackermann-control/values.yaml.gotmpl | 4 ++-- .../carla-simulation/carla-client/values.yaml.gotmpl | 6 ++---- .../carla-simulation/carla-converter/values.yaml.gotmpl | 4 ++-- .../carla-manual-control/values.yaml.gotmpl | 4 ++-- .../carla-simulation/carla-ros-bridge/values.yaml.gotmpl | 6 ++---- .../values.yaml.gotmpl | 6 ++---- .../values.yaml.gotmpl | 6 ++---- .../carla-simulation/carla-server/values.yaml.gotmpl | 1 - .../carla-simulation/carla-spawn-objects/values.yaml.gotmpl | 4 ++-- .../ros-middleware-bridge/values.yaml.gotmpl | 4 ++-- 10 files changed, 18 insertions(+), 27 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl index 501f604..0b230ac 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl @@ -19,7 +19,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl index a6de5c0..2bfc51a 100644 --- a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl @@ -19,7 +19,5 @@ openadservice: data: | {{ readFile "set_environment.py" | indent 6 }} dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - envHostPrefixKeys: - - CARLA_HOST + - host: carla-server + port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl index 2dc4020..8157711 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl @@ -17,7 +17,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl index f11a729..eb22dc2 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl @@ -12,8 +12,8 @@ openadservice: LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl index d929fa9..90623ac 100644 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl @@ -49,11 +49,9 @@ openadservice: HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 - envHostPrefixKeys: - - HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 82bc831..94eb8e2 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -36,11 +36,9 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 - envHostPrefixKeys: - - CARLA_HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 90f44e4..c7bbb86 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -37,11 +37,9 @@ openadservice: - mountPath: /carla-simulation/scenarios hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 - envHostPrefixKeys: - - CARLA_HOST x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl index 26c0d63..c5f1f6a 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl @@ -16,7 +16,6 @@ openadservice: dependsOn: - host: zenoh-router port: 7447 - name: {{ (default "carla-server" (env "CARLA_HOST")) }} ports: [] expose: - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl index 3e8a550..f87e43e 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl @@ -28,7 +28,7 @@ openadservice: - mountPath: /config hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl index d164091..da1d381 100644 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl @@ -24,7 +24,7 @@ openadservice: {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml dependsOn: - - host: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 From 60b1e6ae55d9a9e9e3cfde17461299e9d8e8164a Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 12:04:30 +0200 Subject: [PATCH 16/80] update for temporary local base chart usage --- deployments/helmfile/CMD.md | 44 +++++ .../helmfile/prepare_local_openadservice.py | 166 ++++++++++++++++++ 2 files changed, 210 insertions(+) create mode 100644 deployments/helmfile/prepare_local_openadservice.py diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index e4ec96c..06f45c2 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -64,3 +64,47 @@ helmfile --file deployments/helmfile/helmfile.yaml \ --selector name=rviz-carla \ sync ``` + +## Test a local OpenADService base chart + +Regenerate the Helmfile and service values first if Compose or the converter +changed. Changes to the local base chart alone do not require this step: + +```sh +python3 utils/compose-to-k8s/compose_to_helmfile.py \ + --output-dir deployments/helmfile \ + docker-compose.yml +``` + +Prepare temporary copies of all parent charts with the local OpenADService +dependency. The script downloads the published parent charts, uses the local +Zenoh parent chart, and writes an overlay under the ignored +`deployments/helmfile/.runtime` directory. It prints the overlay path: + +```sh +python3 deployments/helmfile/prepare_local_openadservice.py \ + --base-chart /work/geller/openads-project/openads-helm/charts/openadservice +``` + +`--base-chart` is optional for this repository layout. Use `--helmfile` to +prepare a different source Helmfile. Profile selection does not limit which +parent charts the script downloads; it controls releases when Helmfile runs. + +Load deployment settings and use the printed overlay path. With a prefix, +set `CARLA_HOST` explicitly to the prefixed service name: its default is +`carla-server`, while `dependsOn` waits for the prefixed local service. + +```sh +set -a +. ./.env +set +a +export COMPOSE_PROFILES=carla,traffic +export DEPLOYMENT_PREFIX=sim1 +export CARLA_HOST=sim1-carla-server +helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml template +helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml sync +``` + +Rerun preparation after changing the source Helmfile, the local base chart, +or a parent chart reference. Changes only to service values take effect on the +next `template` or `sync`. Preparation alone does not deploy anything. diff --git a/deployments/helmfile/prepare_local_openadservice.py b/deployments/helmfile/prepare_local_openadservice.py new file mode 100644 index 0000000..7cf5267 --- /dev/null +++ b/deployments/helmfile/prepare_local_openadservice.py @@ -0,0 +1,166 @@ +#!/usr/bin/env python3 +"""Rebuild fetched parent charts against a local openadservice chart.""" + +from __future__ import annotations + +import argparse +import shutil +import subprocess +from pathlib import Path +from typing import Any + +import yaml + + +def _chart_version(chart_dir: Path) -> str: + metadata = yaml.safe_load((chart_dir / "Chart.yaml").read_text(encoding="utf-8")) + version = metadata.get("version") if isinstance(metadata, dict) else None + if not isinstance(version, str) or not version: + raise RuntimeError(f"chart has no version: {chart_dir}") + return version + + +def _parent_chart(fetch_dir: Path, release_name: str) -> Path: + release_dir = fetch_dir / release_name + candidates = [ + chart_yaml.parent + for chart_yaml in release_dir.rglob("Chart.yaml") + if "charts" not in chart_yaml.relative_to(release_dir).parts + ] + if len(candidates) != 1: + raise RuntimeError( + f"expected one fetched parent chart for {release_name}, found {candidates}" + ) + return candidates[0] + + +def _fetch_parent_chart( + fetch_dir: Path, release_name: str, chart: str, version: str +) -> Path: + destination = fetch_dir / release_name + destination.mkdir(parents=True) + subprocess.run( + ["helm", "pull", chart, "--version", version, "--untar", "--untardir", str(destination)], + check=True, + ) + return _parent_chart(fetch_dir, release_name) + + +def _replace_dependency(parent_chart: Path, base_chart: Path, version: str) -> None: + chart_yaml = parent_chart / "Chart.yaml" + metadata = yaml.safe_load(chart_yaml.read_text(encoding="utf-8")) + dependencies = metadata.get("dependencies", []) + matches = [ + dependency + for dependency in dependencies + if isinstance(dependency, dict) and dependency.get("name") == "openadservice" + ] + if len(matches) != 1: + raise RuntimeError( + f"expected one openadservice dependency in {chart_yaml}, found {len(matches)}" + ) + + matches[0]["version"] = version + matches[0]["repository"] = f"file://{base_chart}" + chart_yaml.write_text(yaml.safe_dump(metadata, sort_keys=False), encoding="utf-8") + + (parent_chart / "Chart.lock").unlink(missing_ok=True) + bundled_dir = parent_chart / "charts" / "openadservice" + if bundled_dir.exists(): + shutil.rmtree(bundled_dir) + for bundled_archive in (parent_chart / "charts").glob("openadservice-*.tgz"): + bundled_archive.unlink() + + subprocess.run( + ["helm", "dependency", "update", str(parent_chart), "--skip-refresh"], + check=True, + ) + + +def _absolute_values_paths(document: dict[str, Any], source_dir: Path) -> None: + for environment in document.get("environments", {}).values(): + if not isinstance(environment, dict): + continue + environment["values"] = [ + str((source_dir / value).resolve()) if isinstance(value, str) else value + for value in environment.get("values", []) + ] + for release in document.get("releases", []): + release["values"] = [ + str((source_dir / value).resolve()) if isinstance(value, str) else value + for value in release.get("values", []) + ] + + +def prepare(state_file: Path, base_chart: Path) -> Path: + state_file = state_file.resolve() + base_chart = base_chart.resolve() + if not (base_chart / "Chart.yaml").is_file(): + raise RuntimeError(f"openadservice chart not found: {base_chart}") + + documents = list(yaml.safe_load_all(state_file.read_text(encoding="utf-8"))) + release_document = next( + document for document in documents + if isinstance(document, dict) and "releases" in document + ) + version = _chart_version(base_chart) + runtime_dir = state_file.parent / ".runtime" / f"openadservice-{version}" + fetch_dir = runtime_dir / "charts" + if runtime_dir.exists(): + shutil.rmtree(runtime_dir) + fetch_dir.mkdir(parents=True) + + for index, release in enumerate(release_document["releases"]): + chart_ref = release["chart"] + chart_key = f"release-{index:02d}" + if chart_ref.rsplit("/", 1)[-1] == "zenoh-router": + # The local Zenoh parent chart contains the 1.2.0-compatible + # ConfigMap naming; the published 0.2.10 parent does not. + local_parent = base_chart.parent / "zenoh-router" + if not (local_parent / "Chart.yaml").is_file(): + raise RuntimeError(f"local Zenoh parent chart not found: {local_parent}") + parent_chart = runtime_dir / "local-parent-charts" / chart_key + shutil.copytree(local_parent, parent_chart) + else: + parent_chart = _fetch_parent_chart( + fetch_dir, chart_key, chart_ref, str(release["version"]) + ) + _replace_dependency(parent_chart, base_chart, version) + release["chart"] = str(parent_chart) + release.pop("version", None) + release["skipDeps"] = True + + for document in documents: + if isinstance(document, dict): + _absolute_values_paths(document, state_file.parent) + + overlay_file = runtime_dir / "helmfile.yaml" + overlay_file.write_text( + "# generated temporary overlay; rerun prepare_local_openadservice.py to refresh\n" + + yaml.safe_dump_all(documents, sort_keys=False, explicit_start=True), + encoding="utf-8", + ) + return overlay_file + + +def main() -> None: + script_dir = Path(__file__).resolve().parent + project_dir = script_dir.parents[2] + parser = argparse.ArgumentParser( + description="rebuild fetched parent charts with a local openadservice dependency" + ) + parser.add_argument( + "--helmfile", type=Path, default=script_dir / "helmfile.yaml", + help="source Helmfile", + ) + parser.add_argument( + "--base-chart", type=Path, + default=project_dir / "openads-helm" / "charts" / "openadservice", + help="local openadservice chart", + ) + args = parser.parse_args() + print(prepare(args.helmfile, args.base_chart)) + + +if __name__ == "__main__": + main() From e46c034fa5bbde6da5dda057c1a19d94ba079be9 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 12:38:20 +0200 Subject: [PATCH 17/80] update after rebase --- .../carla-client/values.yaml.gotmpl | 23 - .../carla-environment/set_environment.py | 842 ------------------ .../carla-ros-bridge/values.yaml.gotmpl | 57 -- .../params.yml | 0 .../values.yaml.gotmpl | 2 +- .../set_environment.py | 0 .../values.yaml.gotmpl | 11 +- .../values.yaml.gotmpl | 5 + .../params.yml | 0 .../values.yaml.gotmpl | 1 - .../values.yaml.gotmpl | 1 + .../carla_ros_bridge/values.yaml.gotmpl | 23 + .../scenario_checker.py | 4 +- .../values.yaml.gotmpl | 9 +- .../scenario_checker.py | 4 +- .../values.yaml.gotmpl | 13 +- .../carla-server/DefaultEngine.ini | 0 .../carla-server/values.yaml.gotmpl | 13 +- .../values.yaml.gotmpl | 20 +- .../ros-middleware-bridge/values.yaml.gotmpl | 30 - .../params.yml | 0 .../ros_middleware_bridge/values.yaml.gotmpl | 21 + .../params.yml | 0 .../values.yaml.gotmpl | 4 +- deployments/helmfile/helmfile.yaml | 36 +- .../robot-state-publisher/values.yaml.gotmpl | 1 + 26 files changed, 112 insertions(+), 1008 deletions(-) delete mode 100644 deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl delete mode 100644 deployments/helmfile/carla-simulation/carla-environment/set_environment.py delete mode 100644 deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl rename deployments/helmfile/carla-simulation/{carla-ackermann-control => carla_ackermann_control}/params.yml (100%) rename deployments/helmfile/carla-simulation/{carla-ackermann-control => carla_ackermann_control}/values.yaml.gotmpl (92%) rename deployments/helmfile/carla-simulation/{carla-client => carla_client}/set_environment.py (100%) rename deployments/helmfile/carla-simulation/{carla-environment => carla_client}/values.yaml.gotmpl (69%) rename deployments/helmfile/carla-simulation/{carla-control-active-bridge => carla_control_active_bridge}/values.yaml.gotmpl (65%) rename deployments/helmfile/carla-simulation/{carla-converter => carla_converter}/params.yml (100%) rename deployments/helmfile/carla-simulation/{carla-converter => carla_converter}/values.yaml.gotmpl (85%) rename deployments/helmfile/carla-simulation/{carla-manual-control => carla_manual_control}/values.yaml.gotmpl (91%) create mode 100644 deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl rename deployments/helmfile/carla-simulation/{ => carla_scenario_runner}/carla-scenario-runner-ros-automated-testing/scenario_checker.py (99%) rename deployments/helmfile/carla-simulation/{ => carla_scenario_runner}/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl (81%) rename deployments/helmfile/carla-simulation/{ => carla_scenario_runner}/carla-scenario-runner-ros-manual-testing/scenario_checker.py (99%) rename deployments/helmfile/carla-simulation/{ => carla_scenario_runner}/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl (79%) rename deployments/helmfile/carla-simulation/{ => carla_server}/carla-server/DefaultEngine.ini (100%) rename deployments/helmfile/carla-simulation/{ => carla_server}/carla-server/values.yaml.gotmpl (85%) rename deployments/helmfile/carla-simulation/{carla-spawn-objects => carla_spawn_objects}/values.yaml.gotmpl (58%) delete mode 100644 deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl rename deployments/helmfile/carla-simulation/{ros-middleware-bridge => ros_middleware_bridge}/params.yml (100%) create mode 100644 deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl rename deployments/helmfile/carla-simulation/{carla-simulation-adapter => simulation_adapter}/params.yml (100%) rename deployments/helmfile/carla-simulation/{carla-simulation-adapter => simulation_adapter}/values.yaml.gotmpl (89%) diff --git a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl deleted file mode 100644 index 2bfc51a..0000000 --- a/deployments/helmfile/carla-simulation/carla-client/values.yaml.gotmpl +++ /dev/null @@ -1,23 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - |- - exec python3 /set_environment.py \ - --host "${CARLA_HOST}" \ - --port "${CARLA_PORT}" - env: - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - volumes: - - mountPath: /set_environment.py - data: | -{{ readFile "set_environment.py" | indent 6 }} - dependsOn: - - host: carla-server - port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-environment/set_environment.py b/deployments/helmfile/carla-simulation/carla-environment/set_environment.py deleted file mode 100644 index 2b6d4ba..0000000 --- a/deployments/helmfile/carla-simulation/carla-environment/set_environment.py +++ /dev/null @@ -1,842 +0,0 @@ -#!/usr/bin/env python3 - -"""UE5 environment setup for CARLA traffic and optional weather.""" - -import argparse -import logging -import math -import signal -import time - -import carla -from numpy import random - - -FOLLOWING_DISTANCE = 2.5 -HYBRID_RADIUS = 70.0 -FIXED_DELTA_SECONDS = 0.05 -DEFAULT_NUMBER_OF_VEHICLES = 30 -DEFAULT_NUMBER_OF_WALKERS = 10 -WALKER_SPAWN_Z_OFFSET = 2.0 -PEDESTRIANS_RUNNING = 0.0 -PEDESTRIANS_CROSSING = 0.0 -BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M = 20.0 -EGO_VEHICLE_SPAWN_CLEARANCE_M = 75.0 -NEAR_EGO_SPAWN_RADIUS_M = 200.0 -NEAR_EGO_VEHICLE_TARGET_FRACTION = 0.7 -WALKER_NAV_LOCATION_ATTEMPTS = 10 -CONNECT_RETRY_SECONDS = 2.0 -CLIENT_TIMEOUT_SECONDS = 10.0 -EGO_ROLE_NAME = "ego_vehicle" -BACKGROUND_ROLE_NAME = "autopilot" - -STATUS_INTERVAL = 5.0 -STUCK_SPEED_MPS = 0.2 -STUCK_DISTANCE_M = 1.0 -STUCK_SECONDS = 45.0 - - -def install_signal_handlers(): - def stop(_signum, _frame): - raise KeyboardInterrupt - - signal.signal(signal.SIGINT, stop) - signal.signal(signal.SIGTERM, stop) - - -def parse_args(): - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("--host", default="carla-server", help="CARLA server host") - parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port") - parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") - parser.add_argument( - "-n", - "--number-of-vehicles", - default=DEFAULT_NUMBER_OF_VEHICLES, - type=int, - ) - parser.add_argument( - "-w", - "--number-of-walkers", - default=DEFAULT_NUMBER_OF_WALKERS, - type=int, - ) - parser.add_argument("--filterv", default="vehicle.*", help="Vehicle blueprint filter") - parser.add_argument("--filterw", default="walker.pedestrian.*", help="Walker blueprint filter") - parser.add_argument("--synch", action="store_true", help="Enable synchronous mode") - parser.add_argument("--hybrid", action="store_true", help="Enable TM hybrid physics") - parser.add_argument("--respawn", action="store_true", help="Respawn dormant vehicles") - parser.add_argument( - "--wait-for-ego", - dest="wait_for_ego", - action="store_true", - default=True, - help="Wait for an actor with role_name=ego_vehicle before spawning traffic", - ) - parser.add_argument( - "--no-wait-for-ego", - dest="wait_for_ego", - action="store_false", - help="Spawn traffic immediately without waiting for ego_vehicle", - ) - parser.add_argument( - "--weather", - metavar="PRESET", - help='Weather preset name, e.g. "ClearNoon" or "WetCloudyNoon"', - ) - return parser.parse_args() - - -def connect_to_carla(args): - client = carla.Client(args.host, args.port) - client.set_timeout(CLIENT_TIMEOUT_SECONDS) - - while True: - try: - client.get_server_version() - logging.info("Connected to CARLA at %s:%s", args.host, args.port) - return client - except RuntimeError as error: - logging.warning( - "Waiting for CARLA server at %s:%s: %s", - args.host, - args.port, - error, - ) - time.sleep(CONNECT_RETRY_SECONDS) - - -def wait_for_ego_vehicle(client): - """Return the current world after its ego vehicle appears.""" - while True: - try: - # The ROS bridge may replace the world while loading the configured map. - world = client.get_world() - ego = find_ego_vehicle(world) - if ego is not None: - logging.info("Found ego vehicle with actor id %s", ego.id) - return world - except RuntimeError as error: - logging.warning("Waiting for a stable CARLA world: %s", error) - else: - logging.info("Waiting for ego vehicle with role_name=%s", EGO_ROLE_NAME) - - # Avoid wait_for_tick() on a world that may belong to the old episode. - time.sleep(CONNECT_RETRY_SECONDS) - - -def find_ego_vehicle(world): - for actor in world.get_actors().filter("vehicle.*"): - if is_ego_vehicle(actor): - return actor - return None - - -def is_ego_vehicle(actor): - return ( - actor.attributes.get("role_name") == EGO_ROLE_NAME - or actor.attributes.get("id") == EGO_ROLE_NAME - ) - - -def get_blueprints(world, pattern): - blueprints = world.get_blueprint_library().filter(pattern) - if not blueprints: - raise ValueError("No blueprints found for filter: %s" % pattern) - return sorted(blueprints, key=lambda blueprint: blueprint.id) - - -def apply_weather(world, preset_name): - if not preset_name: - return None - - if not hasattr(carla.WeatherParameters, preset_name): - presets = [ - name - for name in dir(carla.WeatherParameters) - if not name.startswith("_") and name[0].isupper() - ] - raise ValueError( - "Unknown weather preset '%s'. Available presets: %s" - % (preset_name, ", ".join(sorted(presets))) - ) - - previous_weather = world.get_weather() - world.set_weather(getattr(carla.WeatherParameters, preset_name)) - logging.info("Weather preset set to %s", preset_name) - return previous_weather - - -def configure_simulation(world, traffic_manager, args): - traffic_manager.set_global_distance_to_leading_vehicle(FOLLOWING_DISTANCE) - - if args.respawn: - traffic_manager.set_respawn_dormant_vehicles(True) - - if args.hybrid: - traffic_manager.set_hybrid_physics_mode(True) - traffic_manager.set_hybrid_physics_radius(HYBRID_RADIUS) - - original_settings = world.get_settings() - changed_settings = False - synchronous_master = False - - if args.synch: - traffic_manager.set_synchronous_mode(True) - settings = world.get_settings() - if not settings.synchronous_mode: - synchronous_master = True - settings.synchronous_mode = True - settings.fixed_delta_seconds = FIXED_DELTA_SECONDS - world.apply_settings(settings) - changed_settings = True - else: - logging.warning("Running in asynchronous mode; traffic can be less stable") - - return original_settings, changed_settings, synchronous_master - - -def restore_simulation(world, original_settings, changed_settings, previous_weather): - if previous_weather is not None: - world.set_weather(previous_weather) - - if not changed_settings: - return - - settings = world.get_settings() - settings.synchronous_mode = original_settings.synchronous_mode - settings.fixed_delta_seconds = original_settings.fixed_delta_seconds - world.apply_settings(settings) - - -def spawn_vehicles(client, world, traffic_manager, blueprints, count, synchronous_master): - if count <= 0: - return [] - - spawn_points = select_vehicle_spawn_points(world, count) - if count > len(spawn_points): - logging.warning( - "Requested %d vehicles, but only found %d free spawn points", - count, - len(spawn_points), - ) - count = len(spawn_points) - - batch = [] - for transform in spawn_points[:count]: - blueprint = random.choice(blueprints) - set_random_attribute(blueprint, "color") - set_random_attribute(blueprint, "driver_id") - blueprint.set_attribute("role_name", BACKGROUND_ROLE_NAME) - - batch.append( - carla.command.SpawnActor(blueprint, transform).then( - carla.command.SetAutopilot( - carla.command.FutureActor, True, traffic_manager.get_port() - ) - ) - ) - - return apply_spawn_batch(client, batch, synchronous_master) - - -def select_vehicle_spawn_points(world, count): - spawn_points = list(world.get_map().get_spawn_points()) - random.shuffle(spawn_points) - - vehicles = list(world.get_actors().filter("vehicle.*")) - ego = next((actor for actor in vehicles if is_ego_vehicle(actor)), None) - ego_location = ego.get_location() if ego is not None else None - occupied_locations = [ - actor.get_location() for actor in vehicles if actor is not ego - ] - background_vehicles = [ - actor - for actor in vehicles - if actor is not ego - and actor.attributes.get("role_name") == BACKGROUND_ROLE_NAME - ] - selected_spawn_points = [] - - if ego_location is None: - add_clear_vehicle_spawn_points( - spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - return selected_spawn_points - - eligible_spawn_points = [ - spawn_point - for spawn_point in spawn_points - if spawn_point.location.distance(ego_location) - >= EGO_VEHICLE_SPAWN_CLEARANCE_M - ] - near_spawn_points = [ - spawn_point - for spawn_point in eligible_spawn_points - if spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - ] - distant_spawn_points = [ - spawn_point - for spawn_point in eligible_spawn_points - if spawn_point.location.distance(ego_location) > NEAR_EGO_SPAWN_RADIUS_M - ] - - current_nearby = sum( - actor.get_location().distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - for actor in background_vehicles - ) - desired_nearby = round( - (len(background_vehicles) + count) * NEAR_EGO_VEHICLE_TARGET_FRACTION - ) - near_target = min( - count, - max(0, desired_nearby - current_nearby), - ) - add_clear_vehicle_spawn_points( - near_spawn_points, - near_target, - occupied_locations, - selected_spawn_points, - ) - add_clear_vehicle_spawn_points( - distant_spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - - if len(selected_spawn_points) < count: - add_clear_vehicle_spawn_points( - near_spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - - selected_nearby = sum( - spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - for spawn_point in selected_spawn_points - ) - logging.info( - "Selected %d/%d vehicle spawn points within %.0f-%.0f m of the ego " - "(current=%d target=%d)", - selected_nearby, - len(selected_spawn_points), - EGO_VEHICLE_SPAWN_CLEARANCE_M, - NEAR_EGO_SPAWN_RADIUS_M, - current_nearby, - desired_nearby, - ) - return selected_spawn_points - - -def add_clear_vehicle_spawn_points( - candidates, - target_count, - occupied_locations, - selected_spawn_points, -): - selected_locations = [ - spawn_point.location for spawn_point in selected_spawn_points - ] - - for spawn_point in candidates: - if len(selected_spawn_points) >= target_count: - break - - if not is_clear_location( - spawn_point.location, - occupied_locations + selected_locations, - BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M, - ): - continue - selected_spawn_points.append(spawn_point) - selected_locations.append(spawn_point.location) - - -def is_clear_location(location, occupied_locations, clearance_m): - return all( - location.distance(occupied_location) >= clearance_m - for occupied_location in occupied_locations - ) - - -def set_random_attribute(blueprint, name): - if blueprint.has_attribute(name): - values = blueprint.get_attribute(name).recommended_values - blueprint.set_attribute(name, random.choice(values)) - - -def apply_spawn_batch(client, batch, do_tick=True): - actor_ids = [] - for response in client.apply_batch_sync(batch, do_tick): - if response.error: - logging.error(response.error) - else: - actor_ids.append(response.actor_id) - return actor_ids - - -def spawn_walkers(client, world, blueprints, count, args, synchronous_master): - if count <= 0: - return [] - - world.set_pedestrians_cross_factor(PEDESTRIANS_CROSSING) - - spawn_points = find_walker_spawn_points(world, count) - if len(spawn_points) < count: - logging.warning( - "Only found %d/%d walker navigation spawn locations. " - "If this stays at 0, the current map likely has no pedestrian navmesh.", - len(spawn_points), - count, - ) - - batch = [] - walker_speeds = [] - for spawn_point in spawn_points: - blueprint = random.choice(blueprints) - - if blueprint.has_attribute("is_invincible"): - blueprint.set_attribute("is_invincible", "false") - - walker_speeds.append(get_walker_speed(blueprint)) - batch.append(carla.command.SpawnActor(blueprint, spawn_point)) - - spawned_walkers = [] - for index, response in enumerate(client.apply_batch_sync(batch, True)): - if response.error: - logging.error(response.error) - else: - spawned_walkers.append( - {"walker": response.actor_id, "speed": walker_speeds[index]} - ) - - records = spawn_walker_controllers(client, world, spawned_walkers) - start_walker_controllers(world, records, args, synchronous_master) - return records - - -def find_walker_spawn_points(world, count): - spawn_points = [] - attempts = max(count * WALKER_NAV_LOCATION_ATTEMPTS, count) - - for _ in range(attempts): - if len(spawn_points) >= count: - break - - location = world.get_random_location_from_navigation() - if location is not None: - location.z += WALKER_SPAWN_Z_OFFSET - spawn_points.append(carla.Transform(location)) - - return spawn_points - - -def get_walker_speed(blueprint): - if not blueprint.has_attribute("speed"): - return 0.0 - - speeds = blueprint.get_attribute("speed").recommended_values - if random.random() > PEDESTRIANS_RUNNING: - return float(speeds[1]) - return float(speeds[2]) - - -def spawn_walker_controllers(client, world, spawned_walkers): - controller_blueprint = world.get_blueprint_library().find("controller.ai.walker") - batch = [ - carla.command.SpawnActor( - controller_blueprint, carla.Transform(), record["walker"] - ) - for record in spawned_walkers - ] - - records = [] - uncontrolled_walkers = [] - for index, response in enumerate(client.apply_batch_sync(batch, True)): - walker = spawned_walkers[index] - if response.error: - logging.error(response.error) - uncontrolled_walkers.append(walker["walker"]) - else: - records.append( - { - "walker": walker["walker"], - "controller": response.actor_id, - "speed": walker["speed"], - } - ) - - destroy_actor_ids(client, uncontrolled_walkers) - return records - - -def start_walker_controllers(world, walker_records, args, synchronous_master): - if not walker_records: - return - - if args.synch and synchronous_master: - world.tick() - else: - world.wait_for_tick() - - speed_by_controller = { - record["controller"]: record["speed"] for record in walker_records - } - controllers = world.get_actors(list(speed_by_controller.keys())) - - for controller in controllers: - controller.start() - target = world.get_random_location_from_navigation() - if target is not None: - controller.go_to_location(target) - controller.set_max_speed(speed_by_controller[controller.id]) - - -def supervise_environment( - client, - world, - traffic_manager, - args, - vehicle_blueprints, - walker_blueprints, - vehicles, - vehicle_sensors, - collided_vehicles, - walker_records, - synchronous_master, -): - vehicle_state = build_vehicle_state(world, vehicles, time.monotonic()) - next_status = time.monotonic() - - while True: - tick_once(world, args, synchronous_master) - - now = time.monotonic() - if now < next_status: - continue - next_status = now + STATUS_INTERVAL - - previous_vehicles = set(vehicles) - vehicles[:] = live_actor_ids(world, vehicles) - missing_vehicle_ids = previous_vehicles - set(vehicles) - remove_vehicle_sensors(client, vehicle_sensors, missing_vehicle_ids) - - walker_records[:] = live_walker_records(client, world, walker_records) - - stuck_vehicles = find_stuck_vehicles(world, vehicles, vehicle_state, now) - collided_vehicle_ids = [ - actor_id for actor_id in vehicles if actor_id in collided_vehicles - ] - collided_vehicles.difference_update(collided_vehicle_ids) - - bad_vehicles = set(stuck_vehicles) | set(collided_vehicle_ids) - if bad_vehicles: - remove_vehicle_sensors(client, vehicle_sensors, bad_vehicles) - destroy_actor_ids(client, bad_vehicles) - vehicles[:] = [actor_id for actor_id in vehicles if actor_id not in bad_vehicles] - for actor_id in bad_vehicles: - vehicle_state.pop(actor_id, None) - - missing_vehicles = max(0, args.number_of_vehicles - len(vehicles)) - new_vehicles = spawn_vehicles( - client, - world, - traffic_manager, - vehicle_blueprints, - missing_vehicles, - synchronous_master, - ) - vehicles.extend(new_vehicles) - vehicle_state.update(build_vehicle_state(world, new_vehicles, now)) - attach_collision_sensors( - world, new_vehicles, vehicle_sensors, collided_vehicles - ) - - missing_walkers = max(0, args.number_of_walkers - len(walker_records)) - new_walkers = spawn_walkers( - client, - world, - walker_blueprints, - missing_walkers, - args, - synchronous_master, - ) - walker_records.extend(new_walkers) - - print( - ( - "environment: vehicles=%d/%d walkers=%d/%d " - "respawned_vehicles=%d respawned_walkers=%d " - "stuck_vehicles=%d collided_vehicles=%d" - ) - % ( - len(vehicles), - args.number_of_vehicles, - len(walker_records), - args.number_of_walkers, - len(new_vehicles), - len(new_walkers), - len(stuck_vehicles), - len(collided_vehicle_ids), - ), - flush=True, - ) - - -def tick_once(world, args, synchronous_master): - if args.synch and synchronous_master: - world.tick() - else: - world.wait_for_tick() - - -def live_actor_ids(world, actor_ids): - live_ids = {actor.id for actor in world.get_actors(actor_ids)} - return [actor_id for actor_id in actor_ids if actor_id in live_ids] - - -def live_walker_records(client, world, walker_records): - actor_ids = [] - for record in walker_records: - actor_ids.extend([record["walker"], record["controller"]]) - - live_ids = {actor.id for actor in world.get_actors(actor_ids)} - live_records = [] - orphan_ids = [] - - for record in walker_records: - walker_alive = record["walker"] in live_ids - controller_alive = record["controller"] in live_ids - if walker_alive and controller_alive: - live_records.append(record) - else: - if walker_alive: - orphan_ids.append(record["walker"]) - if controller_alive: - orphan_ids.append(record["controller"]) - - destroy_actor_ids(client, orphan_ids) - return live_records - - -def build_vehicle_state(world, vehicle_ids, now): - state = {} - for actor in world.get_actors(vehicle_ids): - state[actor.id] = { - "spawned_at": now, - "last_moved_at": now, - "last_location": location_tuple(actor.get_location()), - } - return state - - -def find_stuck_vehicles(world, vehicle_ids, vehicle_state, now): - stuck_vehicles = [] - actors = world.get_actors(vehicle_ids) - live_ids = set() - - for actor in actors: - live_ids.add(actor.id) - state = vehicle_state.setdefault( - actor.id, - { - "spawned_at": now, - "last_moved_at": now, - "last_location": location_tuple(actor.get_location()), - }, - ) - - location = location_tuple(actor.get_location()) - moved_distance = distance(location, state["last_location"]) - speed = vector_length(actor.get_velocity()) - - if speed > STUCK_SPEED_MPS or moved_distance > STUCK_DISTANCE_M: - state["last_moved_at"] = now - state["last_location"] = location - continue - - stuck_long_enough = now - state["last_moved_at"] >= STUCK_SECONDS - if stuck_long_enough: - stuck_vehicles.append(actor.id) - - for actor_id in list(vehicle_state.keys()): - if actor_id not in live_ids: - vehicle_state.pop(actor_id, None) - - return stuck_vehicles - - -def location_tuple(location): - return (location.x, location.y, location.z) - - -def distance(first, second): - return math.sqrt( - (first[0] - second[0]) ** 2 - + (first[1] - second[1]) ** 2 - + (first[2] - second[2]) ** 2 - ) - - -def vector_length(vector): - return math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z) - - -def attach_collision_sensors(world, vehicle_ids, vehicle_sensors, collided_vehicles): - if not vehicle_ids: - return - - blueprint = world.get_blueprint_library().find("sensor.other.collision") - for vehicle in world.get_actors(vehicle_ids): - if vehicle.id in vehicle_sensors: - continue - - try: - sensor = world.spawn_actor(blueprint, carla.Transform(), attach_to=vehicle) - except RuntimeError as error: - logging.warning("Could not attach collision sensor: %s", error) - continue - - sensor.listen( - lambda _event, actor_id=vehicle.id: collided_vehicles.add(actor_id) - ) - vehicle_sensors[vehicle.id] = sensor - - -def remove_vehicle_sensors(client, vehicle_sensors, vehicle_ids): - sensor_ids = [] - for vehicle_id in vehicle_ids: - sensor = vehicle_sensors.pop(vehicle_id, None) - if sensor is None: - continue - - try: - sensor.stop() - except RuntimeError as error: - logging.warning("Could not stop collision sensor: %s", error) - sensor_ids.append(sensor.id) - - destroy_actor_ids(client, sensor_ids) - - -def destroy_actor_ids(client, actor_ids): - if actor_ids: - client.apply_batch([carla.command.DestroyActor(actor_id) for actor_id in actor_ids]) - - -def cleanup(client, vehicles, vehicle_sensors, walker_records): - remove_vehicle_sensors(client, vehicle_sensors, list(vehicle_sensors.keys())) - - controllers = world_actors_from_records(client, walker_records, "controller") - for controller in controllers: - try: - controller.stop() - except RuntimeError as error: - logging.warning("Could not stop walker controller: %s", error) - - print("\ndestroying %d vehicles" % len(vehicles), flush=True) - destroy_actor_ids(client, vehicles) - - walker_actor_ids = [] - for record in walker_records: - walker_actor_ids.extend([record["walker"], record["controller"]]) - - print("\ndestroying %d walkers" % len(walker_records), flush=True) - destroy_actor_ids(client, walker_actor_ids) - - -def world_actors_from_records(client, records, key): - actor_ids = [record[key] for record in records] - return client.get_world().get_actors(actor_ids) - - -def main(): - args = parse_args() - logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO) - install_signal_handlers() - - client = connect_to_carla(args) - if args.wait_for_ego: - world = wait_for_ego_vehicle(client) - else: - world = client.get_world() - traffic_manager = client.get_trafficmanager(args.tm_port) - - vehicles = [] - vehicle_sensors = {} - collided_vehicles = set() - walker_records = [] - previous_weather = None - original_settings = None - changed_settings = False - - try: - previous_weather = apply_weather(world, args.weather) - original_settings, changed_settings, synchronous_master = configure_simulation( - world, traffic_manager, args - ) - - vehicle_blueprints = get_blueprints(world, args.filterv) - walker_blueprints = get_blueprints(world, args.filterw) - vehicles.extend( - spawn_vehicles( - client, - world, - traffic_manager, - vehicle_blueprints, - args.number_of_vehicles, - synchronous_master, - ) - ) - attach_collision_sensors( - world, vehicles, vehicle_sensors, collided_vehicles - ) - - walker_records.extend( - spawn_walkers( - client, - world, - walker_blueprints, - args.number_of_walkers, - args, - synchronous_master, - ) - ) - - print( - "Spawned %d vehicles and %d walkers, press Ctrl+C to exit." - % (len(vehicles), len(walker_records)), - flush=True, - ) - supervise_environment( - client, - world, - traffic_manager, - args, - vehicle_blueprints, - walker_blueprints, - vehicles, - vehicle_sensors, - collided_vehicles, - walker_records, - synchronous_master, - ) - - finally: - cleanup(client, vehicles, vehicle_sensors, walker_records) - restore_simulation(world, original_settings, changed_settings, previous_weather) - time.sleep(0.5) - - -if __name__ == "__main__": - try: - main() - except KeyboardInterrupt: - pass - finally: - print("\ndone.") diff --git a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl deleted file mode 100644 index 90623ac..0000000 --- a/deployments/helmfile/carla-simulation/carla-ros-bridge/values.yaml.gotmpl +++ /dev/null @@ -1,57 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - |- - ros2 launch carla_ros_bridge carla_ros_bridge.launch.py \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - host:=${HOST} \ - port:=${PORT} \ - timeout:=${TIMEOUT} \ - passive:=${PASSIVE} \ - publish_clock:=${PUBLISH_CLOCK} \ - synchronous_mode:=${SYNCHRONOUS_MODE} \ - synchronous_mode_wait_for_vehicle_control_command:=${SYNCHRONOUS_MODE_WAIT_FOR_VEHICLE_CONTROL_COMMAND} \ - fixed_delta_seconds:=${FIXED_DELTA_SECONDS} \ - start_unix_time_stamp:=${START_UNIX_TIME_STAMP} \ - ${TOWN:+town:=${TOWN}} \ - rt_factor:=${RT_FACTOR} \ - register_all_sensors:=${REGISTER_ALL_SENSORS} \ - native_interface:=${NATIVE_INTERFACE} \ - ego_vehicle_role_name:=${EGO_VEHICLE_ROLE_NAME} \ - publish_static_vehicles:=${PUBLISH_STATIC_VEHICLES} \ - publish_compressed_images:=${PUBLISH_COMPRESSED_IMAGES} \ - ignore_altitude:=${IGNORE_ALTITUDE} \ - ignore_tilt:=${IGNORE_TILT} \ - ${GEOREFERENCE_SUBSTITUTION:+georeference_substitution:=${GEOREFERENCE_SUBSTITUTION}} \ - grid_convergence:=${GRID_CONVERGENCE} \ - publish_etsi_messages:=${PUBLISH_ETSI_MESSAGES} \ - mapem_timer_period:=${MAPEM_TIMER_PERIOD} \ - spatem_timer_period:=${SPATEM_TIMER_PERIOD} \ - integrate_all_junctions:=${INTEGRATE_ALL_JUNCTIONS} \ - waypoints_search_distance:=${WAYPOINTS_SEARCH_DISTANCE} \ - lane_waypoints_count:=${LANE_WAYPOINTS_COUNT} - env: - IGNORE_ALTITUDE: true - RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - dependsOn: - - host: carla-server - port: 2000 - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml b/deployments/helmfile/carla-simulation/carla_ackermann_control/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/carla-ackermann-control/params.yml rename to deployments/helmfile/carla-simulation/carla_ackermann_control/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl similarity index 92% rename from deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl index 0b230ac..d6fde06 100644 --- a/deployments/helmfile/carla-simulation/carla-ackermann-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl @@ -4,7 +4,7 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} - image: ghcr.io/openads-project/carla-ros-bridge:latest_update-deployment_ci + image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-client/set_environment.py b/deployments/helmfile/carla-simulation/carla_client/set_environment.py similarity index 100% rename from deployments/helmfile/carla-simulation/carla-client/set_environment.py rename to deployments/helmfile/carla-simulation/carla_client/set_environment.py diff --git a/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl similarity index 69% rename from deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl index 1fb3cc5..9f33fcd 100644 --- a/deployments/helmfile/carla-simulation/carla-environment/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl @@ -4,15 +4,18 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} - image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.0 + image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 args: - /bin/bash - -ic - exec python3 /set_environment.py - gpu: true + env: + CARLA_HOST: carla-server + CARLA_PORT: 2000 volumes: - mountPath: /set_environment.py data: | {{ readFile "set_environment.py" | indent 6 }} - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | default "/.Xauthority" | quote }} + dependsOn: + - host: carla-server + port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl similarity index 65% rename from deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl index 6e5a370..f3e7f8e 100644 --- a/deployments/helmfile/carla-simulation/carla-control-active-bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl @@ -5,6 +5,7 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} name: carla-control-active-bridge + image: ghcr.io/openads-project/monitoring:v1.0.0 args: - ros2 - run @@ -17,10 +18,14 @@ openadservice: - --import - std_msgs env: + NAME: carla_control_active_bridge RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + CONFIG: {{ (default "/docker-ros/ws/install/monitoring/share/monitoring/config/conf.rviz" (env "CONFIG")) | quote }} dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-converter/params.yml b/deployments/helmfile/carla-simulation/carla_converter/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/carla-converter/params.yml rename to deployments/helmfile/carla-simulation/carla_converter/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl similarity index 85% rename from deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl index 8157711..4d52666 100644 --- a/deployments/helmfile/carla-simulation/carla-converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl @@ -12,7 +12,6 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml" (env "PARAMS")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl similarity index 91% rename from deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl index eb22dc2..bf322b9 100644 --- a/deployments/helmfile/carla-simulation/carla-manual-control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl @@ -4,6 +4,7 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} + image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl new file mode 100644 index 0000000..21dd2b2 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl @@ -0,0 +1,23 @@ +openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} + image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 + env: + IGNORE_ALTITUDE: true + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 + x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} + x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py similarity index 99% rename from deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py rename to deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py index 456e3d8..c0ef0df 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/scenario_checker.py +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py @@ -763,7 +763,7 @@ def _runtime_asset_path(value: str, scenario_root: Path) -> Path: resolved = reference.resolve() else: normalized = value.strip().replace("\\", "/").lstrip("/") - repository_prefix = "carla-simulation/scenarios/" + repository_prefix = "scenarios/" if repository_prefix in normalized: normalized = normalized.split(repository_prefix, 1)[1] resolved = (root / normalized).resolve() @@ -776,7 +776,7 @@ def _runtime_asset_path(value: str, scenario_root: Path) -> Path: def _scenario_root_from_file(scenario: Path) -> Path: for parent in scenario.resolve().parents: - if parent.name == "scenarios" and parent.parent.name == "carla-simulation": + if parent.name == "scenarios": return parent return scenario.resolve().parent diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl similarity index 81% rename from deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 94eb8e2..a1f406c 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -5,13 +5,14 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} name: carla-scenario-runner-ros-automated-testing + image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.1 args: - /bin/bash - -ic - |- set -e python3 /scenario_checker.py validate-runtime "/${SCENARIO_FILE}" - exec python3 -u ../additional-files/scenario_runner.py \ + exec python3 -u "${SCENARIO_RUNNER_PATH}/scenario_runner.py" \ --host "${CARLA_HOST}" \ --openscenario /${SCENARIO_FILE} \ --output \ @@ -24,17 +25,17 @@ openadservice: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SCENARIO_DIRECTORY: /scenarios SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | {{ readFile "scenario_checker.py" | indent 6 }} - - mountPath: /carla-simulation/scenarios - hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios + - mountPath: /scenarios + hostPath: /work/geller/openads-project/openadsim-k8s/scenarios dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py similarity index 99% rename from deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py rename to deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py index 456e3d8..c0ef0df 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/scenario_checker.py +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py @@ -763,7 +763,7 @@ def _runtime_asset_path(value: str, scenario_root: Path) -> Path: resolved = reference.resolve() else: normalized = value.strip().replace("\\", "/").lstrip("/") - repository_prefix = "carla-simulation/scenarios/" + repository_prefix = "scenarios/" if repository_prefix in normalized: normalized = normalized.split(repository_prefix, 1)[1] resolved = (root / normalized).resolve() @@ -776,7 +776,7 @@ def _runtime_asset_path(value: str, scenario_root: Path) -> Path: def _scenario_root_from_file(scenario: Path) -> Path: for parent in scenario.resolve().parents: - if parent.name == "scenarios" and parent.parent.name == "carla-simulation": + if parent.name == "scenarios": return parent return scenario.resolve().parent diff --git a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl similarity index 79% rename from deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index c7bbb86..08424d5 100644 --- a/deployments/helmfile/carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -5,18 +5,19 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} name: carla-scenario-runner-ros-manual-testing + image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.1 args: - /bin/bash - -ic - |- set -e - python3 /scenario_checker.py validate-runtime /carla-simulation/scenarios - SCENARIOS_DIR=/carla-simulation/scenarios + python3 /scenario_checker.py validate-runtime /scenarios + SCENARIOS_DIR=/scenarios if [ -n "${CUSTOM_OPENDRIVE}" ]; then SCENARIOS_DIR="$(dirname "/${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - scenario_runner_path:=${SCENARIO_RUNNER_ROOT} \ + scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ scenarios_dir:=${SCENARIOS_DIR} env: CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} @@ -25,17 +26,17 @@ openadservice: RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SCENARIO_DIRECTORY: /scenarios SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /scenario_checker.py data: | {{ readFile "scenario_checker.py" | indent 6 }} - - mountPath: /carla-simulation/scenarios - hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/scenarios + - mountPath: /scenarios + hostPath: /work/geller/openads-project/openadsim-k8s/scenarios dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini b/deployments/helmfile/carla-simulation/carla_server/carla-server/DefaultEngine.ini similarity index 100% rename from deployments/helmfile/carla-simulation/carla-server/DefaultEngine.ini rename to deployments/helmfile/carla-simulation/carla_server/carla-server/DefaultEngine.ini diff --git a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl similarity index 85% rename from deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl index c5f1f6a..3a8bcbd 100644 --- a/deployments/helmfile/carla-simulation/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl @@ -4,11 +4,18 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} - image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.0 + image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.1 args: - - bash + - /bin/bash - -ic - - ./Linux/CarlaUnreal.sh -nosound -RenderOffScreen --ros2 + - |- + ./Linux/CarlaUnreal.sh \ + -nosound \ + -RenderOffScreen \ + --ros2 \ + -carla-rpc-port=${CARLA_PORT} + env: + CARLA_PORT: 2000 volumes: - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini data: | diff --git a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl similarity index 58% rename from deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl index f87e43e..a4c3d06 100644 --- a/deployments/helmfile/carla-simulation/carla-spawn-objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl @@ -4,29 +4,23 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} - args: - - /bin/bash - - -ic - - |- - ros2 launch carla_spawn_objects carla_example_ego_vehicle.launch.py \ - blueprints_directory:=${BLUEPRINTS_DIRECTORY} \ - objects_directory:=${OBJECTS_DIRECTORY} \ - ${SPAWN_POINT:+spawn_point_ego_vehicle:=${SPAWN_POINT}} \ - ${SENSORS:+objects_definition_file:=${SENSORS}} + image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: BLUEPRINTS_DIRECTORY: /config/blueprints + OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "SENSORS")) | quote }} OBJECTS_DIRECTORY: /config/objects RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SENSORS: {{ (default "" (env "SENSORS")) | quote }} - SPAWN_POINT: {{ (default "" (env "SPAWN_POINT")) | quote }} + SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} volumes: - - mountPath: /config - hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/config/carla_ros_bridge + - mountPath: /config/objects + hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/carla_spawn_objects/objects + - mountPath: /config/blueprints + hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/carla_spawn_objects/blueprints dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl deleted file mode 100644 index da1d381..0000000 --- a/deployments/helmfile/carla-simulation/ros-middleware-bridge/values.yaml.gotmpl +++ /dev/null @@ -1,30 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml" (env "PARAMS")) | quote }} - SIDE_A_NAME: {{ (default "bridge_fast" (env "SIDE_A_NAME")) | quote }} - SIDE_A_RMW_IMPLEMENTATION: {{ (default "rmw_fastrtps_cpp" (env "SIDE_A_RMW_IMPLEMENTATION")) | quote }} - SIDE_A_TX_PORT: {{ (default "17001" (env "SIDE_A_TX_PORT")) | quote }} - SIDE_A_RX_PORT: {{ (default "17002" (env "SIDE_A_RX_PORT")) | quote }} - SIDE_B_NAME: {{ (default "bridge_zenoh" (env "SIDE_B_NAME")) | quote }} - SIDE_B_RMW_IMPLEMENTATION: {{ (default "rmw_zenoh_cpp" (env "SIDE_B_RMW_IMPLEMENTATION")) | quote }} - SIDE_B_TX_PORT: {{ (default "17002" (env "SIDE_B_TX_PORT")) | quote }} - SIDE_B_RX_PORT: {{ (default "17001" (env "SIDE_B_RX_PORT")) | quote }} - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml - dependsOn: - - host: carla-server - port: 2000 - - host: zenoh-router - port: 7447 diff --git a/deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml b/deployments/helmfile/carla-simulation/ros_middleware_bridge/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/ros-middleware-bridge/params.yml rename to deployments/helmfile/carla-simulation/ros_middleware_bridge/params.yml diff --git a/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl new file mode 100644 index 0000000..1ba2c8c --- /dev/null +++ b/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl @@ -0,0 +1,21 @@ +openadservice: + namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} +{{- if env "NODE" }} + nodeSelector: + kubernetes.io/hostname: {{ env "NODE" | quote }} +{{- end }} + env: + RMW_IMPLEMENTATION: rmw_zenoh_cpp + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + RUST_LOG: zenoh=warn + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + rosParamFileData: | +{{ readFile "params.yml" | indent 4 }} + rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml + dependsOn: + - host: carla-server + port: 2000 + - host: zenoh-router + port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml b/deployments/helmfile/carla-simulation/simulation_adapter/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/carla-simulation-adapter/params.yml rename to deployments/helmfile/carla-simulation/simulation_adapter/params.yml diff --git a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl similarity index 89% rename from deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl rename to deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl index 09da8ad..b3fb287 100644 --- a/deployments/helmfile/carla-simulation/carla-simulation-adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl @@ -4,7 +4,6 @@ openadservice: nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} - name: carla-simulation-adapter env: NAMESPACE: /carla INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data @@ -23,11 +22,12 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml" (env "PARAMS")) | quote }} LOAD_LANELET_MAP: {{ (default "true" (env "LANELET_RELOAD")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml dependsOn: + - host: carla-server + port: 2000 - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 436a822..2cd9014 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -11,62 +11,62 @@ releases: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment condition: profileGroups.carla.enabled - values: [carla-simulation/carla-ackermann-control/values.yaml.gotmpl] + values: [carla-simulation/carla_ackermann_control/values.yaml.gotmpl] - name: '{{ printf "%s-carla-client" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.1.0-helm condition: profileGroups.traffic.enabled - values: [carla-simulation/carla-client/values.yaml.gotmpl] + values: [carla-simulation/carla_client/values.yaml.gotmpl] - name: '{{ printf "%s-carla-control-active-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4 condition: profileGroups.carla.enabled - values: [carla-simulation/carla-control-active-bridge/values.yaml.gotmpl] + values: [carla-simulation/carla_control_active_bridge/values.yaml.gotmpl] - name: '{{ printf "%s-carla-converter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter - version: 1.3.1-main + version: 1.3.2-main condition: profileGroups.carla.enabled - values: [carla-simulation/carla-converter/values.yaml.gotmpl] + values: [carla-simulation/carla_converter/values.yaml.gotmpl] - name: '{{ printf "%s-carla-manual-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.1.0-carla-manual-control-update-deployment condition: profileGroups.carla.enabled - values: [carla-simulation/carla-manual-control/values.yaml.gotmpl] + values: [carla-simulation/carla_manual_control/values.yaml.gotmpl] - name: '{{ printf "%s-carla-ros-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment condition: profileGroups.carla.enabled - values: [carla-simulation/carla-ros-bridge/values.yaml.gotmpl] + values: [carla-simulation/carla_ros_bridge/values.yaml.gotmpl] - name: '{{ printf "%s-carla-scenario-runner-ros-automated-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm condition: profileGroups.automated-testing.enabled - values: [carla-simulation/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] + values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] - name: '{{ printf "%s-carla-scenario-runner-ros-manual-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm condition: profileGroups.manual-testing.enabled - values: [carla-simulation/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] + values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] - name: '{{ printf "%s-carla-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator version: 0.1.0-helm condition: profileGroups.carla.enabled - values: [carla-simulation/carla-server/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter - version: 1.4.1-main - condition: profileGroups.carla.enabled - values: [carla-simulation/carla-simulation-adapter/values.yaml.gotmpl] + values: [carla-simulation/carla_server/carla-server/values.yaml.gotmpl] - name: '{{ printf "%s-carla-spawn-objects" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment condition: profileGroups.carla.enabled - values: [carla-simulation/carla-spawn-objects/values.yaml.gotmpl] + values: [carla-simulation/carla_spawn_objects/values.yaml.gotmpl] - name: '{{ printf "%s-ros-middleware-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge version: 1.2.1-main condition: profileGroups.carla.enabled - values: [carla-simulation/ros-middleware-bridge/values.yaml.gotmpl] + values: [carla-simulation/ros_middleware_bridge/values.yaml.gotmpl] +- name: '{{ printf "%s-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' + chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter + version: 1.4.2-main + condition: profileGroups.carla.enabled + values: [carla-simulation/simulation_adapter/values.yaml.gotmpl] # openadstack - name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control @@ -92,7 +92,7 @@ releases: values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] - name: '{{ printf "%s-bag-recorder" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4-main + version: 1.0.0-main condition: profileGroups.bag-recording.enabled values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] - name: '{{ printf "%s-rviz-carla" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 46717d7..9fbf692 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -5,6 +5,7 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} name: robot-state-publisher + image: ghcr.io/openads-project/monitoring:v1.0.0 args: - {{ "/bin/bash" | quote }} - {{ "-ic" | quote }} From eb48cc34c143bf8e56249b2458fd05dd07008aea Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 13:08:27 +0200 Subject: [PATCH 18/80] update --- .env | 14 +++++++------- carla-simulation/carla_server/docker-compose.yml | 2 +- deployments/helmfile/CMD.md | 3 ++- .../carla_control_active_bridge/values.yaml.gotmpl | 1 - 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.env b/.env index 8643c23..e4a8990 100644 --- a/.env +++ b/.env @@ -1,21 +1,21 @@ ### Runtime Profiles -COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning +COMPOSE_PROFILES=carla,traffic,automated-testing,no-perception,planning ### Vehicle Configuration VEHICLE=karl SENSORS=global-sensors.json,karl-minimal.json ### Map Configuration -MAP=campus -CUSTOM_OPENDRIVE= -CUSTOM_LANELET= -SPAWN_POINT=50.787510,6.045938,260.0,90.0,wgs84 +MAP= +CUSTOM_OPENDRIVE=scenarios/simple-scenario/synthetic_curve_cut_in.xodr +CUSTOM_LANELET=scenarios/simple-scenario/synthetic_curve_cut_in.osm +SPAWN_POINT= ORIGIN_LAT= ORIGIN_LON= -LANELET_RELOAD=true +LANELET_RELOAD=false ### Scenario Configuration -SCENARIO_FILE= +SCENARIO_FILE=scenarios/simple-scenario/synthetic_curve_cut_in.xosc ### Additional Options USE_SIM_TIME=true diff --git a/carla-simulation/carla_server/docker-compose.yml b/carla-simulation/carla_server/docker-compose.yml index e53a41e..50c9c0b 100644 --- a/carla-simulation/carla_server/docker-compose.yml +++ b/carla-simulation/carla_server/docker-compose.yml @@ -21,7 +21,7 @@ services: retries: 3 image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.1 environment: - CARLA_PORT: 2000 + CARLA_PORT: ${CARLA_PORT:-2000} # command: # - /bin/bash # - -ic diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index 06f45c2..9116eab 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -98,9 +98,10 @@ set `CARLA_HOST` explicitly to the prefixed service name: its default is set -a . ./.env set +a -export COMPOSE_PROFILES=carla,traffic export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server +export NODE=i220043.ika.rwth-aachen.de + helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml template helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml sync ``` diff --git a/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl index f3e7f8e..1324dec 100644 --- a/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl @@ -5,7 +5,6 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} name: carla-control-active-bridge - image: ghcr.io/openads-project/monitoring:v1.0.0 args: - ros2 - run From 86d535c2eef940b4d775a4315486d3feed097256 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 14:14:40 +0200 Subject: [PATCH 19/80] update volume mounting --- deployments/helmfile/CMD.md | 3 +- .../carla_ros_bridge/values.yaml.gotmpl | 3 + .../values.yaml.gotmpl | 2 +- .../values.yaml.gotmpl | 2 +- .../carla-server/values.yaml.gotmpl | 2 +- .../blueprints/cameras.json | 84 ++++++++++++++ .../carla_spawn_objects/blueprints/karl.json | 102 +++++++++++++++++ .../blueprints/lidars.json | 60 ++++++++++ .../carla_spawn_objects/blueprints/props.json | 22 ++++ .../blueprints/radars.json | 23 ++++ .../carla_spawn_objects/blueprints/risus.json | 107 ++++++++++++++++++ .../blueprints/shuttle.json | 76 +++++++++++++ .../objects/global-sensors.json | 24 ++++ .../carla_spawn_objects/objects/karl-all.json | 63 +++++++++++ .../objects/karl-basic.json | 58 ++++++++++ .../objects/karl-minimal.json | 49 ++++++++ .../carla_spawn_objects/objects/props.json | 19 ++++ .../carla_spawn_objects/objects/rita-all.json | 52 +++++++++ .../objects/rita-minimal.json | 52 +++++++++ .../objects/shuttle-all.json | 59 ++++++++++ .../objects/shuttle-basic.json | 59 ++++++++++ .../objects/shuttle-minimal.json | 49 ++++++++ .../carla_spawn_objects/values.yaml.gotmpl | 4 +- .../robot-state-publisher/values.yaml.gotmpl | 2 +- .../lanelet2_map_server/values.yaml.gotmpl | 4 +- .../bag-recorder/values.yaml.gotmpl | 2 +- .../monitoring/rviz-carla/values.yaml.gotmpl | 2 +- 27 files changed, 974 insertions(+), 10 deletions(-) create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json create mode 100644 deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index 9116eab..e5771c1 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -101,6 +101,7 @@ set +a export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server export NODE=i220043.ika.rwth-aachen.de +export OPENADSIM_PATH=/work/geller/openads-project/openadsim # absolute checkout path on the selected node helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml template helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml sync @@ -108,4 +109,4 @@ helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml Rerun preparation after changing the source Helmfile, the local base chart, or a parent chart reference. Changes only to service values take effect on the -next `template` or `sync`. Preparation alone does not deploy anything. +next `template` or `sync`. `OPENADSIM_PATH` must be the absolute repository path on the selected Kubernetes node. Preparation alone does not deploy anything. diff --git a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl index 21dd2b2..1819e3f 100644 --- a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl @@ -14,6 +14,9 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} + volumes: + - mountPath: /opendrive.xodr + hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_OPENDRIVE") | clean) "" (ne (env "CUSTOM_OPENDRIVE") "")) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index a1f406c..6bd189d 100644 --- a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -35,7 +35,7 @@ openadservice: data: | {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /scenarios - hostPath: /work/geller/openads-project/openadsim-k8s/scenarios + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 08424d5..9562d50 100644 --- a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -36,7 +36,7 @@ openadservice: data: | {{ readFile "scenario_checker.py" | indent 6 }} - mountPath: /scenarios - hostPath: /work/geller/openads-project/openadsim-k8s/scenarios + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl index 3a8bcbd..a07d6b5 100644 --- a/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl @@ -15,7 +15,7 @@ openadservice: --ros2 \ -carla-rpc-port=${CARLA_PORT} env: - CARLA_PORT: 2000 + CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini data: | diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json new file mode 100644 index 0000000..cb392b7 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json @@ -0,0 +1,84 @@ +{ + "blueprints": [ + { + "id": "camera_rgb_1280x720_fov110_f2", + "type": "sensor.camera.rgb", + "image_size_x": 1280, + "image_size_y": 720, + "fov": 110.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_rgb_1280x720_fov110_f4", + "type": "sensor.camera.rgb", + "image_size_x": 1280, + "image_size_y": 720, + "fov": 110.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_rgb_2048x768_fov150", + "type": "sensor.camera.rgb", + "image_size_x": 2048, + "image_size_y": 768, + "fov": 150.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_rgb_1920x1080_fov90", + "type": "sensor.camera.rgb", + "image_size_x": 1920, + "image_size_y": 1080, + "fov": 90.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_rgb_400x300_fov90", + "type": "sensor.camera.rgb", + "image_size_x": 400, + "image_size_y": 300, + "fov": 90.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_depth_1280x720", + "type": "sensor.camera.depth", + "image_size_x": 1280, + "image_size_y": 720, + "fov": 90.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_semantic_1280x720", + "type": "sensor.camera.semantic_segmentation", + "image_size_x": 1280, + "image_size_y": 720, + "fov": 90.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_rgb_view", + "type": "sensor.camera.rgb", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0}, + "image_size_x": 1280, + "image_size_y": 720, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_traffic_light_2048x768_fov150", + "type": "sensor.camera.rgb", + "image_size_x": 2048, + "image_size_y": 768, + "fov": 150.0, + "post_process_profile": "Town10HD_Opt" + }, + { + "id": "camera_traffic_light_1280x720_fov110", + "type": "sensor.camera.rgb", + "image_size_x": 1280, + "image_size_y": 720, + "fov": 110.0, + "post_process_profile": "Town10HD_Opt" + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json new file mode 100644 index 0000000..e01e45a --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json @@ -0,0 +1,102 @@ +{ + "blueprints": [ + { + "id": "karl_rack_lidars", + "type": "group", + "children": [ + { + "id": "lidar_front", + "type": "blueprint.lidar_aeries_ii", + "spawn_point": {"x": 2.8499, "y": 0.6455, "z": 0.0614, "roll": 0.0, "pitch": 0.0, "yaw": -3.4377} + }, + { + "id": "lidar_fl", + "type": "blueprint.lidar_ouster_os1_128", + "spawn_point": {"x": 2.89, "y": 1.444, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": 45.0} + }, + { + "id": "lidar_fr", + "type": "blueprint.lidar_ouster_os1_128", + "spawn_point": {"x": 2.89, "y": 0.04, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": -45.0} + }, + { + "id": "lidar_rr", + "type": "blueprint.lidar_ouster_os1_128", + "spawn_point": {"x": 0.04, "y": 0.04, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": -135.0} + }, + { + "id": "lidar_rl", + "type": "blueprint.lidar_ouster_os1_128", + "spawn_point": {"x": 0.04, "y": 1.444, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": 135.0} + } + ] + }, + { + "id": "karl_rack_cameras", + "type": "group", + "children": [ + { + "id": "camera_front_left", + "type": "blueprint.camera_rgb_1280x720_fov110_f4", + "spawn_point": {"x": 2.8146, "y": 1.4637, "z": -0.0013, "roll": -0.1166, "pitch": 5.9344, "yaw": 45.1565} + }, + { + "id": "camera_front_center", + "type": "blueprint.camera_rgb_1280x720_fov110_f4", + "spawn_point": {"x": 2.9592, "y": 0.7903, "z": 0.0061, "roll": 0.1078, "pitch": 5.5148, "yaw": 0.3433} + }, + { + "id": "camera_front_right", + "type": "blueprint.camera_rgb_1280x720_fov110_f4", + "spawn_point": {"x": 2.9388, "y": 0.0951, "z": 0.0067, "roll": 0.1934, "pitch": 5.3588, "yaw": -43.6624} + }, + { + "id": "camera_mid_right", + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "spawn_point": {"x": 1.685, "y": 0.0027, "z": 0.0021, "roll": 0.3284, "pitch": 20.9842, "yaw": -89.2525} + }, + { + "id": "camera_rear_right", + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "spawn_point": {"x": 0.1231, "y": 0.0352, "z": -0.012, "roll": -0.1653, "pitch": 20.5007, "yaw": -136.7474} + }, + { + "id": "camera_rear_center", + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "spawn_point": {"x": -0.0226, "y": 0.7404, "z": 0.105, "roll": -0.2975, "pitch": 0.3582, "yaw": -179.7672} + }, + { + "id": "camera_rear_left", + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "spawn_point": {"x": 0.0601, "y": 1.3474, "z": 0.0082, "roll": 0.1775, "pitch": 20.3891, "yaw": 135.3664} + }, + { + "id": "camera_mid_left", + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "spawn_point": {"x": 1.5602, "y": 1.4506, "z": -0.0322, "roll": 1.0142, "pitch": 19.9258, "yaw": 90.6135} + } + ] + }, + { + "id": "karl_rack_radars", + "type": "group", + "children": [ + { + "id": "radar_fl", + "type": "blueprint.radar_short_range", + "spawn_point": {"x": 2.0505, "y": 0.86, "z": 0.73, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} + }, + { + "id": "radar_f", + "type": "blueprint.radar_mid_range", + "spawn_point": {"x": 2.3105, "y": -0.3, "z": 0.25, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "id": "radar_fr", + "type": "blueprint.radar_short_range", + "spawn_point": {"x": 2.0505, "y": -0.86, "z": 0.73, "roll": 0.0, "pitch": 0.0, "yaw": -90.0} + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json new file mode 100644 index 0000000..608191f --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json @@ -0,0 +1,60 @@ +{ + "blueprints": [ + { + "id": "lidar_ouster_os1_128", + "type": "sensor.lidar.ray_cast", + "range": 75, + "channels": 128, + "points_per_second": 2621440, + "upper_fov": 22.5, + "lower_fov": -22.5, + "rotation_frequency": 20, + "sensor_tick": 0.1 + }, + { + "id": "lidar_ouster_os1_64", + "type": "sensor.lidar.ray_cast", + "range": 75, + "channels": 64, + "points_per_second": 1310720, + "upper_fov": 22.5, + "lower_fov": -22.5, + "rotation_frequency": 20, + "sensor_tick": 0.1 + }, + { + "id": "lidar_ouster_os1_32", + "type": "sensor.lidar.ray_cast", + "range": 50, + "channels": 32, + "points_per_second": 327680, + "upper_fov": 15.0, + "lower_fov": -25.0, + "rotation_frequency": 20, + "noise_stddev": 0.0 + }, + { + "id": "lidar_aeries_ii", + "type": "sensor.lidar.ray_cast", + "range": 500, + "channels": 300, + "points_per_second": 2048000, + "upper_fov": 15.0, + "lower_fov": -15.0, + "horizontal_fov": 120.0, + "rotation_frequency": 20, + "sensor_tick": 0.1 + }, + { + "id": "lidar_velodyne_vlp16", + "type": "sensor.lidar.ray_cast", + "range": 100, + "channels": 16, + "points_per_second": 600000, + "upper_fov": 15.0, + "lower_fov": -15.0, + "rotation_frequency": 20, + "sensor_tick": 0.1 + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json new file mode 100644 index 0000000..9e8e0d1 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json @@ -0,0 +1,22 @@ +{ + "blueprints": [ + { + "id": "beacon", + "type": "group", + "physical_object": "static.prop.beacon", + "children": [] + }, + { + "id": "beaconwithlight", + "type": "group", + "physical_object": "static.prop.beaconwithlight", + "children": [] + }, + { + "id": "roadworkbarrier", + "type": "group", + "physical_object": "static.prop.roadworkbarrier", + "children": [] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json new file mode 100644 index 0000000..79b591c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json @@ -0,0 +1,23 @@ +{ + "blueprints": [ + { + "id": "radar_long_range", + "type": "sensor.other.radar", + "horizontal_fov": 30.0, + "vertical_fov": 10.0, + "range": 200.0 + }, + { + "id": "radar_mid_range", + "type": "sensor.other.radar", + "horizontal_fov": 110.0, + "vertical_fov": 23.0 + }, + { + "id": "radar_short_range", + "type": "sensor.other.radar", + "horizontal_fov": 130.0, + "vertical_fov": 14.0 + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json new file mode 100644 index 0000000..307f519 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json @@ -0,0 +1,107 @@ +{ + "blueprints": [ + { + "id": "srisu", + "type": "group", + "physical_object": "static.prop.srisu", + "children": [ + { + "id": "sensor_platform", + "type": "blueprint.srisu_sensor_platform", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.ideal_objects", + "id": "v2x_objectlist", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, + "range": 50, + "hit_point_blanking_radius": 2.0 + } + ] + }, + { + "id": "srisu_no_sensor_platform", + "type": "group", + "physical_object": "static.prop.srisu", + "children": [ + { + "type": "sensor.pseudo.ideal_objects", + "id": "v2x_objectlist", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, + "range": 50, + "hit_point_blanking_radius": 2.0 + } + ] + }, + { + "id": "srisu_sensor_platform", + "type": "group", + "children": [ + { + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "id": "camera_left", + "spawn_point": {"x": 0.3, "y": 0.0, "z": -0.7, "roll": 0.0, "pitch": 25.0, "yaw": 35.0} + }, + { + "type": "blueprint.camera_rgb_1280x720_fov110_f2", + "id": "camera_right", + "spawn_point": {"x": 0.3, "y": 0.0, "z": -0.7, "roll": 0.0, "pitch": 25.0, "yaw": -35.0} + }, + { + "type": "blueprint.lidar_ouster_os1_128", + "id": "lidar_top", + "spawn_point": {"x": 0.41, "y": 0.04, "z": 0.17, "roll": 0.0, "pitch": 27.54, "yaw": 0.0}, + "range": 120.0 + }, + { + "type": "blueprint.lidar_ouster_os1_128", + "id": "lidar_bottom", + "spawn_point": {"x": 0.14, "y": 0.01, "z": -0.14, "roll": 0.0, "pitch": 41.36, "yaw": 0.0}, + "range": 120.0 + } + ] + }, + { + "id": "mrisu", + "type": "group", + "physical_object": "static.prop.mrisu", + "children": + [ + { + "id": "sensor_platform", + "type": "blueprint.mrisu_sensor_platform", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.69, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.ideal_objects", + "id": "v2x_objectlist", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, + "range": 50, + "hit_point_blanking_radius": 1.0 + } + ] + }, + { + "id": "mrisu_sensor_platform", + "type": "group", + "children": + [ + { + "type": "blueprint.camera_rgb_1280x720_fov110_f4", + "id": "camera_left", + "spawn_point": {"x": 0.075, "y": 0.098, "z": 0.071, "roll": 0.0, "pitch": 0.0, "yaw": 35.0} + }, + { + "type": "blueprint.camera_rgb_1280x720_fov110_f4", + "id": "camera_right", + "spawn_point": {"x": 0.075, "y": -0.0915, "z": 0.071, "roll": 0.0, "pitch": 0.0, "yaw": -35.0} + }, + { + "type": "blueprint.lidar_ouster_os1_128", + "id": "lidar", + "spawn_point": {"x": 0.001, "y": 0.0, "z": 0.161, "roll": 0.0, "pitch": 0.0, "yaw": 180.0} + } + ] + } + ] +} \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json new file mode 100644 index 0000000..9d2030c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json @@ -0,0 +1,76 @@ +{ + "blueprints": [ + { + "id": "shuttle_lidars", + "type": "group", + "children": [ + { + "id": "lidar_front_left", + "type": "blueprint.lidar_ouster_os1_32", + "spawn_point": {"x": 2.235, "y": 0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": 28.499} + }, + { + "id": "lidar_front_right", + "type": "blueprint.lidar_ouster_os1_32", + "spawn_point": {"x": 2.235, "y": -0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": -28.499} + }, + { + "id": "lidar_rear_left", + "type": "blueprint.lidar_ouster_os1_32", + "spawn_point": {"x": -2.235, "y": 0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": 151.501} + }, + { + "id": "lidar_rear_right", + "type": "blueprint.lidar_ouster_os1_32", + "spawn_point": {"x": -2.235, "y": -0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": -151.501} + } + ] + }, + { + "id": "shuttle_cameras", + "type": "group", + "children": [ + { + "id": "camera_front_left_1", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": 2.333, "y": 0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": -15.000} + }, + { + "id": "camera_front_right_1", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": 2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 15.000} + }, + { + "id": "camera_rear_left_1", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": -2.333, "y": 0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": -165.000} + }, + { + "id": "camera_rear_right_1", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": -2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 165.000} + }, + { + "id": "camera_front_left_2", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": 2.260, "y": 0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": 105.000} + }, + { + "id": "camera_front_right_2", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": 2.260, "y": -0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": -105.000} + }, + { + "id": "camera_rear_left_2", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": -2.260, "y": 0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": 75.000} + }, + { + "id": "camera_rear_right_2", + "type": "blueprint.camera_rgb_2048x768_fov150", + "spawn_point": {"x": -2.260, "y": -0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": -75.000} + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json new file mode 100644 index 0000000..6c96de7 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json @@ -0,0 +1,24 @@ +{ + "objects": [ + { + "type": "sensor.pseudo.actor_list", + "id": "actor_list" + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.pseudo.markers", + "id": "markers" + }, + { + "type": "sensor.pseudo.opendrive_map", + "id": "carla_map" + }, + { + "type": "sensor.pseudo.traffic_lights", + "id": "traffic_lights" + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json new file mode 100644 index 0000000..40eef55 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json @@ -0,0 +1,63 @@ +{ + "objects": [ + { + "type": "vehicle.ika.karl", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.karl_rack_lidars", + "id": "karl_rack_lidars", + "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.karl_rack_cameras", + "id": "karl_rack_cameras", + "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.karl_rack_radars", + "id": "karl_rack_radars", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu" + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json new file mode 100644 index 0000000..32e0e3c --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json @@ -0,0 +1,58 @@ +{ + "objects": [ + { + "type": "vehicle.ika.karl", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.karl_rack_lidars", + "id": "karl_rack_lidars", + "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_traffic_light_1280x720_fov110", + "id": "karl_rack_cameras/camera_front_center", + "spawn_point": {"x": 0.8337, "y": 0.0953, "z": 1.9161, "roll": 0.1078, "pitch": 5.5148, "yaw": 0.3433} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu" + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json new file mode 100644 index 0000000..d70c632 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json @@ -0,0 +1,49 @@ +{ + "objects": [ + { + "type": "vehicle.ika.karl", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu", + "ignore_tilt": true + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json new file mode 100644 index 0000000..5cf6183 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json @@ -0,0 +1,19 @@ +{ + "objects": [ + { + "type": "blueprint.beacon", + "id": "beacon1", + "spawn_point": {"x": -33.0, "y": 173.0, "z": 254.8, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} + }, + { + "type": "blueprint.beaconwithlight", + "id": "beaconwithlight1", + "spawn_point": {"x": -33.0, "y": 168.5, "z": 254.8, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} + }, + { + "type": "blueprint.roadworkbarrier", + "id": "roadworkbarrier1", + "spawn_point": {"x": -33.0, "y": 170.8, "z": 255.5, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json new file mode 100644 index 0000000..73a97da --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json @@ -0,0 +1,52 @@ +{ + "objects": [ + { + "type": "blueprint.srisu", + "id": "srisu1", + "spawn_point": { + "lat": 50.779692, + "lon": 6.050775, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": -109.93 + } + }, + { + "type": "blueprint.srisu", + "id": "srisu2", + "spawn_point": { + "lat": 50.779457, + "lon": 6.050782, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": 117.76 + } + }, + { + "type": "blueprint.srisu", + "id": "srisu3", + "spawn_point": { + "lat": 50.779446, + "lon": 6.050505, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": 42.48 + } + }, + { + "type": "blueprint.srisu", + "id": "srisu4", + "spawn_point": { + "lat": 50.779656, + "lon": 6.050454, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": -32.30 + } + } + ] +} \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json new file mode 100644 index 0000000..dbbbcea --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json @@ -0,0 +1,52 @@ +{ + "objects": [ + { + "type": "blueprint.srisu_no_sensor_platform", + "id": "srisu1", + "spawn_point": { + "lat": 50.779692, + "lon": 6.050775, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": -109.93 + } + }, + { + "type": "blueprint.srisu", + "id": "srisu2", + "spawn_point": { + "lat": 50.779457, + "lon": 6.050782, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": 117.76 + } + }, + { + "type": "blueprint.srisu_no_sensor_platform", + "id": "srisu3", + "spawn_point": { + "lat": 50.779446, + "lon": 6.050505, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": 42.48 + } + }, + { + "type": "blueprint.srisu_no_sensor_platform", + "id": "srisu4", + "spawn_point": { + "lat": 50.779656, + "lon": 6.050454, + "alt_above_ground": 0.0, + "roll": 0.0, + "pitch": 0.0, + "yaw": -32.30 + } + } + ] +} \ No newline at end of file diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json new file mode 100644 index 0000000..fcb9805 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json @@ -0,0 +1,59 @@ +{ + "objects": [ + { + "type": "vehicle.ika.shuttle", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.shuttle_lidars", + "id": "shuttle_lidars", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.shuttle_cameras", + "id": "shuttle_cameras", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu", + "ignore_tilt": true + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json new file mode 100644 index 0000000..9c26246 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json @@ -0,0 +1,59 @@ +{ + "objects": [ + { + "type": "vehicle.ika.shuttle", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.shuttle_lidars", + "id": "shuttle_lidars", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "blueprint.camera_traffic_light_2048x768_fov150", + "id": "shuttle_cameras/camera_front_right_1", + "spawn_point": {"x": 2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 15.000} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu", + "ignore_tilt": true + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json new file mode 100644 index 0000000..5f60771 --- /dev/null +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json @@ -0,0 +1,49 @@ +{ + "objects": [ + { + "type": "vehicle.ika.shuttle", + "id": "ego_vehicle", + "sensors": [ + { + "type": "blueprint.camera_rgb_view", + "id": "rgb_view", + "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} + }, + { + "type": "sensor.other.tf", + "id": "tf", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.pseudo.objects", + "id": "objects" + }, + { + "type": "sensor.other.odometry", + "id": "odometry", + "ignore_tilt": true, + "ignore_altitude": true + }, + { + "type": "sensor.other.imu", + "id": "imu", + "ignore_tilt": true + }, + { + "type": "sensor.other.gnss", + "id": "gnss", + "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} + }, + { + "type": "sensor.pseudo.speedometer", + "id": "speedometer" + }, + { + "type": "actor.pseudo.control", + "id": "control" + } + ] + } + ] +} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl index a4c3d06..9081763 100644 --- a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl @@ -18,9 +18,9 @@ openadservice: USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} volumes: - mountPath: /config/objects - hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/carla_spawn_objects/objects + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/helmfile/carla-simulation/carla_spawn_objects/objects" | clean) | quote }} - mountPath: /config/blueprints - hostPath: /work/geller/openads-project/openadsim-k8s/carla-simulation/carla_spawn_objects/blueprints + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints" | clean) | quote }} dependsOn: - host: carla-server port: 2000 diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index 9fbf692..a15f279 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -18,7 +18,7 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /urdf - hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/openads-assets-v1.0.0 + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") ".runtime/openads-assets-v1.0.0" | clean) | quote }} dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 02f5720..6cc076f 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -36,7 +36,9 @@ openadservice: PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} volumes: - mountPath: /data/maps - hostPath: /work/geller/openads-project/openadsim-k8s/.runtime/lanelet2-maps-v1.0.4 + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") ".runtime/lanelet2-maps-v1.0.4" | clean) | quote }} + - mountPath: /lanelet/lanelet.osm + hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_LANELET") | clean) "" (ne (env "CUSTOM_LANELET") "")) | quote }} dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index 6228247..48c2aad 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -36,7 +36,7 @@ openadservice: ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /tmp/rosbags - hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (default "openadstack/monitoring/volume" (env "BAG_DIRECTORY")) | clean) | quote }} dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index ae00af9..54654fe 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -21,7 +21,7 @@ openadservice: LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} volumes: - mountPath: /docker-ros/ws/monitoring-volume - hostPath: /work/geller/openads-project/openadsim-k8s/openadstack/monitoring/volume + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "openadstack/monitoring/volume" | clean) | quote }} - mountPath: /mesh image: ghcr.io/openads-project/openads-assets:v1.0.0 imagePath: mesh From b932a8bbc4d769df8a6dee1147b06e2670778cf8 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 14:35:46 +0200 Subject: [PATCH 20/80] fix commands --- deployments/helmfile/CMD.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/helmfile/CMD.md b/deployments/helmfile/CMD.md index e5771c1..ca2cec6 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/helmfile/CMD.md @@ -100,8 +100,8 @@ set -a set +a export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server -export NODE=i220043.ika.rwth-aachen.de -export OPENADSIM_PATH=/work/geller/openads-project/openadsim # absolute checkout path on the selected node +export NODE=i2200043.ika.rwth-aachen.de +export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml template helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml sync From 723958901db202de6115073690060edf1883eb36 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 14:45:37 +0200 Subject: [PATCH 21/80] fix carla host --- .../carla_client/.docker-compose.oci-overrides.yml | 3 +++ carla-simulation/carla_client/docker-compose.yml | 4 ++-- carla-simulation/carla_client/set_environment.py | 11 +++++++++-- .../.docker-compose.oci-overrides.yml | 2 ++ carla-simulation/carla_ros_bridge/docker-compose.yml | 4 ++-- .../carla-simulation/carla_client/values.yaml.gotmpl | 4 ++-- .../carla_ros_bridge/values.yaml.gotmpl | 2 ++ 7 files changed, 22 insertions(+), 8 deletions(-) diff --git a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml index 4bc85c1..d859024 100644 --- a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml @@ -15,6 +15,9 @@ services: extends: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: gpu-x11-service + environment: + CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_PORT: ${CARLA_PORT:-2000} command: - /bin/bash - -ic diff --git a/carla-simulation/carla_client/docker-compose.yml b/carla-simulation/carla_client/docker-compose.yml index 516a096..2c84ba6 100644 --- a/carla-simulation/carla_client/docker-compose.yml +++ b/carla-simulation/carla_client/docker-compose.yml @@ -17,8 +17,8 @@ services: service: gpu-x11-service image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 environment: - CARLA_HOST: carla-server - CARLA_PORT: 2000 + CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_PORT: ${CARLA_PORT:-2000} # command: # - sleep # - infinity diff --git a/carla-simulation/carla_client/set_environment.py b/carla-simulation/carla_client/set_environment.py index 2b6d4ba..50ad61f 100644 --- a/carla-simulation/carla_client/set_environment.py +++ b/carla-simulation/carla_client/set_environment.py @@ -5,6 +5,7 @@ import argparse import logging import math +import os import signal import time @@ -46,8 +47,14 @@ def stop(_signum, _frame): def parse_args(): parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("--host", default="carla-server", help="CARLA server host") - parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port") + parser.add_argument( + "--host", default=os.environ.get("CARLA_HOST", "carla-server"), + help="CARLA server host", + ) + parser.add_argument( + "-p", "--port", default=os.environ.get("CARLA_PORT", "2000"), + type=int, help="CARLA server port", + ) parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") parser.add_argument( "-n", diff --git a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml index 5b44c5d..fcc906c 100644 --- a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml @@ -16,6 +16,8 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: ros2-x11-service environment: + CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_PORT: ${CARLA_PORT:-2000} TOWN: ${MAP:-/opendrive.xodr} IGNORE_ALTITUDE: "True" volumes: diff --git a/carla-simulation/carla_ros_bridge/docker-compose.yml b/carla-simulation/carla_ros_bridge/docker-compose.yml index 0937043..788fe9f 100644 --- a/carla-simulation/carla_ros_bridge/docker-compose.yml +++ b/carla-simulation/carla_ros_bridge/docker-compose.yml @@ -23,8 +23,8 @@ services: # --- other ----- LOG_LEVEL: ${LOG_LEVEL:-info} USE_SIM_TIME: ${USE_SIM_TIME:-true} - CARLA_HOST: carla-server - CARLA_PORT: 2000 + CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_PORT: ${CARLA_PORT:-2000} TIMEOUT: 5000 PASSIVE: false PUBLISH_CLOCK: true diff --git a/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl index 9f33fcd..7f4731a 100644 --- a/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl @@ -10,8 +10,8 @@ openadservice: - -ic - exec python3 /set_environment.py env: - CARLA_HOST: carla-server - CARLA_PORT: 2000 + CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} volumes: - mountPath: /set_environment.py data: | diff --git a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl index 1819e3f..060b175 100644 --- a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl @@ -6,6 +6,8 @@ openadservice: {{- end }} image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: + HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} + PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} IGNORE_ALTITUDE: true RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} From 137c0e9eb3e96c8d9299a839ad8106a32d9a19f5 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 14:49:13 +0200 Subject: [PATCH 22/80] fix environment --- .../carla-simulation/carla_client/set_environment.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deployments/helmfile/carla-simulation/carla_client/set_environment.py b/deployments/helmfile/carla-simulation/carla_client/set_environment.py index 2b6d4ba..50ad61f 100644 --- a/deployments/helmfile/carla-simulation/carla_client/set_environment.py +++ b/deployments/helmfile/carla-simulation/carla_client/set_environment.py @@ -5,6 +5,7 @@ import argparse import logging import math +import os import signal import time @@ -46,8 +47,14 @@ def stop(_signum, _frame): def parse_args(): parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("--host", default="carla-server", help="CARLA server host") - parser.add_argument("-p", "--port", default=2000, type=int, help="CARLA server port") + parser.add_argument( + "--host", default=os.environ.get("CARLA_HOST", "carla-server"), + help="CARLA server host", + ) + parser.add_argument( + "-p", "--port", default=os.environ.get("CARLA_PORT", "2000"), + type=int, help="CARLA server port", + ) parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") parser.add_argument( "-n", From ec3f98c71e71c2b2d4bc373339eba9de5d959c33 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 14:58:34 +0200 Subject: [PATCH 23/80] add new usecase and option to disable services --- .../helmfile/environments/external-carla.yaml | 13 ++++ .../environments/services.yaml.gotmpl | 58 ++++++++++++++++++ deployments/helmfile/helmfile.yaml | 59 +++++++++++-------- 3 files changed, 106 insertions(+), 24 deletions(-) create mode 100644 deployments/helmfile/environments/external-carla.yaml create mode 100644 deployments/helmfile/environments/services.yaml.gotmpl diff --git a/deployments/helmfile/environments/external-carla.yaml b/deployments/helmfile/environments/external-carla.yaml new file mode 100644 index 0000000..80d5826 --- /dev/null +++ b/deployments/helmfile/environments/external-carla.yaml @@ -0,0 +1,13 @@ +serviceEnabled: + carla-server: + enabled: false + carla-client: + enabled: false + carla-manual-control: + enabled: false + carla-scenario-runner-ros-automated-testing: + enabled: false + carla-scenario-runner-ros-manual-testing: + enabled: false + rviz-carla: + enabled: false \ No newline at end of file diff --git a/deployments/helmfile/environments/services.yaml.gotmpl b/deployments/helmfile/environments/services.yaml.gotmpl new file mode 100644 index 0000000..6d1c422 --- /dev/null +++ b/deployments/helmfile/environments/services.yaml.gotmpl @@ -0,0 +1,58 @@ +# select releases from Compose profiles. +{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "") }} + +serviceEnabled: + carla-ackermann-control: + enabled: {{ has "carla" $selectedProfiles }} + carla-client: + enabled: {{ has "traffic" $selectedProfiles }} + carla-control-active-bridge: + enabled: {{ has "carla" $selectedProfiles }} + carla-converter: + enabled: {{ has "carla" $selectedProfiles }} + carla-manual-control: + enabled: {{ has "carla" $selectedProfiles }} + carla-ros-bridge: + enabled: {{ has "carla" $selectedProfiles }} + carla-scenario-runner-ros-automated-testing: + enabled: {{ has "automated-testing" $selectedProfiles }} + carla-scenario-runner-ros-manual-testing: + enabled: {{ has "manual-testing" $selectedProfiles }} + carla-server: + enabled: {{ has "carla" $selectedProfiles }} + carla-spawn-objects: + enabled: {{ has "carla" $selectedProfiles }} + ros-middleware-bridge: + enabled: {{ has "carla" $selectedProfiles }} + simulation-adapter: + enabled: {{ has "carla" $selectedProfiles }} + ackermann-trajectory-control: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} + robot-state-publisher: + enabled: true + triton-server: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "perception" $selectedProfiles) }} + zenoh-router: + enabled: true + lanelet2-map-server: + enabled: true + bag-recorder: + enabled: {{ has "bag-recording" $selectedProfiles }} + rviz-carla: + enabled: {{ has "carla" $selectedProfiles }} + point-cloud-fusion: + enabled: {{ has "perception" $selectedProfiles }} + point-cloud-object-detection: + enabled: {{ has "perception" $selectedProfiles }} + lanelet2-route-planning: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} + simple-planner: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} + trajectory-optimization: + enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} + autoware-multi-object-tracker: + enabled: {{ has "perception" $selectedProfiles }} + lanelet2-object-list-prediction-no-perception: + enabled: {{ has "no-perception" $selectedProfiles }} + lanelet2-object-list-prediction-perception: + enabled: {{ has "perception" $selectedProfiles }} \ No newline at end of file diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 2cd9014..09fdba5 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -2,6 +2,14 @@ environments: default: values: - environments/profiles.yaml.gotmpl + - environments/services.yaml.gotmpl + - environments/overrides.yaml.gotmpl + + openadscale: + values: + - environments/profiles.yaml.gotmpl + - environments/services.yaml.gotmpl + - environments/external-carla.yaml - environments/overrides.yaml.gotmpl --- @@ -10,133 +18,136 @@ releases: - name: '{{ printf "%s-carla-ackermann-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-ackermann-control.enabled values: [carla-simulation/carla_ackermann_control/values.yaml.gotmpl] - name: '{{ printf "%s-carla-client" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.1.0-helm - condition: profileGroups.traffic.enabled + condition: serviceEnabled.carla-client.enabled values: [carla-simulation/carla_client/values.yaml.gotmpl] - name: '{{ printf "%s-carla-control-active-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4 - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-control-active-bridge.enabled values: [carla-simulation/carla_control_active_bridge/values.yaml.gotmpl] - name: '{{ printf "%s-carla-converter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter version: 1.3.2-main - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-converter.enabled values: [carla-simulation/carla_converter/values.yaml.gotmpl] - name: '{{ printf "%s-carla-manual-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.1.0-carla-manual-control-update-deployment - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-manual-control.enabled values: [carla-simulation/carla_manual_control/values.yaml.gotmpl] - name: '{{ printf "%s-carla-ros-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-ros-bridge.enabled values: [carla-simulation/carla_ros_bridge/values.yaml.gotmpl] - name: '{{ printf "%s-carla-scenario-runner-ros-automated-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm - condition: profileGroups.automated-testing.enabled + condition: serviceEnabled.carla-scenario-runner-ros-automated-testing.enabled values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] - name: '{{ printf "%s-carla-scenario-runner-ros-manual-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.0-helm - condition: profileGroups.manual-testing.enabled + condition: serviceEnabled.carla-scenario-runner-ros-manual-testing.enabled values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] - name: '{{ printf "%s-carla-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator version: 0.1.0-helm - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-server.enabled values: [carla-simulation/carla_server/carla-server/values.yaml.gotmpl] - name: '{{ printf "%s-carla-spawn-objects" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment - condition: profileGroups.carla.enabled + condition: serviceEnabled.carla-spawn-objects.enabled values: [carla-simulation/carla_spawn_objects/values.yaml.gotmpl] - name: '{{ printf "%s-ros-middleware-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge version: 1.2.1-main - condition: profileGroups.carla.enabled + condition: serviceEnabled.ros-middleware-bridge.enabled values: [carla-simulation/ros_middleware_bridge/values.yaml.gotmpl] - name: '{{ printf "%s-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter version: 1.4.2-main - condition: profileGroups.carla.enabled + condition: serviceEnabled.simulation-adapter.enabled values: [carla-simulation/simulation_adapter/values.yaml.gotmpl] # openadstack - name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control version: 1.5.0-main - condition: profileGroups.ml-planning-or-planning.enabled + condition: serviceEnabled.ackermann-trajectory-control.enabled values: [openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl] - name: '{{ printf "%s-robot-state-publisher" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4-main + condition: serviceEnabled.robot-state-publisher.enabled values: [openadstack/essentials/robot-state-publisher/values.yaml.gotmpl] - name: '{{ printf "%s-triton-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/openads-helm/triton-server version: '26.05' - condition: profileGroups.ml-planning-or-perception.enabled + condition: serviceEnabled.triton-server.enabled values: [openadstack/essentials/triton-server/values.yaml.gotmpl] - name: '{{ printf "%s-zenoh-router" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router version: 0.2.10 + condition: serviceEnabled.zenoh-router.enabled values: [openadstack/essentials/zenoh-router/values.yaml.gotmpl] - name: '{{ printf "%s-lanelet2-map-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server version: 1.2.2-main + condition: serviceEnabled.lanelet2-map-server.enabled values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] - name: '{{ printf "%s-bag-recorder" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 1.0.0-main - condition: profileGroups.bag-recording.enabled + condition: serviceEnabled.bag-recorder.enabled values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] - name: '{{ printf "%s-rviz-carla" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 1.0.0-main - condition: profileGroups.carla.enabled + condition: serviceEnabled.rviz-carla.enabled values: [openadstack/monitoring/rviz-carla/values.yaml.gotmpl] - name: '{{ printf "%s-point-cloud-fusion" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion version: 1.4.0-main - condition: profileGroups.perception.enabled + condition: serviceEnabled.point-cloud-fusion.enabled values: [openadstack/perception/point_cloud_fusion/values.yaml.gotmpl] - name: '{{ printf "%s-point-cloud-object-detection" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection version: 3.0.0-main - condition: profileGroups.perception.enabled + condition: serviceEnabled.point-cloud-object-detection.enabled values: [openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl] - name: '{{ printf "%s-lanelet2-route-planning" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning version: 1.2.0-main - condition: profileGroups.ml-planning-or-planning.enabled + condition: serviceEnabled.lanelet2-route-planning.enabled values: [openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl] - name: '{{ printf "%s-simple-planner" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner version: 1.4.0-main - condition: profileGroups.ml-planning-or-planning.enabled + condition: serviceEnabled.simple-planner.enabled values: [openadstack/planning/simple_planner/values.yaml.gotmpl] - name: '{{ printf "%s-trajectory-optimization" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization version: 1.4.0-main - condition: profileGroups.ml-planning-or-planning.enabled + condition: serviceEnabled.trajectory-optimization.enabled values: [openadstack/planning/trajectory_optimization/values.yaml.gotmpl] - name: '{{ printf "%s-autoware-multi-object-tracker" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/thinking-cars/autoware_multi_object_tracker/helm/autoware-multi-object-tracker version: 1.1.0-main - condition: profileGroups.perception.enabled + condition: serviceEnabled.autoware-multi-object-tracker.enabled values: [openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl] - name: '{{ printf "%s-lanelet2-object-list-prediction-no-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction version: 1.0.2-main - condition: profileGroups.no-perception.enabled + condition: serviceEnabled.lanelet2-object-list-prediction-no-perception.enabled values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl] - name: '{{ printf "%s-lanelet2-object-list-prediction-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction version: 1.0.2-main - condition: profileGroups.perception.enabled + condition: serviceEnabled.lanelet2-object-list-prediction-perception.enabled values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl] From d3a5772b458af0e2c216b45e5d87117cac874b3e Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 15:12:42 +0200 Subject: [PATCH 24/80] fix scenario runner ros --- .env | 14 +++--- .../carla_client/docker-compose.yml | 2 + .../.docker-compose.oci-overrides.yml | 9 +++- .../carla_scenario_runner/docker-compose.yml | 9 +++- .../values.yaml.gotmpl | 5 +++ .../helmfile/environments/external-carla.yaml | 11 +++-- .../environments/services.yaml.gotmpl | 44 +++++++++---------- deployments/helmfile/helmfile.yaml | 3 +- 8 files changed, 56 insertions(+), 41 deletions(-) diff --git a/.env b/.env index e4a8990..8643c23 100644 --- a/.env +++ b/.env @@ -1,21 +1,21 @@ ### Runtime Profiles -COMPOSE_PROFILES=carla,traffic,automated-testing,no-perception,planning +COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning ### Vehicle Configuration VEHICLE=karl SENSORS=global-sensors.json,karl-minimal.json ### Map Configuration -MAP= -CUSTOM_OPENDRIVE=scenarios/simple-scenario/synthetic_curve_cut_in.xodr -CUSTOM_LANELET=scenarios/simple-scenario/synthetic_curve_cut_in.osm -SPAWN_POINT= +MAP=campus +CUSTOM_OPENDRIVE= +CUSTOM_LANELET= +SPAWN_POINT=50.787510,6.045938,260.0,90.0,wgs84 ORIGIN_LAT= ORIGIN_LON= -LANELET_RELOAD=false +LANELET_RELOAD=true ### Scenario Configuration -SCENARIO_FILE=scenarios/simple-scenario/synthetic_curve_cut_in.xosc +SCENARIO_FILE= ### Additional Options USE_SIM_TIME=true diff --git a/carla-simulation/carla_client/docker-compose.yml b/carla-simulation/carla_client/docker-compose.yml index 2c84ba6..8706820 100644 --- a/carla-simulation/carla_client/docker-compose.yml +++ b/carla-simulation/carla_client/docker-compose.yml @@ -17,7 +17,9 @@ services: service: gpu-x11-service image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 environment: + # CARLA_HOST: carla-server CARLA_HOST: ${CARLA_HOST:-carla-server} + # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} # command: # - sleep diff --git a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml index fb1ea3a..836c050 100644 --- a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml @@ -44,8 +44,13 @@ services: SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ - scenarios_dir:=$${SCENARIOS_DIR} + use_sim_time:=${USE_SIM_TIME} \ + host:=${CARLA_HOST} \ + port:=${CARLA_PORT} \ + role_name:=${ROLE_NAME} \ + scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ + wait_for_ego:=${WAIT_FOR_EGO} \ + scenarios_dir:=${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: profiles: diff --git a/carla-simulation/carla_scenario_runner/docker-compose.yml b/carla-simulation/carla_scenario_runner/docker-compose.yml index 2096d37..3959922 100644 --- a/carla-simulation/carla_scenario_runner/docker-compose.yml +++ b/carla-simulation/carla_scenario_runner/docker-compose.yml @@ -64,8 +64,13 @@ services: SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ - scenarios_dir:=$${SCENARIOS_DIR} + use_sim_time:=${USE_SIM_TIME} \ + host:=${CARLA_HOST} \ + port:=${CARLA_PORT} \ + role_name:=${ROLE_NAME} \ + scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ + wait_for_ego:=${WAIT_FOR_EGO} \ + scenarios_dir:=${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: profiles: diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 9562d50..18944c4 100644 --- a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -17,7 +17,12 @@ openadservice: SCENARIOS_DIR="$(dirname "/${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ + use_sim_time:=${USE_SIM_TIME} \ + host:=${CARLA_HOST} \ + port:=${CARLA_PORT} \ + role_name:=${ROLE_NAME} \ scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ + wait_for_ego:=${WAIT_FOR_EGO} \ scenarios_dir:=${SCENARIOS_DIR} env: CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} diff --git a/deployments/helmfile/environments/external-carla.yaml b/deployments/helmfile/environments/external-carla.yaml index 80d5826..b1414d2 100644 --- a/deployments/helmfile/environments/external-carla.yaml +++ b/deployments/helmfile/environments/external-carla.yaml @@ -1,13 +1,12 @@ +# omit simulator-side and interactive releases in the external-carla use case. serviceEnabled: carla-server: enabled: false - carla-client: - enabled: false - carla-manual-control: + carla-scenario-runner-ros-manual-testing: enabled: false carla-scenario-runner-ros-automated-testing: enabled: false - carla-scenario-runner-ros-manual-testing: - enabled: false rviz-carla: - enabled: false \ No newline at end of file + enabled: false + carla-manual-control: + enabled: false diff --git a/deployments/helmfile/environments/services.yaml.gotmpl b/deployments/helmfile/environments/services.yaml.gotmpl index 6d1c422..a160a43 100644 --- a/deployments/helmfile/environments/services.yaml.gotmpl +++ b/deployments/helmfile/environments/services.yaml.gotmpl @@ -3,47 +3,47 @@ serviceEnabled: carla-ackermann-control: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-client: - enabled: {{ has "traffic" $selectedProfiles }} + enabled: {{ or (has "traffic" $selectedProfiles) }} carla-control-active-bridge: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-converter: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-manual-control: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-ros-bridge: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-scenario-runner-ros-automated-testing: - enabled: {{ has "automated-testing" $selectedProfiles }} + enabled: {{ or (has "automated-testing" $selectedProfiles) }} carla-scenario-runner-ros-manual-testing: - enabled: {{ has "manual-testing" $selectedProfiles }} + enabled: {{ or (has "manual-testing" $selectedProfiles) }} carla-server: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} carla-spawn-objects: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} ros-middleware-bridge: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} simulation-adapter: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} ackermann-trajectory-control: enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} robot-state-publisher: - enabled: true + enabled: {{ true }} triton-server: enabled: {{ or (has "ml-planning" $selectedProfiles) (has "perception" $selectedProfiles) }} zenoh-router: - enabled: true + enabled: {{ true }} lanelet2-map-server: - enabled: true + enabled: {{ true }} bag-recorder: - enabled: {{ has "bag-recording" $selectedProfiles }} + enabled: {{ or (has "bag-recording" $selectedProfiles) }} rviz-carla: - enabled: {{ has "carla" $selectedProfiles }} + enabled: {{ or (has "carla" $selectedProfiles) }} point-cloud-fusion: - enabled: {{ has "perception" $selectedProfiles }} + enabled: {{ or (has "perception" $selectedProfiles) }} point-cloud-object-detection: - enabled: {{ has "perception" $selectedProfiles }} + enabled: {{ or (has "perception" $selectedProfiles) }} lanelet2-route-planning: enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} simple-planner: @@ -51,8 +51,8 @@ serviceEnabled: trajectory-optimization: enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} autoware-multi-object-tracker: - enabled: {{ has "perception" $selectedProfiles }} + enabled: {{ or (has "perception" $selectedProfiles) }} lanelet2-object-list-prediction-no-perception: - enabled: {{ has "no-perception" $selectedProfiles }} + enabled: {{ or (has "no-perception" $selectedProfiles) }} lanelet2-object-list-prediction-perception: - enabled: {{ has "perception" $selectedProfiles }} \ No newline at end of file + enabled: {{ or (has "perception" $selectedProfiles) }} diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 09fdba5..900f399 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -4,8 +4,7 @@ environments: - environments/profiles.yaml.gotmpl - environments/services.yaml.gotmpl - environments/overrides.yaml.gotmpl - - openadscale: + external-carla: values: - environments/profiles.yaml.gotmpl - environments/services.yaml.gotmpl From fdb9ac8fe66359f11f46b123cb9e51ccac266ee8 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 15:46:31 +0200 Subject: [PATCH 25/80] update values --- .../.docker-compose.oci-overrides.yml | 14 +++++++------- .../carla_scenario_runner/docker-compose.yml | 14 +++++++------- .../carla_ackermann_control/values.yaml.gotmpl | 2 +- .../carla_client/values.yaml.gotmpl | 2 +- .../carla_converter/values.yaml.gotmpl | 2 +- .../carla_manual_control/values.yaml.gotmpl | 2 +- .../carla_ros_bridge/values.yaml.gotmpl | 4 ++-- .../values.yaml.gotmpl | 16 ++++++++-------- .../values.yaml.gotmpl | 16 ++++++++-------- .../carla_spawn_objects/values.yaml.gotmpl | 2 +- .../ros_middleware_bridge/values.yaml.gotmpl | 2 +- .../simulation_adapter/values.yaml.gotmpl | 3 ++- .../helmfile/environments/services.yaml.gotmpl | 2 +- deployments/helmfile/helmfile.yaml | 11 ++--------- 14 files changed, 43 insertions(+), 49 deletions(-) diff --git a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml index 836c050..b19683c 100644 --- a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml @@ -44,13 +44,13 @@ services: SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - use_sim_time:=${USE_SIM_TIME} \ - host:=${CARLA_HOST} \ - port:=${CARLA_PORT} \ - role_name:=${ROLE_NAME} \ - scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ - wait_for_ego:=${WAIT_FOR_EGO} \ - scenarios_dir:=${SCENARIOS_DIR} + use_sim_time:=$${USE_SIM_TIME} \ + host:=$${CARLA_HOST} \ + port:=$${CARLA_PORT} \ + role_name:=$${ROLE_NAME} \ + scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ + wait_for_ego:=$${WAIT_FOR_EGO} \ + scenarios_dir:=$${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: profiles: diff --git a/carla-simulation/carla_scenario_runner/docker-compose.yml b/carla-simulation/carla_scenario_runner/docker-compose.yml index 3959922..0a1c4a2 100644 --- a/carla-simulation/carla_scenario_runner/docker-compose.yml +++ b/carla-simulation/carla_scenario_runner/docker-compose.yml @@ -64,13 +64,13 @@ services: SCENARIOS_DIR="$$(dirname "/$${CUSTOM_OPENDRIVE#/}")" fi exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - use_sim_time:=${USE_SIM_TIME} \ - host:=${CARLA_HOST} \ - port:=${CARLA_PORT} \ - role_name:=${ROLE_NAME} \ - scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ - wait_for_ego:=${WAIT_FOR_EGO} \ - scenarios_dir:=${SCENARIOS_DIR} + use_sim_time:=$${USE_SIM_TIME} \ + host:=$${CARLA_HOST} \ + port:=$${CARLA_PORT} \ + role_name:=$${ROLE_NAME} \ + scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ + wait_for_ego:=$${WAIT_FOR_EGO} \ + scenarios_dir:=$${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: profiles: diff --git a/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl index d6fde06..5cc4211 100644 --- a/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl @@ -20,6 +20,6 @@ openadservice: rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl index 7f4731a..b2acee5 100644 --- a/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl @@ -18,4 +18,4 @@ openadservice: {{ readFile "set_environment.py" | indent 6 }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} diff --git a/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl index 4d52666..2c38ee5 100644 --- a/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl @@ -17,6 +17,6 @@ openadservice: rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl index bf322b9..70cdaea 100644 --- a/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl @@ -14,7 +14,7 @@ openadservice: USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl index 060b175..de5947c 100644 --- a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl @@ -7,8 +7,8 @@ openadservice: image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} IGNORE_ALTITUDE: true + PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn @@ -21,7 +21,7 @@ openadservice: hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_OPENDRIVE") | clean) "" (ne (env "CUSTOM_OPENDRIVE") "")) | quote }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl index 6bd189d..95204cf 100644 --- a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl @@ -19,17 +19,17 @@ openadservice: --rtFactor 1.0 \ --waitForEgo env: - CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} - MAP: {{ (default "" (env "MAP")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} + MAP: {{ (default "" (env "MAP")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} + CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} + SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /scenario_checker.py data: | @@ -38,7 +38,7 @@ openadservice: hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl index 18944c4..65c73b3 100644 --- a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl @@ -25,17 +25,17 @@ openadservice: wait_for_ego:=${WAIT_FOR_EGO} \ scenarios_dir:=${SCENARIOS_DIR} env: - CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} - MAP: {{ (default "" (env "MAP")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} + MAP: {{ (default "" (env "MAP")) | quote }} + CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} + CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} + SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: - mountPath: /scenario_checker.py data: | @@ -44,7 +44,7 @@ openadservice: hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl index 9081763..b68c5d1 100644 --- a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl @@ -23,6 +23,6 @@ openadservice: hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints" | clean) | quote }} dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl index 1ba2c8c..4581e2c 100644 --- a/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl @@ -16,6 +16,6 @@ openadservice: rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl b/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl index b3fb287..e42931b 100644 --- a/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl +++ b/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl @@ -1,4 +1,5 @@ openadservice: + name: carla-simulation-adapter namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} {{- if env "NODE" }} nodeSelector: @@ -28,6 +29,6 @@ openadservice: rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml dependsOn: - host: carla-server - port: 2000 + port: {{ (default "2000" (env "CARLA_PORT")) | int }} - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/environments/services.yaml.gotmpl b/deployments/helmfile/environments/services.yaml.gotmpl index a160a43..83e6554 100644 --- a/deployments/helmfile/environments/services.yaml.gotmpl +++ b/deployments/helmfile/environments/services.yaml.gotmpl @@ -24,7 +24,7 @@ serviceEnabled: enabled: {{ or (has "carla" $selectedProfiles) }} ros-middleware-bridge: enabled: {{ or (has "carla" $selectedProfiles) }} - simulation-adapter: + carla-simulation-adapter: enabled: {{ or (has "carla" $selectedProfiles) }} ackermann-trajectory-control: enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} diff --git a/deployments/helmfile/helmfile.yaml b/deployments/helmfile/helmfile.yaml index 900f399..a898973 100644 --- a/deployments/helmfile/helmfile.yaml +++ b/deployments/helmfile/helmfile.yaml @@ -4,13 +4,6 @@ environments: - environments/profiles.yaml.gotmpl - environments/services.yaml.gotmpl - environments/overrides.yaml.gotmpl - external-carla: - values: - - environments/profiles.yaml.gotmpl - - environments/services.yaml.gotmpl - - environments/external-carla.yaml - - environments/overrides.yaml.gotmpl - --- releases: # carla-simulation @@ -69,10 +62,10 @@ releases: version: 1.2.1-main condition: serviceEnabled.ros-middleware-bridge.enabled values: [carla-simulation/ros_middleware_bridge/values.yaml.gotmpl] -- name: '{{ printf "%s-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' +- name: '{{ printf "%s-carla-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter version: 1.4.2-main - condition: serviceEnabled.simulation-adapter.enabled + condition: serviceEnabled.carla-simulation-adapter.enabled values: [carla-simulation/simulation_adapter/values.yaml.gotmpl] # openadstack - name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' From d2c0686b5ad672fc298433ad2bca3f26a8bfe4ae Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 16:36:23 +0200 Subject: [PATCH 26/80] restructuring --- deployments/{helmfile => }/CMD.md | 37 +++--- .../Chart.yaml | 5 + .../templates/networkpolicy.yaml | 43 +++++++ .../values.yaml | 5 + deployments/addons/helmfile.yaml | 5 + deployments/addons/values.yaml.gotmpl | 1 + deployments/chart-map.yaml | 115 ++++++++++++++++++ .../carla_ackermann_control/params.yml | 0 .../values.yaml.gotmpl | 8 +- .../carla_client/set_environment.py | 0 .../carla_client/values.yaml.gotmpl | 0 .../values.yaml.gotmpl | 8 +- .../carla_converter/params.yml | 0 .../carla_converter/values.yaml.gotmpl | 6 +- .../carla_manual_control/values.yaml.gotmpl | 6 +- .../carla_ros_bridge/values.yaml.gotmpl | 10 +- .../scenario_checker.py | 0 .../values.yaml.gotmpl | 0 .../scenario_checker.py | 0 .../values.yaml.gotmpl | 0 .../carla-server/DefaultEngine.ini | 0 .../carla-server/values.yaml.gotmpl | 4 +- .../blueprints/cameras.json | 0 .../carla_spawn_objects/blueprints/karl.json | 0 .../blueprints/lidars.json | 0 .../carla_spawn_objects/blueprints/props.json | 0 .../blueprints/radars.json | 0 .../carla_spawn_objects/blueprints/risus.json | 0 .../blueprints/shuttle.json | 0 .../objects/global-sensors.json | 0 .../carla_spawn_objects/objects/karl-all.json | 0 .../objects/karl-basic.json | 0 .../objects/karl-minimal.json | 0 .../carla_spawn_objects/objects/props.json | 0 .../carla_spawn_objects/objects/rita-all.json | 0 .../objects/rita-minimal.json | 0 .../objects/shuttle-all.json | 0 .../objects/shuttle-basic.json | 0 .../objects/shuttle-minimal.json | 0 .../carla_spawn_objects/values.yaml.gotmpl | 14 +-- .../ros_middleware_bridge/params.yml | 0 .../ros_middleware_bridge/values.yaml.gotmpl | 6 +- .../simulation_adapter/params.yml | 0 .../simulation_adapter/values.yaml.gotmpl | 16 +-- .../environments/overrides.yaml.gotmpl | 0 .../environments/profiles.yaml.gotmpl | 0 .../environments/services.yaml.gotmpl | 0 .../{helmfile => generated}/helmfile.yaml | 0 .../karl-lateral-limits-v1p3.csv | 0 .../ackermann_trajectory_control/params.yml | 0 .../values.yaml.gotmpl | 10 +- .../robot-state-publisher/values.yaml.gotmpl | 2 +- .../triton-server/values.yaml.gotmpl | 0 .../zenoh-router/values.yaml.gotmpl | 0 .../lanelet2_map_server/values.yaml.gotmpl | 14 +-- .../bag-recorder/values.yaml.gotmpl | 2 +- .../monitoring/rviz-carla/carla.rviz | 0 .../monitoring/rviz-carla/values.yaml.gotmpl | 6 +- .../perception/point_cloud_fusion/params.yml | 0 .../point_cloud_fusion/values.yaml.gotmpl | 8 +- .../point_cloud_object_detection/params.yml | 0 .../values.yaml.gotmpl | 10 +- .../lanelet2_route_planning/params.yml | 0 .../values.yaml.gotmpl | 6 +- .../planning/simple_planner/params.yml | 0 .../simple_planner/values.yaml.gotmpl | 10 +- .../trajectory_optimization/params.yml | 0 .../values.yaml.gotmpl | 16 +-- .../values.yaml.gotmpl | 20 +-- .../params.yml | 0 .../values.yaml.gotmpl | 8 +- .../params.yml | 0 .../values.yaml.gotmpl | 8 +- deployments/helmfile.yaml | 3 + .../helmfile/environments/external-carla.yaml | 12 -- .../prepare_local_openadservice.py | 15 ++- 76 files changed, 311 insertions(+), 128 deletions(-) rename deployments/{helmfile => }/CMD.md (62%) create mode 100644 deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml create mode 100644 deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml create mode 100644 deployments/addons/charts/middleware-bridge-network-policy/values.yaml create mode 100644 deployments/addons/helmfile.yaml create mode 100644 deployments/addons/values.yaml.gotmpl create mode 100644 deployments/chart-map.yaml rename deployments/{helmfile => generated}/carla-simulation/carla_ackermann_control/params.yml (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_ackermann_control/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_client/set_environment.py (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_client/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_converter/params.yml (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_converter/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_manual_control/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_ros_bridge/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_server/carla-server/DefaultEngine.ini (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_server/carla-server/values.yaml.gotmpl (90%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/cameras.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/karl.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/lidars.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/props.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/radars.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/risus.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/blueprints/shuttle.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/global-sensors.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/karl-all.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/karl-basic.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/karl-minimal.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/props.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/rita-all.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/rita-minimal.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/shuttle-all.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json (100%) rename deployments/{helmfile => generated}/carla-simulation/carla_spawn_objects/values.yaml.gotmpl (86%) rename deployments/{helmfile => generated}/carla-simulation/ros_middleware_bridge/params.yml (100%) rename deployments/{helmfile => generated}/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/carla-simulation/simulation_adapter/params.yml (100%) rename deployments/{helmfile => generated}/carla-simulation/simulation_adapter/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/environments/overrides.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/environments/profiles.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/environments/services.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/helmfile.yaml (100%) rename deployments/{helmfile => generated}/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv (100%) rename deployments/{helmfile => generated}/openadstack/control/ackermann_trajectory_control/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/essentials/triton-server/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/essentials/zenoh-router/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/monitoring/bag-recorder/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/monitoring/rviz-carla/carla.rviz (100%) rename deployments/{helmfile => generated}/openadstack/monitoring/rviz-carla/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/perception/point_cloud_fusion/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/perception/point_cloud_object_detection/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/planning/lanelet2_route_planning/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/planning/simple_planner/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/planning/simple_planner/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/planning/trajectory_optimization/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/planning/trajectory_optimization/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl (100%) rename deployments/{helmfile => generated}/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml (100%) rename deployments/{helmfile => generated}/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl (100%) create mode 100644 deployments/helmfile.yaml delete mode 100644 deployments/helmfile/environments/external-carla.yaml rename deployments/{helmfile => }/prepare_local_openadservice.py (92%) diff --git a/deployments/helmfile/CMD.md b/deployments/CMD.md similarity index 62% rename from deployments/helmfile/CMD.md rename to deployments/CMD.md index ca2cec6..1678c0e 100644 --- a/deployments/helmfile/CMD.md +++ b/deployments/CMD.md @@ -1,6 +1,8 @@ # Helmfile commands -Run these commands from the OpenADSim repository root. +Run these commands from the OpenADSim repository root. The root Helmfile runs addons first, then generated services. The chart map contains deployment-specific rules; the converter remains service-agnostic. + +Set `DEPLOYMENT_PREFIX=sim1` or `DEPLOYMENT_PREFIX=sim2` before a root Helmfile command. The add-on policy uses the same prefix as the generated services. Regenerate the supported Helmfile release universe. Host environment values are evaluated when Helmfile runs and are not embedded during generation. GUI @@ -8,7 +10,8 @@ and SUMO are not exported yet: ```sh ./utils/compose-to-k8s/compose_to_helmfile.py \ - --output-dir deployments/helmfile \ + --chart-map deployments/chart-map.yaml \ + --output-dir deployments/generated \ docker-compose.yml ``` @@ -17,7 +20,8 @@ Export only the profiles currently active through `COMPOSE_PROFILES`: ```sh ./utils/compose-to-k8s/compose_to_helmfile.py \ --active-profiles-only \ - --output-dir deployments/helmfile \ + --chart-map deployments/chart-map.yaml \ + --output-dir deployments/generated \ docker-compose.yml ``` @@ -27,14 +31,15 @@ default: ```sh ./utils/compose-to-k8s/compose_to_helmfile.py \ --profile perception \ - --output-dir deployments/helmfile \ + --chart-map deployments/chart-map.yaml \ + --output-dir deployments/generated \ docker-compose.yml ``` -Deploy or update the complete Helmfile: +Deploy or update the complete Helmfile (including the middleware bridge NetworkPolicy for this prefix): ```sh -helmfile --file deployments/helmfile/helmfile.yaml sync +helmfile --file deployments/helmfile.yaml --namespace dev sync ``` Helmfile does not read `.env` itself. Load it into the current shell before @@ -45,21 +50,21 @@ releases: set -a . ./.env set +a -helmfile --file deployments/helmfile/helmfile.yaml sync +helmfile --file deployments/helmfile.yaml --namespace dev sync ``` Alternatively, export only the profile selection for one deployment: ```sh export COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning -helmfile --file deployments/helmfile/helmfile.yaml sync +helmfile --file deployments/helmfile.yaml --namespace dev sync ``` Deploy or update only the RViz component: ```sh export COMPOSE_PROFILES=carla -helmfile --file deployments/helmfile/helmfile.yaml \ +helmfile --file deployments/helmfile.yaml --namespace dev \ --selector name=zenoh-router \ --selector name=rviz-carla \ sync @@ -72,17 +77,18 @@ changed. Changes to the local base chart alone do not require this step: ```sh python3 utils/compose-to-k8s/compose_to_helmfile.py \ - --output-dir deployments/helmfile \ + --chart-map deployments/chart-map.yaml \ + --output-dir deployments/generated \ docker-compose.yml ``` Prepare temporary copies of all parent charts with the local OpenADService dependency. The script downloads the published parent charts, uses the local Zenoh parent chart, and writes an overlay under the ignored -`deployments/helmfile/.runtime` directory. It prints the overlay path: +`deployments/generated/.runtime` directory. It prints the overlay path: ```sh -python3 deployments/helmfile/prepare_local_openadservice.py \ +python3 deployments/prepare_local_openadservice.py \ --base-chart /work/geller/openads-project/openads-helm/charts/openadservice ``` @@ -100,13 +106,16 @@ set -a set +a export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server +export CARLA_PORT=2004 export NODE=i2200043.ika.rwth-aachen.de export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node -helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml template -helmfile --file deployments/helmfile/.runtime/openadservice-1.2.0/helmfile.yaml sync +helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev template +helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev sync ``` Rerun preparation after changing the source Helmfile, the local base chart, or a parent chart reference. Changes only to service values take effect on the next `template` or `sync`. `OPENADSIM_PATH` must be the absolute repository path on the selected Kubernetes node. Preparation alone does not deploy anything. + +The `DEPLOYMENT_PREFIX` must be set for each simulation stack. Run the root Helmfile once with `sim1` and once with `sim2`; each run creates its own middleware bridge policy. The add-on chart lives in `deployments/addons/` and is not regenerated by Compose conversion. diff --git a/deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml b/deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml new file mode 100644 index 0000000..69ed7d7 --- /dev/null +++ b/deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: middleware-bridge-network-policy +description: Isolate one middleware bridge from other simulation stacks +type: application +version: 0.1.0 diff --git a/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml b/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml new file mode 100644 index 0000000..0aa0855 --- /dev/null +++ b/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml @@ -0,0 +1,43 @@ +{{- $prefix := required "namePrefix is required" .Values.namePrefix -}} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: {{ .Release.Name }} +spec: + podSelector: + matchLabels: + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.middlewareBridgeName | quote }} + policyTypes: + - Ingress + - Egress + ingress: + - from: + - podSelector: + matchLabels: + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | quote }} + egress: + - to: + - podSelector: + matchLabels: + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | quote }} + - to: + - podSelector: + matchLabels: + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.zenohRouterName | quote }} + ports: + - protocol: TCP + port: {{ .Values.zenohPort }} + - protocol: UDP + port: {{ .Values.zenohPort }} + - to: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: kube-system + podSelector: + matchLabels: + k8s-app: kube-dns + ports: + - protocol: UDP + port: 53 + - protocol: TCP + port: 53 diff --git a/deployments/addons/charts/middleware-bridge-network-policy/values.yaml b/deployments/addons/charts/middleware-bridge-network-policy/values.yaml new file mode 100644 index 0000000..a7fef94 --- /dev/null +++ b/deployments/addons/charts/middleware-bridge-network-policy/values.yaml @@ -0,0 +1,5 @@ +namePrefix: "" +middlewareBridgeName: ros-middleware-bridge +carlaServerName: carla-server +zenohRouterName: zenoh-router +zenohPort: 7447 diff --git a/deployments/addons/helmfile.yaml b/deployments/addons/helmfile.yaml new file mode 100644 index 0000000..d5ea822 --- /dev/null +++ b/deployments/addons/helmfile.yaml @@ -0,0 +1,5 @@ +releases: + - name: '{{ printf "%s-middleware-bridge-policy" (requiredEnv "DEPLOYMENT_PREFIX") }}' + chart: charts/middleware-bridge-network-policy + values: + - values.yaml.gotmpl diff --git a/deployments/addons/values.yaml.gotmpl b/deployments/addons/values.yaml.gotmpl new file mode 100644 index 0000000..486bd39 --- /dev/null +++ b/deployments/addons/values.yaml.gotmpl @@ -0,0 +1 @@ +namePrefix: {{ requiredEnv "DEPLOYMENT_PREFIX" | quote }} diff --git a/deployments/chart-map.yaml b/deployments/chart-map.yaml new file mode 100644 index 0000000..fd90996 --- /dev/null +++ b/deployments/chart-map.yaml @@ -0,0 +1,115 @@ +# explicit chart and deployment overrides for the OpenADSim offloading workflow. +# normal OpenADServices use the generic GHCR image-to-chart convention. +chart_version_suffix: -main +values_root: openadservice +excluded_profiles: + - gui + - sumo + - donotuse + +deployment: + name_prefix_env: DEPLOYMENT_PREFIX + node_env: NODE + host_path_root_env: OPENADSIM_PATH + +ignored_environment: + - ZENOH_CONFIG_OVERRIDE +ignored_volume_names: + - DEFAULT_RMW_ZENOH_SESSION_CONFIG.json5 + - DEFAULT_RMW_ZENOH_ROUTER_CONFIG.json5 + +# fixed bind sources are copied by default; dynamic sources stay host paths. +# keep writable shared mounts on their original host path. +volume_policies: + carla-scenario-runner-ros-manual-testing: + /scenarios: hostPath + carla-scenario-runner-ros-automated-testing: + /scenarios: hostPath + carla-ros-bridge: + /opendrive.xodr: hostPath + localization.lanelet2-map-server: + /lanelet/lanelet.osm: hostPath + monitoring.bag-recorder: + /tmp/rosbags: hostPath + monitoring.rviz-carla: + /docker-ros/ws/monitoring-volume: hostPath + +services: + zenoh-router: + chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router + version: 0.2.10 + triton-server: + chart: oci://ghcr.io/openads-project/openads-helm/triton-server + version: "26.05" + + # these assets are currently extracted on the node for Kubernetes mounts. + robot-state-publisher: + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 26.9.4-main + values: + volumes: + - mountPath: /urdf + hostPath: .runtime/openads-assets-v1.0.0 + localization.lanelet2-map-server: + chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server + version: 1.2.2-main + values: + volumes: + - mountPath: /data/maps + hostPath: .runtime/lanelet2-maps-v1.0.4 + + carla-server: + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator + version: 0.1.0-helm + dependency_port_env: CARLA_PORT + values: + # Compose publishes the port on the local host. In Kubernetes the + # chart's ClusterIP service is sufficient and must not get a fixed + # NodePort from the Compose default. + ports: [] + expose: + - port: ${CARLA_PORT:-2000} + targetPort: ${CARLA_PORT:-2000} + protocol: TCP + - port: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }}' + targetPort: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }}' + protocol: TCP + - port: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' + targetPort: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' + protocol: TCP + carla-spawn-objects: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects + version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment + carla-ackermann-control: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control + version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment + carla-manual-control: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control + version: 0.10.0-1.1.0-carla-manual-control-update-deployment + carla-control-active-bridge: + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 26.9.4 + ros-middleware-bridge: + chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge + version: 1.2.1-main + carla-ros-bridge: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge + version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment + + carla-scenario-runner-ros-manual-testing: + chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros + version: 0.10.0-1.1.0-helm + carla-scenario-runner-ros-automated-testing: + chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros + version: 0.10.0-1.1.0-helm + value_replacements: + args: + - find: '--host carla-server' + replace: '--host "${CARLA_HOST}"' + perception.point-cloud-object-detection: + param_replacements: + - find: 'triton-server:8001' + replace: '{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001' + carla-client: + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client + version: 0.1.0-helm diff --git a/deployments/helmfile/carla-simulation/carla_ackermann_control/params.yml b/deployments/generated/carla-simulation/carla_ackermann_control/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/carla_ackermann_control/params.yml rename to deployments/generated/carla-simulation/carla_ackermann_control/params.yml diff --git a/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl index 5cc4211..96e1c26 100644 --- a/deployments/helmfile/carla-simulation/carla_ackermann_control/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl @@ -6,15 +6,15 @@ openadservice: {{- end }} image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls + VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla_client/set_environment.py b/deployments/generated/carla-simulation/carla_client/set_environment.py similarity index 100% rename from deployments/helmfile/carla-simulation/carla_client/set_environment.py rename to deployments/generated/carla-simulation/carla_client/set_environment.py diff --git a/deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_client/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl diff --git a/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl index 1324dec..f4c7a9e 100644 --- a/deployments/helmfile/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl @@ -17,14 +17,14 @@ openadservice: - --import - std_msgs env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAME: carla_control_active_bridge + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + CONFIG: {{ (default "/docker-ros/ws/install/monitoring/share/monitoring/config/conf.rviz" (env "CONFIG")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - CONFIG: {{ (default "/docker-ros/ws/install/monitoring/share/monitoring/config/conf.rviz" (env "CONFIG")) | quote }} dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/carla-simulation/carla_converter/params.yml b/deployments/generated/carla-simulation/carla_converter/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/carla_converter/params.yml rename to deployments/generated/carla-simulation/carla_converter/params.yml diff --git a/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl index 2c38ee5..7cc7ea2 100644 --- a/deployments/helmfile/carla-simulation/carla_converter/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl @@ -5,13 +5,13 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /carla + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml diff --git a/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl index 70cdaea..23f8bb6 100644 --- a/deployments/helmfile/carla-simulation/carla_manual_control/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl @@ -6,12 +6,12 @@ openadservice: {{- end }} image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 dependsOn: - host: carla-server port: {{ (default "2000" (env "CARLA_PORT")) | int }} diff --git a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl index de5947c..5ee01e9 100644 --- a/deployments/helmfile/carla-simulation/carla_ros_bridge/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl @@ -6,16 +6,16 @@ openadservice: {{- end }} image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - IGNORE_ALTITUDE: true PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} + TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} + IGNORE_ALTITUDE: true RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} volumes: - mountPath: /opendrive.xodr hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_OPENDRIVE") | clean) "" (ne (env "CUSTOM_OPENDRIVE") "")) | quote }} diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py similarity index 100% rename from deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py rename to deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py similarity index 100% rename from deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py rename to deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py diff --git a/deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl diff --git a/deployments/helmfile/carla-simulation/carla_server/carla-server/DefaultEngine.ini b/deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini similarity index 100% rename from deployments/helmfile/carla-simulation/carla_server/carla-server/DefaultEngine.ini rename to deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini diff --git a/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl similarity index 90% rename from deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl index a07d6b5..4ac6f4e 100644 --- a/deployments/helmfile/carla-simulation/carla_server/carla-server/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl @@ -25,8 +25,8 @@ openadservice: port: 7447 ports: [] expose: - - port: {{ ((default "2000" (env "CARLA_PORT")) | int) }} - targetPort: {{ ((default "2000" (env "CARLA_PORT")) | int) }} + - port: {{ (default "2000" (env "CARLA_PORT")) | int }} + targetPort: {{ (default "2000" (env "CARLA_PORT")) | int }} protocol: TCP - port: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} targetPort: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/cameras.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/karl.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/lidars.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/props.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/radars.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/risus.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints/shuttle.json rename to deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/global-sensors.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-all.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-basic.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/karl-minimal.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/props.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-all.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/rita-minimal.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-all.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json similarity index 100% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json rename to deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json diff --git a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl similarity index 86% rename from deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl rename to deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl index b68c5d1..6d50b31 100644 --- a/deployments/helmfile/carla-simulation/carla_spawn_objects/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl @@ -6,21 +6,21 @@ openadservice: {{- end }} image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 env: - BLUEPRINTS_DIRECTORY: /config/blueprints + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "SENSORS")) | quote }} OBJECTS_DIRECTORY: /config/objects + BLUEPRINTS_DIRECTORY: /config/blueprints + SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} volumes: - mountPath: /config/objects - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/helmfile/carla-simulation/carla_spawn_objects/objects" | clean) | quote }} + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/generated/carla-simulation/carla_spawn_objects/objects" | clean) | quote }} - mountPath: /config/blueprints - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/helmfile/carla-simulation/carla_spawn_objects/blueprints" | clean) | quote }} + hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/generated/carla-simulation/carla_spawn_objects/blueprints" | clean) | quote }} dependsOn: - host: carla-server port: {{ (default "2000" (env "CARLA_PORT")) | int }} diff --git a/deployments/helmfile/carla-simulation/ros_middleware_bridge/params.yml b/deployments/generated/carla-simulation/ros_middleware_bridge/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/ros_middleware_bridge/params.yml rename to deployments/generated/carla-simulation/ros_middleware_bridge/params.yml diff --git a/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl rename to deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl index 4581e2c..40b8afe 100644 --- a/deployments/helmfile/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl @@ -5,12 +5,12 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} env: - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml diff --git a/deployments/helmfile/carla-simulation/simulation_adapter/params.yml b/deployments/generated/carla-simulation/simulation_adapter/params.yml similarity index 100% rename from deployments/helmfile/carla-simulation/simulation_adapter/params.yml rename to deployments/generated/carla-simulation/simulation_adapter/params.yml diff --git a/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl b/deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl rename to deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl index e42931b..beecfe7 100644 --- a/deployments/helmfile/carla-simulation/simulation_adapter/values.yaml.gotmpl +++ b/deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl @@ -1,29 +1,29 @@ openadservice: - name: carla-simulation-adapter namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} {{- if env "NODE" }} nodeSelector: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} + name: carla-simulation-adapter env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /carla - INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data INPUT_MAP_INFO_TOPIC: /carla/carla_converter/map_info + INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data INPUT_OBJECT_LIST_TOPIC: /carla/carla_converter/ego_vehicle/object_list INPUT_TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory OUTPUT_EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + OUTPUT_OBJECT_LIST_TOPIC: /simulation/object_list + OUTPUT_OBJECT_LIST_FIXED_TOPIC: /simulation/object_list_fixed OUTPUT_EGO_IMU_TOPIC: /simulation/imu OUTPUT_EGO_ODOMETRY_TOPIC: /simulation/odometry OUTPUT_EGO_VEHICLE_STATE_TOPIC: /simulation/vehicle_state - OUTPUT_OBJECT_LIST_FIXED_TOPIC: /simulation/object_list_fixed - OUTPUT_OBJECT_LIST_TOPIC: /simulation/object_list - RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} LOAD_LANELET_MAP: {{ (default "true" (env "LANELET_RELOAD")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml diff --git a/deployments/helmfile/environments/overrides.yaml.gotmpl b/deployments/generated/environments/overrides.yaml.gotmpl similarity index 100% rename from deployments/helmfile/environments/overrides.yaml.gotmpl rename to deployments/generated/environments/overrides.yaml.gotmpl diff --git a/deployments/helmfile/environments/profiles.yaml.gotmpl b/deployments/generated/environments/profiles.yaml.gotmpl similarity index 100% rename from deployments/helmfile/environments/profiles.yaml.gotmpl rename to deployments/generated/environments/profiles.yaml.gotmpl diff --git a/deployments/helmfile/environments/services.yaml.gotmpl b/deployments/generated/environments/services.yaml.gotmpl similarity index 100% rename from deployments/helmfile/environments/services.yaml.gotmpl rename to deployments/generated/environments/services.yaml.gotmpl diff --git a/deployments/helmfile/helmfile.yaml b/deployments/generated/helmfile.yaml similarity index 100% rename from deployments/helmfile/helmfile.yaml rename to deployments/generated/helmfile.yaml diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv b/deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv similarity index 100% rename from deployments/helmfile/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv rename to deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml b/deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml similarity index 100% rename from deployments/helmfile/openadstack/control/ackermann_trajectory_control/params.yml rename to deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml diff --git a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl rename to deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl index 98a341d..974e4f6 100644 --- a/deployments/helmfile/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ b/deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl @@ -5,19 +5,19 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /control EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory LAT_CONTROL_ACTIVE_TOPIC: /control/active LON_CONTROL_ACTIVE_TOPIC: /control/active + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml + TRACE: {{ (default "False" (env "TRACE")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - TRACE: {{ (default "False" (env "TRACE")) | quote }} volumes: - mountPath: /docker-ros/ws/install/ackermann_trajectory_control/share/ackermann_trajectory_control/config/karl-lateral-limits-v1p3.csv data: | diff --git a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl rename to deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl index a15f279..a4473c1 100644 --- a/deployments/helmfile/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ b/deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl @@ -12,8 +12,8 @@ openadservice: - |- {{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (env "VEHICLE")) "/" (default "karl" (env "VEHICLE")) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (env "USE_SIM_TIME"))) | indent 4 }} env: - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: diff --git a/deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/essentials/triton-server/values.yaml.gotmpl rename to deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl diff --git a/deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/essentials/zenoh-router/values.yaml.gotmpl rename to deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl diff --git a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl rename to deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl index 6cc076f..f058690 100644 --- a/deployments/helmfile/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ b/deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl @@ -19,21 +19,21 @@ openadservice: ${ORIGIN_LAT:+-p origin_lat:=${ORIGIN_LAT}} \ ${ORIGIN_LON:+-p origin_lon:=${ORIGIN_LON}} \ env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /localization + NAV_SAT_FIX_TOPIC: /localization/ego_state_estimation/nav_sat_fix + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} + MAP_FRAME_ID: map + USE_AUTOMATIC_MAP_SELECTION: false MAP_DIRECTORY: /data/maps/default-maps MAP_FILEPATH: /lanelet/lanelet.osm - MAP_FRAME_ID: map - NAV_SAT_FIX_TOPIC: /localization/ego_state_estimation/nav_sat_fix ORIGIN_LAT: {{ (env "ORIGIN_LAT") | quote }} ORIGIN_LON: {{ (env "ORIGIN_LON") | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_AUTOMATIC_MAP_SELECTION: false - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} volumes: - mountPath: /data/maps hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") ".runtime/lanelet2-maps-v1.0.4" | clean) | quote }} diff --git a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl rename to deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl index 48c2aad..7144b0a 100644 --- a/deployments/helmfile/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ b/deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl @@ -30,8 +30,8 @@ openadservice: /understanding/autoware_multi_object_tracker/object_list \ /understanding/lanelet2_object_list_prediction/object_list env: - RMW_IMPLEMENTATION: rmw_zenoh_cpp ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp RUST_LOG: zenoh=warn ZENOH_ROUTER_CHECK_ATTEMPTS: 0 volumes: diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz b/deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz similarity index 100% rename from deployments/helmfile/openadstack/monitoring/rviz-carla/carla.rviz rename to deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz diff --git a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl rename to deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl index 54654fe..60ccea6 100644 --- a/deployments/helmfile/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ b/deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl @@ -11,14 +11,14 @@ openadservice: - rviz2 -d /conf.rviz --ros-args -p use_sim_time:=true gpu: true env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /monitoring + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} CONFIG: /conf.rviz RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} volumes: - mountPath: /docker-ros/ws/monitoring-volume hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "openadstack/monitoring/volume" | clean) | quote }} diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml b/deployments/generated/openadstack/perception/point_cloud_fusion/params.yml similarity index 100% rename from deployments/helmfile/openadstack/perception/point_cloud_fusion/params.yml rename to deployments/generated/openadstack/perception/point_cloud_fusion/params.yml diff --git a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl rename to deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl index 6f3f671..736f75c 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ b/deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl @@ -18,15 +18,15 @@ openadservice: point_cloud_topic:=${POINT_CLOUD_TOPIC} gpu: true env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /perception + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml + TRACE: {{ (default "false" (env "TRACE")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (env "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml b/deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml similarity index 100% rename from deployments/helmfile/openadstack/perception/point_cloud_object_detection/params.yml rename to deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml diff --git a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl rename to deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl index dece39f..38c8c22 100644 --- a/deployments/helmfile/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ b/deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl @@ -28,16 +28,16 @@ openadservice: static_grid_map_topic:=${STATIC_GRID_MAP_TOPIC} gpu: true env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /perception - PARAMS: /params.yml POINT_CLOUD_TOPIC: /perception/point_cloud_fusion/point_cloud + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + PARAMS: /params.yml + TRACE: {{ (default "false" (env "TRACE")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (env "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} volumes: - mountPath: /models image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml b/deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml similarity index 100% rename from deployments/helmfile/openadstack/planning/lanelet2_route_planning/params.yml rename to deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml diff --git a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl rename to deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl index 585bb31..2ef0c7b 100644 --- a/deployments/helmfile/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ b/deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl @@ -5,15 +5,15 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /planning EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/simple_planner/params.yml b/deployments/generated/openadstack/planning/simple_planner/params.yml similarity index 100% rename from deployments/helmfile/openadstack/planning/simple_planner/params.yml rename to deployments/generated/openadstack/planning/simple_planner/params.yml diff --git a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl rename to deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl index b840052..ac43831 100644 --- a/deployments/helmfile/openadstack/planning/simple_planner/values.yaml.gotmpl +++ b/deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl @@ -25,18 +25,18 @@ openadservice: right_turn_indicator_service:=${RIGHT_TURN_INDICATOR_SERVICE} \ hazard_lights_service:=${HAZARD_LIGHTS_SERVICE} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /planning EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list + ROUTE_TOPIC: /planning/lanelet2_route_planning/route + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml + TRACE: {{ (default "false" (env "TRACE")) | quote }} RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - ROUTE_TOPIC: /planning/lanelet2_route_planning/route RUST_LOG: zenoh=warn - TRACE: {{ (default "false" (env "TRACE")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml b/deployments/generated/openadstack/planning/trajectory_optimization/params.yml similarity index 100% rename from deployments/helmfile/openadstack/planning/trajectory_optimization/params.yml rename to deployments/generated/openadstack/planning/trajectory_optimization/params.yml diff --git a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl rename to deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl index 3a830f7..8a45f9c 100644 --- a/deployments/helmfile/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ b/deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl @@ -25,22 +25,22 @@ openadservice: ego_circles_topic:=${EGO_CIRCLES_TOPIC} \ object_circles_topic:=${OBJECT_CIRCLES_TOPIC} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /planning - EGO_CIRCLES_TOPIC: ~/visualization/ego_circles EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - OBJECT_CIRCLES_TOPIC: ~/visualization/object_circles OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list - PARAMS: /params.yml REFERENCE_TRAJECTORY_TOPIC: /planning/simple_planner/trajectory - RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} ROUTE_TOPIC: /planning/lanelet2_route_planning/route - RUST_LOG: zenoh=warn - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + EGO_CIRCLES_TOPIC: ~/visualization/ego_circles + OBJECT_CIRCLES_TOPIC: ~/visualization/object_circles LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + PARAMS: /params.yml ROS_TRACING: {{ (default "false" (env "ROS_TRACING")) | quote }} DRIVING_MODE: {{ (default "ackermann" (env "DRIVING_MODE")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl rename to deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl index 6499641..0188d80 100644 --- a/deployments/helmfile/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl +++ b/deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl @@ -5,20 +5,14 @@ openadservice: kubernetes.io/hostname: {{ env "NODE" | quote }} {{- end }} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /understanding - DATA_ASSOCIATION_MATRIX_PATH: {{ (default "" (env "DATA_ASSOCIATION_MATRIX_PATH")) | quote }} - INPUT_CHANNELS_PATH: {{ (default "" (env "INPUT_CHANNELS_PATH")) | quote }} - INPUT_DETECTION01_CHANNEL: untracked_objects INPUT_DETECTION01_OBJECTS: /perception/point_cloud_object_detection/object_list - OUTPUT_MERGED_OBJECTS: ~/merged_object_list OUTPUT_OBJECTS: ~/object_list - RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RUST_LOG: zenoh=warn - TRACKER_SETTING_PATH: {{ (default "" (env "TRACKER_SETTING_PATH")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 + OUTPUT_MERGED_OBJECTS: ~/merged_object_list LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} + INPUT_DETECTION01_CHANNEL: untracked_objects INPUT_DETECTION02_CHANNEL: {{ (default "none" (env "INPUT_DETECTION02_CHANNEL")) | quote }} INPUT_DETECTION03_CHANNEL: {{ (default "none" (env "INPUT_DETECTION03_CHANNEL")) | quote }} INPUT_DETECTION04_CHANNEL: {{ (default "none" (env "INPUT_DETECTION04_CHANNEL")) | quote }} @@ -30,8 +24,14 @@ openadservice: INPUT_DETECTION10_CHANNEL: {{ (default "none" (env "INPUT_DETECTION10_CHANNEL")) | quote }} INPUT_DETECTION11_CHANNEL: {{ (default "none" (env "INPUT_DETECTION11_CHANNEL")) | quote }} INPUT_DETECTION12_CHANNEL: {{ (default "none" (env "INPUT_DETECTION12_CHANNEL")) | quote }} + TRACKER_SETTING_PATH: {{ (default "" (env "TRACKER_SETTING_PATH")) | quote }} + DATA_ASSOCIATION_MATRIX_PATH: {{ (default "" (env "DATA_ASSOCIATION_MATRIX_PATH")) | quote }} + INPUT_CHANNELS_PATH: {{ (default "" (env "INPUT_CHANNELS_PATH")) | quote }} PUBLISH_MERGED_OBJECTS: {{ (default "false" (env "PUBLISH_MERGED_OBJECTS")) | quote }} EGO_SOURCE: {{ (default "tf" (env "EGO_SOURCE")) | quote }} + RMW_IMPLEMENTATION: rmw_zenoh_cpp + RUST_LOG: zenoh=warn + ZENOH_ROUTER_CHECK_ATTEMPTS: 0 dependsOn: - host: zenoh-router port: 7447 diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml similarity index 100% rename from deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml rename to deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl rename to deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl index 9f716ad..406d6f9 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl @@ -18,15 +18,15 @@ openadservice: tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ object_list_topic:=${OBJECT_LIST_TOPIC} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /understanding + TRACKED_OBJECT_LIST_TOPIC: /simulation/object_list + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACKED_OBJECT_LIST_TOPIC: /simulation/object_list - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml similarity index 100% rename from deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml rename to deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml diff --git a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl similarity index 100% rename from deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl rename to deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl index b88f46a..5ca2fd5 100644 --- a/deployments/helmfile/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl @@ -18,15 +18,15 @@ openadservice: tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ object_list_topic:=${OBJECT_LIST_TOPIC} env: + ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} NAMESPACE: /understanding + TRACKED_OBJECT_LIST_TOPIC: /understanding/autoware_multi_object_tracker/object_list + LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} + USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} PARAMS: /params.yml RMW_IMPLEMENTATION: rmw_zenoh_cpp - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} RUST_LOG: zenoh=warn - TRACKED_OBJECT_LIST_TOPIC: /understanding/autoware_multi_object_tracker/object_list - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} rosParamFileData: | {{ readFile "params.yml" | indent 4 }} rosParamFileMountPath: /params.yml diff --git a/deployments/helmfile.yaml b/deployments/helmfile.yaml new file mode 100644 index 0000000..e4067cd --- /dev/null +++ b/deployments/helmfile.yaml @@ -0,0 +1,3 @@ +helmfiles: + - path: addons/helmfile.yaml + - path: generated/helmfile.yaml diff --git a/deployments/helmfile/environments/external-carla.yaml b/deployments/helmfile/environments/external-carla.yaml deleted file mode 100644 index b1414d2..0000000 --- a/deployments/helmfile/environments/external-carla.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# omit simulator-side and interactive releases in the external-carla use case. -serviceEnabled: - carla-server: - enabled: false - carla-scenario-runner-ros-manual-testing: - enabled: false - carla-scenario-runner-ros-automated-testing: - enabled: false - rviz-carla: - enabled: false - carla-manual-control: - enabled: false diff --git a/deployments/helmfile/prepare_local_openadservice.py b/deployments/prepare_local_openadservice.py similarity index 92% rename from deployments/helmfile/prepare_local_openadservice.py rename to deployments/prepare_local_openadservice.py index 7cf5267..0a90779 100644 --- a/deployments/helmfile/prepare_local_openadservice.py +++ b/deployments/prepare_local_openadservice.py @@ -140,17 +140,26 @@ def prepare(state_file: Path, base_chart: Path) -> Path: + yaml.safe_dump_all(documents, sort_keys=False, explicit_start=True), encoding="utf-8", ) - return overlay_file + deployment_file = runtime_dir / "deployment-helmfile.yaml" + addons_file = Path(__file__).resolve().parent / "addons" / "helmfile.yaml" + deployment_file.write_text( + yaml.safe_dump({"helmfiles": [ + {"path": str(addons_file)}, + {"path": str(overlay_file)}, + ]}, sort_keys=False), + encoding="utf-8", + ) + return deployment_file def main() -> None: script_dir = Path(__file__).resolve().parent - project_dir = script_dir.parents[2] + project_dir = script_dir.parents[1] parser = argparse.ArgumentParser( description="rebuild fetched parent charts with a local openadservice dependency" ) parser.add_argument( - "--helmfile", type=Path, default=script_dir / "helmfile.yaml", + "--helmfile", type=Path, default=script_dir / "generated" / "helmfile.yaml", help="source Helmfile", ) parser.add_argument( From 907c9675fff3f4afd655e4d613e5fd4bca0976a8 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 16:42:04 +0200 Subject: [PATCH 27/80] update doc --- deployments/CMD.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/CMD.md b/deployments/CMD.md index 1678c0e..56b4b7e 100644 --- a/deployments/CMD.md +++ b/deployments/CMD.md @@ -106,7 +106,7 @@ set -a set +a export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server -export CARLA_PORT=2004 +export CARLA_PORT=2000 export NODE=i2200043.ika.rwth-aachen.de export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node From ae847a0ae651ca6062de232fa4c78f70ccbef28b Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sun, 20 Sep 2026 16:50:53 +0200 Subject: [PATCH 28/80] update testing --- .env | 8 ++++---- deployments/CMD.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 8643c23..a00ebb9 100644 --- a/.env +++ b/.env @@ -1,21 +1,21 @@ ### Runtime Profiles -COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning +COMPOSE_PROFILES=carla,traffic,automated-testing,no-perception,planning ### Vehicle Configuration VEHICLE=karl SENSORS=global-sensors.json,karl-minimal.json ### Map Configuration -MAP=campus +MAP=aldenhoven CUSTOM_OPENDRIVE= CUSTOM_LANELET= -SPAWN_POINT=50.787510,6.045938,260.0,90.0,wgs84 +SPAWN_POINT=-1.0,-154.0,1.0,238.0 ORIGIN_LAT= ORIGIN_LON= LANELET_RELOAD=true ### Scenario Configuration -SCENARIO_FILE= +SCENARIO_FILE=scenarios/simple-scenario/atc_turn_left_intersecting_vehicle_from_left_turning_left.xosc ### Additional Options USE_SIM_TIME=true diff --git a/deployments/CMD.md b/deployments/CMD.md index 56b4b7e..77a3912 100644 --- a/deployments/CMD.md +++ b/deployments/CMD.md @@ -104,8 +104,8 @@ set `CARLA_HOST` explicitly to the prefixed service name: its default is set -a . ./.env set +a -export DEPLOYMENT_PREFIX=sim1 -export CARLA_HOST=sim1-carla-server +export DEPLOYMENT_PREFIX=sim2 +export CARLA_HOST=${DEPLOYMENT_PREFIX}-carla-server export CARLA_PORT=2000 export NODE=i2200043.ika.rwth-aachen.de export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node From bb0cc8764fbd3aada884ffda6835f9a492696313 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 21 Sep 2026 09:37:34 +0200 Subject: [PATCH 29/80] update after cleanup --- deployments/chart-map.yaml | 5 ++++ .../environments/overrides.yaml.gotmpl | 2 -- .../environments/profiles.yaml.gotmpl | 25 ------------------- deployments/generated/helmfile.yaml | 4 --- 4 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 deployments/generated/environments/overrides.yaml.gotmpl delete mode 100644 deployments/generated/environments/profiles.yaml.gotmpl diff --git a/deployments/chart-map.yaml b/deployments/chart-map.yaml index fd90996..4a82158 100644 --- a/deployments/chart-map.yaml +++ b/deployments/chart-map.yaml @@ -2,6 +2,11 @@ # normal OpenADServices use the generic GHCR image-to-chart convention. chart_version_suffix: -main values_root: openadservice +parameter_file: + yaml_marker: ros__parameters + value_key: rosParamFileData + mount_path_value_key: rosParamFileMountPath + output_filename: params.yml excluded_profiles: - gui - sumo diff --git a/deployments/generated/environments/overrides.yaml.gotmpl b/deployments/generated/environments/overrides.yaml.gotmpl deleted file mode 100644 index 3be9c50..0000000 --- a/deployments/generated/environments/overrides.yaml.gotmpl +++ /dev/null @@ -1,2 +0,0 @@ -# User- and workflow-specific values can be added here. -{} diff --git a/deployments/generated/environments/profiles.yaml.gotmpl b/deployments/generated/environments/profiles.yaml.gotmpl deleted file mode 100644 index 855270c..0000000 --- a/deployments/generated/environments/profiles.yaml.gotmpl +++ /dev/null @@ -1,25 +0,0 @@ -# the single profile selector for this Helmfile. -# it uses COMPOSE_PROFILES exactly like Docker Compose. An explicit converter -# --profile selection is retained as its default; .env values are read only at runtime. -# available profiles: automated-testing, bag-recording, carla, manual-testing, ml-planning, no-perception, perception, planning, traffic -{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "") }} - -profileGroups: - automated-testing: - enabled: {{ or (has "automated-testing" $selectedProfiles) }} - bag-recording: - enabled: {{ or (has "bag-recording" $selectedProfiles) }} - carla: - enabled: {{ or (has "carla" $selectedProfiles) }} - manual-testing: - enabled: {{ or (has "manual-testing" $selectedProfiles) }} - ml-planning-or-perception: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "perception" $selectedProfiles) }} - ml-planning-or-planning: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} - no-perception: - enabled: {{ or (has "no-perception" $selectedProfiles) }} - perception: - enabled: {{ or (has "perception" $selectedProfiles) }} - traffic: - enabled: {{ or (has "traffic" $selectedProfiles) }} diff --git a/deployments/generated/helmfile.yaml b/deployments/generated/helmfile.yaml index a898973..bedfe4a 100644 --- a/deployments/generated/helmfile.yaml +++ b/deployments/generated/helmfile.yaml @@ -1,12 +1,9 @@ environments: default: values: - - environments/profiles.yaml.gotmpl - environments/services.yaml.gotmpl - - environments/overrides.yaml.gotmpl --- releases: -# carla-simulation - name: '{{ printf "%s-carla-ackermann-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment @@ -67,7 +64,6 @@ releases: version: 1.4.2-main condition: serviceEnabled.carla-simulation-adapter.enabled values: [carla-simulation/simulation_adapter/values.yaml.gotmpl] -# openadstack - name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control version: 1.5.0-main From e5cd7b87b19585fdf751775f002392bf55a13b5f Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 21 Sep 2026 09:54:28 +0200 Subject: [PATCH 30/80] update command --- deployments/CMD.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/CMD.md b/deployments/CMD.md index 77a3912..63d7f4d 100644 --- a/deployments/CMD.md +++ b/deployments/CMD.md @@ -104,14 +104,14 @@ set `CARLA_HOST` explicitly to the prefixed service name: its default is set -a . ./.env set +a -export DEPLOYMENT_PREFIX=sim2 +export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=${DEPLOYMENT_PREFIX}-carla-server export CARLA_PORT=2000 export NODE=i2200043.ika.rwth-aachen.de export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node -helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev template helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev sync +helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev destroy ``` Rerun preparation after changing the source Helmfile, the local base chart, From 7beea827673a08b5770c4336dac9507f66378048 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 08:35:56 +0200 Subject: [PATCH 31/80] add helmfile generation CI --- .github/workflows/helmfile.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/helmfile.yml diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml new file mode 100644 index 0000000..c725538 --- /dev/null +++ b/.github/workflows/helmfile.yml @@ -0,0 +1,31 @@ +name: Helmfile + +on: + push: + branches: + - main + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + packages: write + +jobs: + generate: + name: Generate Helmfile + uses: openads-project/openads-helm/.github/workflows/helmfile-oci.yml@feature/helmfile # TODO: Change to main branch when merged + with: + compose-file: docker-compose.yml + env-file: .env + chart-map: deployments/chart-map.yaml + profiles: carla,traffic,automated-testing,no-perception,planning + active-profiles-only: false + output-dir: deployments/generated + helmfile-entrypoint: deployments/helmfile.yaml + bundle-dir: deployments + artifact-name: openadsim-helmfile From fbfa77cb9755c3915c127164b28508abc00db46c Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 08:38:21 +0200 Subject: [PATCH 32/80] trigger helmfile action on k8s branch --- .github/workflows/helmfile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index c725538..4c2db95 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - k8s # TODO: Remove when k8s branch is merged into main tags: - 'v[0-9]+.[0-9]+.[0-9]+' pull_request: From 02ddec95a19880d45b9ec15907283af70ebff0f8 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 08:44:29 +0200 Subject: [PATCH 33/80] reduce job name --- .github/workflows/helmfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 4c2db95..787d406 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -18,7 +18,7 @@ permissions: jobs: generate: - name: Generate Helmfile + name: Helmfile uses: openads-project/openads-helm/.github/workflows/helmfile-oci.yml@feature/helmfile # TODO: Change to main branch when merged with: compose-file: docker-compose.yml From 35887f739a944ae4ba297c3698215e4d5cf3e73c Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 08:58:03 +0200 Subject: [PATCH 34/80] make prefix optional in network policy --- .../templates/networkpolicy.yaml | 10 +++++----- deployments/addons/helmfile.yaml | 2 +- deployments/addons/values.yaml.gotmpl | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml b/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml index 0aa0855..557cf87 100644 --- a/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml +++ b/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml @@ -1,4 +1,4 @@ -{{- $prefix := required "namePrefix is required" .Values.namePrefix -}} +{{- $prefix := .Values.namePrefix | default "" -}} apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: @@ -6,7 +6,7 @@ metadata: spec: podSelector: matchLabels: - app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.middlewareBridgeName | quote }} + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.middlewareBridgeName | trimPrefix "-" | quote }} policyTypes: - Ingress - Egress @@ -14,16 +14,16 @@ spec: - from: - podSelector: matchLabels: - app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | quote }} + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | trimPrefix "-" | quote }} egress: - to: - podSelector: matchLabels: - app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | quote }} + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.carlaServerName | trimPrefix "-" | quote }} - to: - podSelector: matchLabels: - app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.zenohRouterName | quote }} + app.kubernetes.io/name: {{ printf "%s-%s" $prefix .Values.zenohRouterName | trimPrefix "-" | quote }} ports: - protocol: TCP port: {{ .Values.zenohPort }} diff --git a/deployments/addons/helmfile.yaml b/deployments/addons/helmfile.yaml index d5ea822..19a971a 100644 --- a/deployments/addons/helmfile.yaml +++ b/deployments/addons/helmfile.yaml @@ -1,5 +1,5 @@ releases: - - name: '{{ printf "%s-middleware-bridge-policy" (requiredEnv "DEPLOYMENT_PREFIX") }}' + - name: '{{ printf "%s-middleware-bridge-policy" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: charts/middleware-bridge-network-policy values: - values.yaml.gotmpl diff --git a/deployments/addons/values.yaml.gotmpl b/deployments/addons/values.yaml.gotmpl index 486bd39..81d376f 100644 --- a/deployments/addons/values.yaml.gotmpl +++ b/deployments/addons/values.yaml.gotmpl @@ -1 +1 @@ -namePrefix: {{ requiredEnv "DEPLOYMENT_PREFIX" | quote }} +namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} From 4d61ff59279d9e9924503421e0627eeac78d3bb0 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 10:23:57 +0200 Subject: [PATCH 35/80] remove generated folder --- .../carla_ackermann_control/params.yml | 18 - .../values.yaml.gotmpl | 25 - .../carla_client/set_environment.py | 849 ---------- .../carla_client/values.yaml.gotmpl | 21 - .../values.yaml.gotmpl | 30 - .../carla_converter/params.yml | 13 - .../carla_converter/values.yaml.gotmpl | 22 - .../carla_manual_control/values.yaml.gotmpl | 21 - .../carla_ros_bridge/values.yaml.gotmpl | 28 - .../scenario_checker.py | 1413 ----------------- .../values.yaml.gotmpl | 45 - .../scenario_checker.py | 1413 ----------------- .../values.yaml.gotmpl | 51 - .../carla-server/DefaultEngine.ini | 165 -- .../carla-server/values.yaml.gotmpl | 38 - .../blueprints/cameras.json | 84 - .../carla_spawn_objects/blueprints/karl.json | 102 -- .../blueprints/lidars.json | 60 - .../carla_spawn_objects/blueprints/props.json | 22 - .../blueprints/radars.json | 23 - .../carla_spawn_objects/blueprints/risus.json | 107 -- .../blueprints/shuttle.json | 76 - .../objects/global-sensors.json | 24 - .../carla_spawn_objects/objects/karl-all.json | 63 - .../objects/karl-basic.json | 58 - .../objects/karl-minimal.json | 49 - .../carla_spawn_objects/objects/props.json | 19 - .../carla_spawn_objects/objects/rita-all.json | 52 - .../objects/rita-minimal.json | 52 - .../objects/shuttle-all.json | 59 - .../objects/shuttle-basic.json | 59 - .../objects/shuttle-minimal.json | 49 - .../carla_spawn_objects/values.yaml.gotmpl | 28 - .../ros_middleware_bridge/params.yml | 49 - .../ros_middleware_bridge/values.yaml.gotmpl | 21 - .../simulation_adapter/params.yml | 27 - .../simulation_adapter/values.yaml.gotmpl | 34 - .../environments/services.yaml.gotmpl | 58 - deployments/generated/helmfile.yaml | 141 -- .../karl-lateral-limits-v1p3.csv | 132 -- .../ackermann_trajectory_control/params.yml | 186 --- .../values.yaml.gotmpl | 30 - .../robot-state-publisher/values.yaml.gotmpl | 24 - .../triton-server/values.yaml.gotmpl | 15 - .../zenoh-router/values.yaml.gotmpl | 6 - .../lanelet2_map_server/values.yaml.gotmpl | 44 - .../bag-recorder/values.yaml.gotmpl | 42 - .../monitoring/rviz-carla/carla.rviz | 895 ----------- .../monitoring/rviz-carla/values.yaml.gotmpl | 35 - .../perception/point_cloud_fusion/params.yml | 59 - .../point_cloud_fusion/values.yaml.gotmpl | 35 - .../point_cloud_object_detection/params.yml | 74 - .../values.yaml.gotmpl | 52 - .../lanelet2_route_planning/params.yml | 25 - .../values.yaml.gotmpl | 22 - .../planning/simple_planner/params.yml | 82 - .../simple_planner/values.yaml.gotmpl | 45 - .../trajectory_optimization/params.yml | 49 - .../values.yaml.gotmpl | 49 - .../values.yaml.gotmpl | 37 - .../params.yml | 8 - .../values.yaml.gotmpl | 35 - .../params.yml | 8 - .../values.yaml.gotmpl | 35 - 64 files changed, 7492 deletions(-) delete mode 100644 deployments/generated/carla-simulation/carla_ackermann_control/params.yml delete mode 100644 deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_client/set_environment.py delete mode 100644 deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_converter/params.yml delete mode 100644 deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py delete mode 100644 deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py delete mode 100644 deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini delete mode 100644 deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json delete mode 100644 deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/ros_middleware_bridge/params.yml delete mode 100644 deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl delete mode 100644 deployments/generated/carla-simulation/simulation_adapter/params.yml delete mode 100644 deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl delete mode 100644 deployments/generated/environments/services.yaml.gotmpl delete mode 100644 deployments/generated/helmfile.yaml delete mode 100644 deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv delete mode 100644 deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml delete mode 100644 deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz delete mode 100644 deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/perception/point_cloud_fusion/params.yml delete mode 100644 deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml delete mode 100644 deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml delete mode 100644 deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/planning/simple_planner/params.yml delete mode 100644 deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/planning/trajectory_optimization/params.yml delete mode 100644 deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml delete mode 100644 deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl delete mode 100644 deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml delete mode 100644 deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl diff --git a/deployments/generated/carla-simulation/carla_ackermann_control/params.yml b/deployments/generated/carla-simulation/carla_ackermann_control/params.yml deleted file mode 100644 index c035c4c..0000000 --- a/deployments/generated/carla-simulation/carla_ackermann_control/params.yml +++ /dev/null @@ -1,18 +0,0 @@ -carla_ackermann_control: - ros__parameters: - # override the default values of the pid speed controller - # (only relevant for ackermann control mode) - speed_Kp: 0.00 # min: 0, max: 1. - speed_Ki: 0.00 # min: 0, max: 1. - speed_Kd: 0.00 # min: 0, max: 10. - # override the default values of the pid acceleration controller - # (only relevant for ackermann control mode) - accel_Kp: 0.10 # min: 0, max: 10. - accel_Ki: 0.00 # min: 0, max: 10. - accel_Kd: 0.05 # min: 0, max: 10. - # set the minimum acceleration in (m/s^2) - # This border value is used to enable the speed controller which is used to control driving - # at more or less constant speed. - # If the absolute value of the ackermann drive target acceleration exceeds this value, - # directly the input acceleration is controlled - min_accel: 0.0 \ No newline at end of file diff --git a/deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl deleted file mode 100644 index 96e1c26..0000000 --- a/deployments/generated/carla-simulation/carla_ackermann_control/values.yaml.gotmpl +++ /dev/null @@ -1,25 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - ACKERMANN_COMMAND_TOPIC: /control/ackermann_trajectory_control/controls - VEHICLE_CONTROL_COMMAND_TOPIC: /carla/ego_vehicle/vehicle_control_cmd_automated - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - PARAMS: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /docker-ros/ws/install/carla_ackermann_control/share/carla_ackermann_control/config/params.yml - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/carla-simulation/carla_client/set_environment.py b/deployments/generated/carla-simulation/carla_client/set_environment.py deleted file mode 100644 index 50ad61f..0000000 --- a/deployments/generated/carla-simulation/carla_client/set_environment.py +++ /dev/null @@ -1,849 +0,0 @@ -#!/usr/bin/env python3 - -"""UE5 environment setup for CARLA traffic and optional weather.""" - -import argparse -import logging -import math -import os -import signal -import time - -import carla -from numpy import random - - -FOLLOWING_DISTANCE = 2.5 -HYBRID_RADIUS = 70.0 -FIXED_DELTA_SECONDS = 0.05 -DEFAULT_NUMBER_OF_VEHICLES = 30 -DEFAULT_NUMBER_OF_WALKERS = 10 -WALKER_SPAWN_Z_OFFSET = 2.0 -PEDESTRIANS_RUNNING = 0.0 -PEDESTRIANS_CROSSING = 0.0 -BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M = 20.0 -EGO_VEHICLE_SPAWN_CLEARANCE_M = 75.0 -NEAR_EGO_SPAWN_RADIUS_M = 200.0 -NEAR_EGO_VEHICLE_TARGET_FRACTION = 0.7 -WALKER_NAV_LOCATION_ATTEMPTS = 10 -CONNECT_RETRY_SECONDS = 2.0 -CLIENT_TIMEOUT_SECONDS = 10.0 -EGO_ROLE_NAME = "ego_vehicle" -BACKGROUND_ROLE_NAME = "autopilot" - -STATUS_INTERVAL = 5.0 -STUCK_SPEED_MPS = 0.2 -STUCK_DISTANCE_M = 1.0 -STUCK_SECONDS = 45.0 - - -def install_signal_handlers(): - def stop(_signum, _frame): - raise KeyboardInterrupt - - signal.signal(signal.SIGINT, stop) - signal.signal(signal.SIGTERM, stop) - - -def parse_args(): - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument( - "--host", default=os.environ.get("CARLA_HOST", "carla-server"), - help="CARLA server host", - ) - parser.add_argument( - "-p", "--port", default=os.environ.get("CARLA_PORT", "2000"), - type=int, help="CARLA server port", - ) - parser.add_argument("--tm-port", default=8000, type=int, help="Traffic Manager port") - parser.add_argument( - "-n", - "--number-of-vehicles", - default=DEFAULT_NUMBER_OF_VEHICLES, - type=int, - ) - parser.add_argument( - "-w", - "--number-of-walkers", - default=DEFAULT_NUMBER_OF_WALKERS, - type=int, - ) - parser.add_argument("--filterv", default="vehicle.*", help="Vehicle blueprint filter") - parser.add_argument("--filterw", default="walker.pedestrian.*", help="Walker blueprint filter") - parser.add_argument("--synch", action="store_true", help="Enable synchronous mode") - parser.add_argument("--hybrid", action="store_true", help="Enable TM hybrid physics") - parser.add_argument("--respawn", action="store_true", help="Respawn dormant vehicles") - parser.add_argument( - "--wait-for-ego", - dest="wait_for_ego", - action="store_true", - default=True, - help="Wait for an actor with role_name=ego_vehicle before spawning traffic", - ) - parser.add_argument( - "--no-wait-for-ego", - dest="wait_for_ego", - action="store_false", - help="Spawn traffic immediately without waiting for ego_vehicle", - ) - parser.add_argument( - "--weather", - metavar="PRESET", - help='Weather preset name, e.g. "ClearNoon" or "WetCloudyNoon"', - ) - return parser.parse_args() - - -def connect_to_carla(args): - client = carla.Client(args.host, args.port) - client.set_timeout(CLIENT_TIMEOUT_SECONDS) - - while True: - try: - client.get_server_version() - logging.info("Connected to CARLA at %s:%s", args.host, args.port) - return client - except RuntimeError as error: - logging.warning( - "Waiting for CARLA server at %s:%s: %s", - args.host, - args.port, - error, - ) - time.sleep(CONNECT_RETRY_SECONDS) - - -def wait_for_ego_vehicle(client): - """Return the current world after its ego vehicle appears.""" - while True: - try: - # The ROS bridge may replace the world while loading the configured map. - world = client.get_world() - ego = find_ego_vehicle(world) - if ego is not None: - logging.info("Found ego vehicle with actor id %s", ego.id) - return world - except RuntimeError as error: - logging.warning("Waiting for a stable CARLA world: %s", error) - else: - logging.info("Waiting for ego vehicle with role_name=%s", EGO_ROLE_NAME) - - # Avoid wait_for_tick() on a world that may belong to the old episode. - time.sleep(CONNECT_RETRY_SECONDS) - - -def find_ego_vehicle(world): - for actor in world.get_actors().filter("vehicle.*"): - if is_ego_vehicle(actor): - return actor - return None - - -def is_ego_vehicle(actor): - return ( - actor.attributes.get("role_name") == EGO_ROLE_NAME - or actor.attributes.get("id") == EGO_ROLE_NAME - ) - - -def get_blueprints(world, pattern): - blueprints = world.get_blueprint_library().filter(pattern) - if not blueprints: - raise ValueError("No blueprints found for filter: %s" % pattern) - return sorted(blueprints, key=lambda blueprint: blueprint.id) - - -def apply_weather(world, preset_name): - if not preset_name: - return None - - if not hasattr(carla.WeatherParameters, preset_name): - presets = [ - name - for name in dir(carla.WeatherParameters) - if not name.startswith("_") and name[0].isupper() - ] - raise ValueError( - "Unknown weather preset '%s'. Available presets: %s" - % (preset_name, ", ".join(sorted(presets))) - ) - - previous_weather = world.get_weather() - world.set_weather(getattr(carla.WeatherParameters, preset_name)) - logging.info("Weather preset set to %s", preset_name) - return previous_weather - - -def configure_simulation(world, traffic_manager, args): - traffic_manager.set_global_distance_to_leading_vehicle(FOLLOWING_DISTANCE) - - if args.respawn: - traffic_manager.set_respawn_dormant_vehicles(True) - - if args.hybrid: - traffic_manager.set_hybrid_physics_mode(True) - traffic_manager.set_hybrid_physics_radius(HYBRID_RADIUS) - - original_settings = world.get_settings() - changed_settings = False - synchronous_master = False - - if args.synch: - traffic_manager.set_synchronous_mode(True) - settings = world.get_settings() - if not settings.synchronous_mode: - synchronous_master = True - settings.synchronous_mode = True - settings.fixed_delta_seconds = FIXED_DELTA_SECONDS - world.apply_settings(settings) - changed_settings = True - else: - logging.warning("Running in asynchronous mode; traffic can be less stable") - - return original_settings, changed_settings, synchronous_master - - -def restore_simulation(world, original_settings, changed_settings, previous_weather): - if previous_weather is not None: - world.set_weather(previous_weather) - - if not changed_settings: - return - - settings = world.get_settings() - settings.synchronous_mode = original_settings.synchronous_mode - settings.fixed_delta_seconds = original_settings.fixed_delta_seconds - world.apply_settings(settings) - - -def spawn_vehicles(client, world, traffic_manager, blueprints, count, synchronous_master): - if count <= 0: - return [] - - spawn_points = select_vehicle_spawn_points(world, count) - if count > len(spawn_points): - logging.warning( - "Requested %d vehicles, but only found %d free spawn points", - count, - len(spawn_points), - ) - count = len(spawn_points) - - batch = [] - for transform in spawn_points[:count]: - blueprint = random.choice(blueprints) - set_random_attribute(blueprint, "color") - set_random_attribute(blueprint, "driver_id") - blueprint.set_attribute("role_name", BACKGROUND_ROLE_NAME) - - batch.append( - carla.command.SpawnActor(blueprint, transform).then( - carla.command.SetAutopilot( - carla.command.FutureActor, True, traffic_manager.get_port() - ) - ) - ) - - return apply_spawn_batch(client, batch, synchronous_master) - - -def select_vehicle_spawn_points(world, count): - spawn_points = list(world.get_map().get_spawn_points()) - random.shuffle(spawn_points) - - vehicles = list(world.get_actors().filter("vehicle.*")) - ego = next((actor for actor in vehicles if is_ego_vehicle(actor)), None) - ego_location = ego.get_location() if ego is not None else None - occupied_locations = [ - actor.get_location() for actor in vehicles if actor is not ego - ] - background_vehicles = [ - actor - for actor in vehicles - if actor is not ego - and actor.attributes.get("role_name") == BACKGROUND_ROLE_NAME - ] - selected_spawn_points = [] - - if ego_location is None: - add_clear_vehicle_spawn_points( - spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - return selected_spawn_points - - eligible_spawn_points = [ - spawn_point - for spawn_point in spawn_points - if spawn_point.location.distance(ego_location) - >= EGO_VEHICLE_SPAWN_CLEARANCE_M - ] - near_spawn_points = [ - spawn_point - for spawn_point in eligible_spawn_points - if spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - ] - distant_spawn_points = [ - spawn_point - for spawn_point in eligible_spawn_points - if spawn_point.location.distance(ego_location) > NEAR_EGO_SPAWN_RADIUS_M - ] - - current_nearby = sum( - actor.get_location().distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - for actor in background_vehicles - ) - desired_nearby = round( - (len(background_vehicles) + count) * NEAR_EGO_VEHICLE_TARGET_FRACTION - ) - near_target = min( - count, - max(0, desired_nearby - current_nearby), - ) - add_clear_vehicle_spawn_points( - near_spawn_points, - near_target, - occupied_locations, - selected_spawn_points, - ) - add_clear_vehicle_spawn_points( - distant_spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - - if len(selected_spawn_points) < count: - add_clear_vehicle_spawn_points( - near_spawn_points, - count, - occupied_locations, - selected_spawn_points, - ) - - selected_nearby = sum( - spawn_point.location.distance(ego_location) <= NEAR_EGO_SPAWN_RADIUS_M - for spawn_point in selected_spawn_points - ) - logging.info( - "Selected %d/%d vehicle spawn points within %.0f-%.0f m of the ego " - "(current=%d target=%d)", - selected_nearby, - len(selected_spawn_points), - EGO_VEHICLE_SPAWN_CLEARANCE_M, - NEAR_EGO_SPAWN_RADIUS_M, - current_nearby, - desired_nearby, - ) - return selected_spawn_points - - -def add_clear_vehicle_spawn_points( - candidates, - target_count, - occupied_locations, - selected_spawn_points, -): - selected_locations = [ - spawn_point.location for spawn_point in selected_spawn_points - ] - - for spawn_point in candidates: - if len(selected_spawn_points) >= target_count: - break - - if not is_clear_location( - spawn_point.location, - occupied_locations + selected_locations, - BACKGROUND_VEHICLE_SPAWN_CLEARANCE_M, - ): - continue - selected_spawn_points.append(spawn_point) - selected_locations.append(spawn_point.location) - - -def is_clear_location(location, occupied_locations, clearance_m): - return all( - location.distance(occupied_location) >= clearance_m - for occupied_location in occupied_locations - ) - - -def set_random_attribute(blueprint, name): - if blueprint.has_attribute(name): - values = blueprint.get_attribute(name).recommended_values - blueprint.set_attribute(name, random.choice(values)) - - -def apply_spawn_batch(client, batch, do_tick=True): - actor_ids = [] - for response in client.apply_batch_sync(batch, do_tick): - if response.error: - logging.error(response.error) - else: - actor_ids.append(response.actor_id) - return actor_ids - - -def spawn_walkers(client, world, blueprints, count, args, synchronous_master): - if count <= 0: - return [] - - world.set_pedestrians_cross_factor(PEDESTRIANS_CROSSING) - - spawn_points = find_walker_spawn_points(world, count) - if len(spawn_points) < count: - logging.warning( - "Only found %d/%d walker navigation spawn locations. " - "If this stays at 0, the current map likely has no pedestrian navmesh.", - len(spawn_points), - count, - ) - - batch = [] - walker_speeds = [] - for spawn_point in spawn_points: - blueprint = random.choice(blueprints) - - if blueprint.has_attribute("is_invincible"): - blueprint.set_attribute("is_invincible", "false") - - walker_speeds.append(get_walker_speed(blueprint)) - batch.append(carla.command.SpawnActor(blueprint, spawn_point)) - - spawned_walkers = [] - for index, response in enumerate(client.apply_batch_sync(batch, True)): - if response.error: - logging.error(response.error) - else: - spawned_walkers.append( - {"walker": response.actor_id, "speed": walker_speeds[index]} - ) - - records = spawn_walker_controllers(client, world, spawned_walkers) - start_walker_controllers(world, records, args, synchronous_master) - return records - - -def find_walker_spawn_points(world, count): - spawn_points = [] - attempts = max(count * WALKER_NAV_LOCATION_ATTEMPTS, count) - - for _ in range(attempts): - if len(spawn_points) >= count: - break - - location = world.get_random_location_from_navigation() - if location is not None: - location.z += WALKER_SPAWN_Z_OFFSET - spawn_points.append(carla.Transform(location)) - - return spawn_points - - -def get_walker_speed(blueprint): - if not blueprint.has_attribute("speed"): - return 0.0 - - speeds = blueprint.get_attribute("speed").recommended_values - if random.random() > PEDESTRIANS_RUNNING: - return float(speeds[1]) - return float(speeds[2]) - - -def spawn_walker_controllers(client, world, spawned_walkers): - controller_blueprint = world.get_blueprint_library().find("controller.ai.walker") - batch = [ - carla.command.SpawnActor( - controller_blueprint, carla.Transform(), record["walker"] - ) - for record in spawned_walkers - ] - - records = [] - uncontrolled_walkers = [] - for index, response in enumerate(client.apply_batch_sync(batch, True)): - walker = spawned_walkers[index] - if response.error: - logging.error(response.error) - uncontrolled_walkers.append(walker["walker"]) - else: - records.append( - { - "walker": walker["walker"], - "controller": response.actor_id, - "speed": walker["speed"], - } - ) - - destroy_actor_ids(client, uncontrolled_walkers) - return records - - -def start_walker_controllers(world, walker_records, args, synchronous_master): - if not walker_records: - return - - if args.synch and synchronous_master: - world.tick() - else: - world.wait_for_tick() - - speed_by_controller = { - record["controller"]: record["speed"] for record in walker_records - } - controllers = world.get_actors(list(speed_by_controller.keys())) - - for controller in controllers: - controller.start() - target = world.get_random_location_from_navigation() - if target is not None: - controller.go_to_location(target) - controller.set_max_speed(speed_by_controller[controller.id]) - - -def supervise_environment( - client, - world, - traffic_manager, - args, - vehicle_blueprints, - walker_blueprints, - vehicles, - vehicle_sensors, - collided_vehicles, - walker_records, - synchronous_master, -): - vehicle_state = build_vehicle_state(world, vehicles, time.monotonic()) - next_status = time.monotonic() - - while True: - tick_once(world, args, synchronous_master) - - now = time.monotonic() - if now < next_status: - continue - next_status = now + STATUS_INTERVAL - - previous_vehicles = set(vehicles) - vehicles[:] = live_actor_ids(world, vehicles) - missing_vehicle_ids = previous_vehicles - set(vehicles) - remove_vehicle_sensors(client, vehicle_sensors, missing_vehicle_ids) - - walker_records[:] = live_walker_records(client, world, walker_records) - - stuck_vehicles = find_stuck_vehicles(world, vehicles, vehicle_state, now) - collided_vehicle_ids = [ - actor_id for actor_id in vehicles if actor_id in collided_vehicles - ] - collided_vehicles.difference_update(collided_vehicle_ids) - - bad_vehicles = set(stuck_vehicles) | set(collided_vehicle_ids) - if bad_vehicles: - remove_vehicle_sensors(client, vehicle_sensors, bad_vehicles) - destroy_actor_ids(client, bad_vehicles) - vehicles[:] = [actor_id for actor_id in vehicles if actor_id not in bad_vehicles] - for actor_id in bad_vehicles: - vehicle_state.pop(actor_id, None) - - missing_vehicles = max(0, args.number_of_vehicles - len(vehicles)) - new_vehicles = spawn_vehicles( - client, - world, - traffic_manager, - vehicle_blueprints, - missing_vehicles, - synchronous_master, - ) - vehicles.extend(new_vehicles) - vehicle_state.update(build_vehicle_state(world, new_vehicles, now)) - attach_collision_sensors( - world, new_vehicles, vehicle_sensors, collided_vehicles - ) - - missing_walkers = max(0, args.number_of_walkers - len(walker_records)) - new_walkers = spawn_walkers( - client, - world, - walker_blueprints, - missing_walkers, - args, - synchronous_master, - ) - walker_records.extend(new_walkers) - - print( - ( - "environment: vehicles=%d/%d walkers=%d/%d " - "respawned_vehicles=%d respawned_walkers=%d " - "stuck_vehicles=%d collided_vehicles=%d" - ) - % ( - len(vehicles), - args.number_of_vehicles, - len(walker_records), - args.number_of_walkers, - len(new_vehicles), - len(new_walkers), - len(stuck_vehicles), - len(collided_vehicle_ids), - ), - flush=True, - ) - - -def tick_once(world, args, synchronous_master): - if args.synch and synchronous_master: - world.tick() - else: - world.wait_for_tick() - - -def live_actor_ids(world, actor_ids): - live_ids = {actor.id for actor in world.get_actors(actor_ids)} - return [actor_id for actor_id in actor_ids if actor_id in live_ids] - - -def live_walker_records(client, world, walker_records): - actor_ids = [] - for record in walker_records: - actor_ids.extend([record["walker"], record["controller"]]) - - live_ids = {actor.id for actor in world.get_actors(actor_ids)} - live_records = [] - orphan_ids = [] - - for record in walker_records: - walker_alive = record["walker"] in live_ids - controller_alive = record["controller"] in live_ids - if walker_alive and controller_alive: - live_records.append(record) - else: - if walker_alive: - orphan_ids.append(record["walker"]) - if controller_alive: - orphan_ids.append(record["controller"]) - - destroy_actor_ids(client, orphan_ids) - return live_records - - -def build_vehicle_state(world, vehicle_ids, now): - state = {} - for actor in world.get_actors(vehicle_ids): - state[actor.id] = { - "spawned_at": now, - "last_moved_at": now, - "last_location": location_tuple(actor.get_location()), - } - return state - - -def find_stuck_vehicles(world, vehicle_ids, vehicle_state, now): - stuck_vehicles = [] - actors = world.get_actors(vehicle_ids) - live_ids = set() - - for actor in actors: - live_ids.add(actor.id) - state = vehicle_state.setdefault( - actor.id, - { - "spawned_at": now, - "last_moved_at": now, - "last_location": location_tuple(actor.get_location()), - }, - ) - - location = location_tuple(actor.get_location()) - moved_distance = distance(location, state["last_location"]) - speed = vector_length(actor.get_velocity()) - - if speed > STUCK_SPEED_MPS or moved_distance > STUCK_DISTANCE_M: - state["last_moved_at"] = now - state["last_location"] = location - continue - - stuck_long_enough = now - state["last_moved_at"] >= STUCK_SECONDS - if stuck_long_enough: - stuck_vehicles.append(actor.id) - - for actor_id in list(vehicle_state.keys()): - if actor_id not in live_ids: - vehicle_state.pop(actor_id, None) - - return stuck_vehicles - - -def location_tuple(location): - return (location.x, location.y, location.z) - - -def distance(first, second): - return math.sqrt( - (first[0] - second[0]) ** 2 - + (first[1] - second[1]) ** 2 - + (first[2] - second[2]) ** 2 - ) - - -def vector_length(vector): - return math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z) - - -def attach_collision_sensors(world, vehicle_ids, vehicle_sensors, collided_vehicles): - if not vehicle_ids: - return - - blueprint = world.get_blueprint_library().find("sensor.other.collision") - for vehicle in world.get_actors(vehicle_ids): - if vehicle.id in vehicle_sensors: - continue - - try: - sensor = world.spawn_actor(blueprint, carla.Transform(), attach_to=vehicle) - except RuntimeError as error: - logging.warning("Could not attach collision sensor: %s", error) - continue - - sensor.listen( - lambda _event, actor_id=vehicle.id: collided_vehicles.add(actor_id) - ) - vehicle_sensors[vehicle.id] = sensor - - -def remove_vehicle_sensors(client, vehicle_sensors, vehicle_ids): - sensor_ids = [] - for vehicle_id in vehicle_ids: - sensor = vehicle_sensors.pop(vehicle_id, None) - if sensor is None: - continue - - try: - sensor.stop() - except RuntimeError as error: - logging.warning("Could not stop collision sensor: %s", error) - sensor_ids.append(sensor.id) - - destroy_actor_ids(client, sensor_ids) - - -def destroy_actor_ids(client, actor_ids): - if actor_ids: - client.apply_batch([carla.command.DestroyActor(actor_id) for actor_id in actor_ids]) - - -def cleanup(client, vehicles, vehicle_sensors, walker_records): - remove_vehicle_sensors(client, vehicle_sensors, list(vehicle_sensors.keys())) - - controllers = world_actors_from_records(client, walker_records, "controller") - for controller in controllers: - try: - controller.stop() - except RuntimeError as error: - logging.warning("Could not stop walker controller: %s", error) - - print("\ndestroying %d vehicles" % len(vehicles), flush=True) - destroy_actor_ids(client, vehicles) - - walker_actor_ids = [] - for record in walker_records: - walker_actor_ids.extend([record["walker"], record["controller"]]) - - print("\ndestroying %d walkers" % len(walker_records), flush=True) - destroy_actor_ids(client, walker_actor_ids) - - -def world_actors_from_records(client, records, key): - actor_ids = [record[key] for record in records] - return client.get_world().get_actors(actor_ids) - - -def main(): - args = parse_args() - logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO) - install_signal_handlers() - - client = connect_to_carla(args) - if args.wait_for_ego: - world = wait_for_ego_vehicle(client) - else: - world = client.get_world() - traffic_manager = client.get_trafficmanager(args.tm_port) - - vehicles = [] - vehicle_sensors = {} - collided_vehicles = set() - walker_records = [] - previous_weather = None - original_settings = None - changed_settings = False - - try: - previous_weather = apply_weather(world, args.weather) - original_settings, changed_settings, synchronous_master = configure_simulation( - world, traffic_manager, args - ) - - vehicle_blueprints = get_blueprints(world, args.filterv) - walker_blueprints = get_blueprints(world, args.filterw) - vehicles.extend( - spawn_vehicles( - client, - world, - traffic_manager, - vehicle_blueprints, - args.number_of_vehicles, - synchronous_master, - ) - ) - attach_collision_sensors( - world, vehicles, vehicle_sensors, collided_vehicles - ) - - walker_records.extend( - spawn_walkers( - client, - world, - walker_blueprints, - args.number_of_walkers, - args, - synchronous_master, - ) - ) - - print( - "Spawned %d vehicles and %d walkers, press Ctrl+C to exit." - % (len(vehicles), len(walker_records)), - flush=True, - ) - supervise_environment( - client, - world, - traffic_manager, - args, - vehicle_blueprints, - walker_blueprints, - vehicles, - vehicle_sensors, - collided_vehicles, - walker_records, - synchronous_master, - ) - - finally: - cleanup(client, vehicles, vehicle_sensors, walker_records) - restore_simulation(world, original_settings, changed_settings, previous_weather) - time.sleep(0.5) - - -if __name__ == "__main__": - try: - main() - except KeyboardInterrupt: - pass - finally: - print("\ndone.") diff --git a/deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl deleted file mode 100644 index b2acee5..0000000 --- a/deployments/generated/carla-simulation/carla_client/values.yaml.gotmpl +++ /dev/null @@ -1,21 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 - args: - - /bin/bash - - -ic - - exec python3 /set_environment.py - env: - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - volumes: - - mountPath: /set_environment.py - data: | -{{ readFile "set_environment.py" | indent 6 }} - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} diff --git a/deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl deleted file mode 100644 index f4c7a9e..0000000 --- a/deployments/generated/carla-simulation/carla_control_active_bridge/values.yaml.gotmpl +++ /dev/null @@ -1,30 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: carla-control-active-bridge - args: - - ros2 - - run - - topic_tools - - transform - - /carla/ego_vehicle/vehicle_control_manual_override - - /control/active - - std_msgs/Bool - - std_msgs.msg.Bool(data=not m.data) - - --import - - std_msgs - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAME: carla_control_active_bridge - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - CONFIG: {{ (default "/docker-ros/ws/install/monitoring/share/monitoring/config/conf.rviz" (env "CONFIG")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/carla-simulation/carla_converter/params.yml b/deployments/generated/carla-simulation/carla_converter/params.yml deleted file mode 100644 index 571604f..0000000 --- a/deployments/generated/carla-simulation/carla_converter/params.yml +++ /dev/null @@ -1,13 +0,0 @@ -/**/*: - ros__parameters: - carla_fixed_frame_id: "carla_map" - ego_data_actors: "ego_vehicle" - object_list_actors: "ego_vehicle" - pos_variances: 0.2 - vel_variances: -1.0 - acc_variances: -1.0 - angle_variances: 0.1 - angle_rate_variances: -1.0 - enable_traffic_lights: false - traffic_light_frequency: 10.0 - acceleration_filter_alpha: 1.0 diff --git a/deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl deleted file mode 100644 index 7cc7ea2..0000000 --- a/deployments/generated/carla-simulation/carla_converter/values.yaml.gotmpl +++ /dev/null @@ -1,22 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /carla - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /docker-ros/ws/install/carla_converter/share/carla_converter/config/params.yml - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl deleted file mode 100644 index 23f8bb6..0000000 --- a/deployments/generated/carla-simulation/carla_manual_control/values.yaml.gotmpl +++ /dev/null @@ -1,21 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl deleted file mode 100644 index 5ee01e9..0000000 --- a/deployments/generated/carla-simulation/carla_ros_bridge/values.yaml.gotmpl +++ /dev/null @@ -1,28 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - TOWN: {{ (default "/opendrive.xodr" (env "MAP")) | quote }} - IGNORE_ALTITUDE: true - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /opendrive.xodr - hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_OPENDRIVE") | clean) "" (ne (env "CUSTOM_OPENDRIVE") "")) | quote }} - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py deleted file mode 100644 index c0ef0df..0000000 --- a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/scenario_checker.py +++ /dev/null @@ -1,1413 +0,0 @@ -#!/usr/bin/env python3 - -"""Validate and import OpenSCENARIO bundles for OpenADSim/CARLA.""" - -from __future__ import annotations - -import argparse -import json -import os -import re -import shutil -import sys -import tempfile -import xml.etree.ElementTree as ET -from dataclasses import dataclass, field -from datetime import datetime, timezone -from pathlib import Path -from typing import Optional - - -PREBUILT_MAPS = { - "aldenhoven": "aldenhoven", - "campus": "campus", - "town10hd_opt": "Town10HD_Opt", -} -CRITERIA = ( - "criteria_RunningStopTest", - "criteria_RunningRedLightTest", - "criteria_CollisionTest", - "criteria_WrongLaneTest", - "criteria_OnSidewalkTest", - "criteria_DrivenDistanceTest", -) -ROS_CONTROLLER_MODULE = "ros_vehicle_control_route_action.py" - - -class ScenarioCheckerError(RuntimeError): - """Raised for a user-facing validation or import error.""" - - -@dataclass(frozen=True) -class MapResolution: - kind: str - logic_file: str - map_name: str = "" - opendrive: Optional[Path] = None - lanelet: Optional[Path] = None - - -@dataclass -class ScenarioReport: - scenario: Path - errors: list[str] = field(default_factory=list) - warnings: list[str] = field(default_factory=list) - planned_changes: list[str] = field(default_factory=list) - map_resolution: Optional[MapResolution] = None - ego_actor: str = "" - - @property - def is_valid(self) -> bool: - return not self.errors - - def to_dict(self) -> dict[str, object]: - map_data: dict[str, object] = {} - if self.map_resolution: - map_data = { - "type": self.map_resolution.kind, - "logic_file": self.map_resolution.logic_file, - "map_name": self.map_resolution.map_name, - "opendrive": str(self.map_resolution.opendrive or ""), - "lanelet": str(self.map_resolution.lanelet or ""), - } - return { - "valid": self.is_valid, - "scenario": str(self.scenario), - "ego_actor": self.ego_actor, - "map": map_data, - "errors": self.errors, - "warnings": self.warnings, - "planned_changes": self.planned_changes, - } - - -@dataclass(frozen=True) -class ImportResult: - directory: Path - scenario_file: Path - map_resolution: MapResolution - actions: tuple[str, ...] - warnings: tuple[str, ...] - repo_root: Path - - def _relative(self, path: Optional[Path]) -> str: - if path is None: - return "" - try: - return path.resolve().relative_to(self.repo_root.resolve()).as_posix() - except ValueError: - return str(path.resolve()) - - def to_dict(self) -> dict[str, object]: - return { - "valid": True, - "directory": self._relative(self.directory), - "scenario_file": self._relative(self.scenario_file), - "map": { - "type": self.map_resolution.kind, - "map_name": self.map_resolution.map_name, - "opendrive": self._relative(self.map_resolution.opendrive), - "lanelet": self._relative(self.map_resolution.lanelet), - }, - "actions": list(self.actions), - "warnings": list(self.warnings), - } - - -def _local_name(tag: str) -> str: - return tag.rsplit("}", 1)[-1] - - -def _namespace(element: ET.Element) -> str: - if element.tag.startswith("{"): - return element.tag.split("}", 1)[0] + "}" - return "" - - -def _child(parent: Optional[ET.Element], name: str) -> Optional[ET.Element]: - if parent is None: - return None - return next( - (element for element in list(parent) if _local_name(element.tag) == name), - None, - ) - - -def _children(parent: Optional[ET.Element], name: str) -> list[ET.Element]: - if parent is None: - return [] - return [element for element in list(parent) if _local_name(element.tag) == name] - - -def _path(parent: Optional[ET.Element], *names: str) -> Optional[ET.Element]: - element = parent - for name in names: - element = _child(element, name) - if element is None: - return None - return element - - -def _iter(parent: Optional[ET.Element], name: str): - if parent is None: - return - for element in parent.iter(): - if _local_name(element.tag) == name: - yield element - - -def _subelement( - parent: ET.Element, - name: str, - attributes: Optional[dict[str, str]] = None, -) -> ET.Element: - return ET.SubElement( - parent, - f"{_namespace(parent)}{name}", - attributes or {}, - ) - - -def _normalize_map_reference(value: str) -> str: - normalized = value.strip().replace("\\", "/").rstrip("/") - filename = normalized.rsplit("/", 1)[-1] - if filename.lower().endswith(".xodr"): - filename = filename[:-5] - return filename.lower() - - -def _canonical_prebuilt_map(value: str) -> str: - return PREBUILT_MAPS.get(_normalize_map_reference(value), "") - - -def _version_conversion_issues(root: ET.Element) -> list[str]: - issues: list[str] = [] - header = _child(root, "FileHeader") - if header is None: - return ["FileHeader is missing"] - - major = header.get("revMajor", "") - minor = header.get("revMinor", "") - if major != "1": - return [f"Unsupported OpenSCENARIO major version {major or ''}; expected 1"] - if minor != "1": - issues.append(f"Convert OpenSCENARIO {major}.{minor or ''} to 1.1") - if _child(root, "VariableDeclarations") is not None: - issues.append("Remove OpenSCENARIO 1.2 VariableDeclarations") - if any(event.get("priority") == "override" for event in _iter(root, "Event")): - issues.append("Convert Event priority 'override' to 'overwrite'") - if any( - condition.get("relativeDistanceType") == "cartesianDistance" - for condition in _iter(root, "RelativeDistanceCondition") - ): - issues.append("Convert cartesianDistance to euclidianDistance") - return issues - - -def _convert_to_osc_1_1(root: ET.Element) -> list[str]: - actions: list[str] = [] - header = _child(root, "FileHeader") - if header is None: - raise ScenarioCheckerError("FileHeader is missing") - - major = header.get("revMajor", "") - minor = header.get("revMinor", "") - if major != "1": - raise ScenarioCheckerError( - f"Unsupported OpenSCENARIO major version {major or ''}; expected 1" - ) - if minor != "1": - header.set("revMinor", "1") - actions.append(f"Converted OpenSCENARIO {major}.{minor or ''} to 1.1") - - variable_declarations = _child(root, "VariableDeclarations") - if variable_declarations is not None: - root.remove(variable_declarations) - actions.append("Removed OpenSCENARIO 1.2 VariableDeclarations") - - priorities_converted = 0 - for event in _iter(root, "Event"): - if event.get("priority") == "override": - event.set("priority", "overwrite") - priorities_converted += 1 - if priorities_converted: - actions.append( - f"Converted {priorities_converted} Event priority value(s) from override to overwrite" - ) - - distances_converted = 0 - for condition in _iter(root, "RelativeDistanceCondition"): - if condition.get("relativeDistanceType") == "cartesianDistance": - condition.set("relativeDistanceType", "euclidianDistance") - distances_converted += 1 - if distances_converted: - actions.append( - f"Converted {distances_converted} cartesianDistance value(s) to euclidianDistance" - ) - return actions - - -def _parse_xml(path: Path, expected_root: str) -> ET.ElementTree: - try: - tree = ET.parse(path) - except (OSError, ET.ParseError) as error: - raise ScenarioCheckerError(f"Cannot parse {path}: {error}") from error - if _local_name(tree.getroot().tag) != expected_root: - raise ScenarioCheckerError( - f"{path} must have <{expected_root}> as its root element" - ) - return tree - - -def _repo_root_from(path: Path) -> Path: - for candidate in (path.resolve(), *path.resolve().parents): - if (candidate / "carla-simulation").is_dir() and (candidate / "utils").is_dir(): - return candidate - return Path.cwd().resolve() - - -def _resolve_map( - scenario_file: Path, - root: ET.Element, - *, - opendrive: Optional[Path], - lanelet: Optional[Path], -) -> MapResolution: - logic_element = _path(root, "RoadNetwork", "LogicFile") - if logic_element is None or not logic_element.get("filepath", "").strip(): - raise ScenarioCheckerError("RoadNetwork/LogicFile filepath is missing") - logic_file = logic_element.get("filepath", "").strip() - - selected_opendrive = opendrive.resolve() if opendrive else None - if selected_opendrive: - if selected_opendrive.suffix.lower() != ".xodr": - raise ScenarioCheckerError("Uploaded OpenDRIVE map must end in .xodr") - _parse_xml(selected_opendrive, "OpenDRIVE") - elif logic_file.lower().endswith(".xodr"): - raise ScenarioCheckerError( - "OpenDRIVE map referenced by LogicFile must be explicitly uploaded: " - f"{logic_file}" - ) - - if selected_opendrive: - selected_lanelet = lanelet.resolve() if lanelet else None - if selected_lanelet is None or not selected_lanelet.is_file(): - raise ScenarioCheckerError( - "Custom OpenDRIVE requires an explicitly uploaded Lanelet2 .osm file" - ) - if selected_lanelet.suffix.lower() != ".osm": - raise ScenarioCheckerError("Lanelet2 map must end in .osm") - _parse_xml(selected_lanelet, "osm") - return MapResolution( - kind="custom", - logic_file=logic_file, - opendrive=selected_opendrive, - lanelet=selected_lanelet, - ) - - if lanelet: - raise ScenarioCheckerError( - "A Lanelet2 upload without a custom OpenDRIVE map is not supported by the importer" - ) - map_name = _canonical_prebuilt_map(logic_file) - if not map_name: - supported = ", ".join(PREBUILT_MAPS.values()) - raise ScenarioCheckerError( - f"LogicFile references unknown prebuilt map {logic_file!r}; supported: {supported}" - ) - return MapResolution(kind="prebuilt", logic_file=logic_file, map_name=map_name) - - -def _scenario_objects(root: ET.Element) -> list[ET.Element]: - return _children(_child(root, "Entities"), "ScenarioObject") - - -def _actor_payload(actor: ET.Element) -> Optional[ET.Element]: - return next( - ( - element - for element in list(actor) - if _local_name(element.tag) in {"Vehicle", "Pedestrian"} - ), - None, - ) - - -def _actor_type(actor: ET.Element) -> str: - payload = _actor_payload(actor) - properties = _child(payload, "Properties") - for prop in _children(properties, "Property"): - if prop.get("name") == "type": - return prop.get("value", "") - return "" - - -def _select_ego( - root: ET.Element, - requested_ego: str, - *, - allow_repair: bool, -) -> tuple[Optional[ET.Element], list[str]]: - actors = _scenario_objects(root) - ego_actors = [ - actor - for actor in actors - if actor.get("name") == "ego_vehicle" or _actor_type(actor) == "ego_vehicle" - ] - unique_ego = list({id(actor): actor for actor in ego_actors}.values()) - if len(unique_ego) > 1: - return None, ["Multiple actors are marked as ego_vehicle"] - if unique_ego: - if requested_ego and unique_ego[0].get("name") != requested_ego: - return None, [ - f"Requested ego actor {requested_ego!r} conflicts with existing ego_vehicle" - ] - return unique_ego[0], [] - - vehicle_actors = [] - for actor in actors: - payload = _actor_payload(actor) - if payload is not None and _local_name(payload.tag) == "Vehicle": - vehicle_actors.append(actor) - if requested_ego: - requested = next( - (actor for actor in vehicle_actors if actor.get("name") == requested_ego), - None, - ) - if requested is None: - return None, [f"Requested ego actor does not exist or is not a Vehicle: {requested_ego}"] - return requested, [] - if not vehicle_actors: - return None, ["Scenario contains no inline Vehicle actor that can become ego_vehicle"] - if not allow_repair: - return None, [ - "Scenario has no ego_vehicle; import it to select and normalize an ego actor" - ] - return vehicle_actors[0], [] - - -def _ego_private(root: ET.Element, ego_name: str) -> Optional[ET.Element]: - actions = _path(root, "Storyboard", "Init", "Actions") - for private in _children(actions, "Private"): - if private.get("entityRef") == ego_name: - return private - return None - - -def _ego_controller_actions(root: ET.Element, ego_name: str) -> list[ET.Element]: - actions = _path(root, "Storyboard", "Init", "Actions") - result = [ - action - for private in _children(actions, "Private") - if private.get("entityRef") == ego_name - for action in _children(private, "PrivateAction") - if _child(action, "ControllerAction") is not None - ] - for group in _iter(root, "ManeuverGroup"): - actors = _child(group, "Actors") - refs = {ref.get("entityRef") for ref in _children(actors, "EntityRef")} - if ego_name in refs: - result.extend( - action for action in _iter(group, "PrivateAction") - if _child(action, "ControllerAction") is not None - ) - return result - - -def _has_normalized_ego_controller(root: ET.Element, ego_name: str) -> bool: - controller_actions = _ego_controller_actions(root, ego_name) - if len(controller_actions) != 1: - return False - init = _path(root, "Storyboard", "Init", "Actions") - if controller_actions[0] not in list(_iter(init, "PrivateAction")): - return False - assign_actions = list(_iter(controller_actions[0], "AssignControllerAction")) - if len(assign_actions) != 1: - return False - return any( - prop.get("name") == "module" and prop.get("value") == ROS_CONTROLLER_MODULE - for prop in _iter(assign_actions[0], "Property") - ) - - -def _object_controllers(root: ET.Element) -> list[ET.Element]: - return [ - controller - for actor in _scenario_objects(root) - for controller in _children(actor, "ObjectController") - ] - - -def _catalog_references_outside_object_controllers( - root: ET.Element, -) -> list[ET.Element]: - replaced_reference_ids = { - id(reference) - for controller in _object_controllers(root) - for reference in _iter(controller, "CatalogReference") - } - return [ - reference - for reference in _iter(root, "CatalogReference") - if id(reference) not in replaced_reference_ids - ] - - -def _ego_route_event(root: ET.Element, ego_name: str) -> str: - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = _child(maneuver_group, "Actors") - if not any( - ref.get("entityRef") == ego_name for ref in _children(actors, "EntityRef") - ): - continue - for event in _iter(maneuver_group, "Event"): - if any(True for _ in _iter(event, "AssignRouteAction")): - return event.get("name", "") - return "" - - -def _missing_rts_count(root: ET.Element, ego_name: str) -> int: - missing = 0 - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = { - ref.get("entityRef", "") - for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") - } - if not actors or ego_name in actors: - continue - for trajectory in _iter(maneuver_group, "Trajectory"): - declarations = _child(trajectory, "ParameterDeclarations") - if not any( - parameter.get("name") == "rts-mode" - for parameter in _children(declarations, "ParameterDeclaration") - ): - missing += 1 - return missing - - -def _missing_criteria(root: ET.Element) -> list[str]: - storyboard = _child(root, "Storyboard") - stop_trigger = _child(storyboard, "StopTrigger") - existing = { - condition.get("name", "") for condition in _iter(stop_trigger, "Condition") - } - return [name for name in CRITERIA if name not in existing] - - -def _validate_expected_map( - report: ScenarioReport, - *, - expected_map: str, - expected_opendrive: Optional[Path], - expected_lanelet: Optional[Path], -) -> None: - resolution = report.map_resolution - if resolution is None: - return - if expected_map: - expected_canonical = _canonical_prebuilt_map(expected_map) - if resolution.kind != "prebuilt" or resolution.map_name != expected_canonical: - report.errors.append( - f"Configured prebuilt map {expected_map!r} does not match LogicFile {resolution.logic_file!r}" - ) - if expected_opendrive: - if resolution.kind != "custom" or resolution.opendrive is None: - report.errors.append( - "Configured CUSTOM_OPENDRIVE does not match the prebuilt map in LogicFile" - ) - else: - configured = expected_opendrive.resolve() - if configured.parent != report.scenario.parent.resolve(): - report.errors.append( - "CUSTOM_OPENDRIVE must be in the same directory as the " - f"OpenSCENARIO file: {configured}" - ) - logic_reference = Path(resolution.logic_file.replace("\\", "/")) - if ( - logic_reference.is_absolute() - or logic_reference.parent != Path(".") - or logic_reference.name != configured.name - ): - report.errors.append( - f"LogicFile filepath must reference the configured OpenDRIVE in the " - "same directory as the OpenSCENARIO file; expected only the filename " - f"{configured.name!r}, got {resolution.logic_file!r}" - ) - try: - matches = resolution.opendrive.samefile(configured) - except OSError: - matches = resolution.opendrive.resolve() == configured - if not matches: - report.errors.append( - f"Configured OpenDRIVE {configured} does not match LogicFile map {resolution.opendrive}" - ) - if expected_lanelet: - if resolution.lanelet is None: - report.errors.append("Configured CUSTOM_LANELET has no matching custom OpenDRIVE map") - else: - configured = expected_lanelet.resolve() - if configured.parent != report.scenario.parent.resolve(): - report.errors.append( - "CUSTOM_LANELET must be in the same directory as the " - f"OpenSCENARIO file: {configured}" - ) - try: - matches = resolution.lanelet.samefile(configured) - except OSError: - matches = resolution.lanelet.resolve() == configured - if not matches: - report.errors.append( - f"Configured Lanelet2 map {configured} does not match resolved map {resolution.lanelet}" - ) - - -def validate_scenario( - scenario_file: Path | str, - *, - opendrive: Path | str | None = None, - lanelet: Path | str | None = None, - ego: str = "", - repo_root: Path | str | None = None, - expected_map: str = "", - expected_opendrive: Path | str | None = None, - expected_lanelet: Path | str | None = None, - allow_repair: bool = False, -) -> ScenarioReport: - scenario_path = Path(scenario_file).resolve() - report = ScenarioReport(scenario=scenario_path) - try: - tree = _parse_xml(scenario_path, "OpenSCENARIO") - root = tree.getroot() - version_issues = _version_conversion_issues(root) - unrepairable_version = any( - issue.startswith("Unsupported") or issue == "FileHeader is missing" - for issue in version_issues - ) - if unrepairable_version or not allow_repair: - report.errors.extend(version_issues) - else: - report.planned_changes.extend(version_issues) - report.map_resolution = _resolve_map( - scenario_path, - root, - opendrive=Path(opendrive) if opendrive else None, - lanelet=Path(lanelet) if lanelet else None, - ) - ego_actor, ego_errors = _select_ego( - root, - ego, - allow_repair=allow_repair, - ) - report.errors.extend(ego_errors) - if ego_actor is not None: - report.ego_actor = ego_actor.get("name", "") - if report.ego_actor != "ego_vehicle": - report.planned_changes.append( - f"Rename ego actor {report.ego_actor!r} to 'ego_vehicle'" - ) - if _actor_type(ego_actor) != "ego_vehicle": - report.planned_changes.append("Set ego actor type=ego_vehicle") - if not _has_normalized_ego_controller(root, report.ego_actor): - if allow_repair: - report.planned_changes.append( - "Replace ego ControllerAction elements with RosRouteController" - ) - else: - report.errors.append( - "ego_vehicle controller setup is not normalized; import the " - "scenario to replace it with RosRouteController" - ) - missing_rts = _missing_rts_count(root, report.ego_actor) - if missing_rts: - report.planned_changes.append( - f"Add rts-mode=rts to {missing_rts} non-ego trajectory/trajectories" - ) - - object_controller_count = len(_object_controllers(root)) - if object_controller_count: - message = ( - f"Remove {object_controller_count} ScenarioObject " - "ObjectController element(s)" - ) - if allow_repair: - report.planned_changes.append(message) - else: - report.errors.append( - f"{message}; import the scenario to use runtime controllers" - ) - remaining_catalog_references = _catalog_references_outside_object_controllers(root) - if remaining_catalog_references: - report.errors.append( - f"Scenario contains {len(remaining_catalog_references)} unsupported " - "external CatalogReference element(s)" - ) - old_precipitation = sum( - 1 for element in _iter(root, "Precipitation") if "intensity" in element.attrib - ) - if old_precipitation: - report.planned_changes.append( - f"Rename intensity on {old_precipitation} Precipitation element(s)" - ) - - init_actions = _path(root, "Storyboard", "Init", "Actions") - teleport_count = 0 - for teleport in _iter(init_actions, "TeleportAction"): - world_position = next(iter(_iter(teleport, "WorldPosition")), None) - if world_position is None: - report.errors.append("Init TeleportAction has no WorldPosition") - continue - try: - float(world_position.get("z", "0")) - except ValueError: - report.errors.append("Init TeleportAction WorldPosition requires a numeric z value") - continue - teleport_count += 1 - if teleport_count: - report.planned_changes.append( - f"Raise {teleport_count} initial TeleportAction position(s) by 0.1 m" - ) - - missing_criteria = _missing_criteria(root) - if missing_criteria: - report.planned_changes.append( - f"Add {len(missing_criteria)} missing ScenarioRunner criterion/criteria" - ) - - _validate_expected_map( - report, - expected_map=expected_map, - expected_opendrive=Path(expected_opendrive) if expected_opendrive else None, - expected_lanelet=Path(expected_lanelet) if expected_lanelet else None, - ) - except ScenarioCheckerError as error: - report.errors.append(str(error)) - return report - - -def validate_scenario_folder( - scenario_folder: Path | str, - *, - repo_root: Path | str | None = None, - expected_map: str = "", - expected_opendrive: Path | str | None = None, - lanelet: Path | str | None = None, -) -> dict[str, object]: - folder = Path(scenario_folder).resolve() - if not folder.is_dir(): - return { - "valid": False, - "folder": str(folder), - "checked": 0, - "errors": [f"Scenario folder does not exist: {folder}"], - "warnings": [], - } - - custom_opendrive = Path(expected_opendrive).resolve() if expected_opendrive else None - selected_reference = custom_opendrive.name if custom_opendrive else expected_map - selected_normalized = _normalize_map_reference(selected_reference) - errors: list[str] = [] - warnings: list[str] = [] - checked = 0 - - for scenario in sorted(folder.rglob("*.xosc")): - if "catalogs" in {part.lower() for part in scenario.parts}: - continue - try: - tree = _parse_xml(scenario, "OpenSCENARIO") - logic = _path(tree.getroot(), "RoadNetwork", "LogicFile") - logic_file = logic.get("filepath", "") if logic is not None else "" - if custom_opendrive: - logic_reference = Path(logic_file.replace("\\", "/")) - if ( - scenario.parent.resolve() != custom_opendrive.parent - or logic_reference.is_absolute() - or logic_reference.parent != Path(".") - or logic_reference.name != custom_opendrive.name - ): - continue - elif selected_normalized and _normalize_map_reference(logic_file) != selected_normalized: - continue - except ScenarioCheckerError as error: - errors.append(f"{scenario}: {error}") - continue - - report = validate_scenario( - scenario, - repo_root=repo_root, - opendrive=expected_opendrive, - lanelet=lanelet, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - expected_lanelet=lanelet, - ) - checked += 1 - errors.extend(f"{scenario}: {message}" for message in report.errors) - warnings.extend(f"{scenario}: {message}" for message in report.warnings) - - if selected_normalized and checked == 0: - errors.append(f"No OpenSCENARIO files match the configured map {selected_reference!r}") - - return { - "valid": not errors, - "folder": str(folder), - "checked": checked, - "errors": errors, - "warnings": warnings, - } - - -def _runtime_asset_path(value: str, scenario_root: Path) -> Path: - reference = Path(value) - root = scenario_root.resolve() - if reference.is_absolute() and reference.exists(): - resolved = reference.resolve() - else: - normalized = value.strip().replace("\\", "/").lstrip("/") - repository_prefix = "scenarios/" - if repository_prefix in normalized: - normalized = normalized.split(repository_prefix, 1)[1] - resolved = (root / normalized).resolve() - if not resolved.is_relative_to(root): - raise ScenarioCheckerError( - f"Runtime scenario path must stay below {root}: {value}" - ) - return resolved - - -def _scenario_root_from_file(scenario: Path) -> Path: - for parent in scenario.resolve().parents: - if parent.name == "scenarios": - return parent - return scenario.resolve().parent - - -def validate_runtime( - target: Path | str, - environment: Optional[dict[str, str]] = None, -) -> dict[str, object]: - env = os.environ if environment is None else environment - resolved_target = Path(target).resolve() - if resolved_target == Path("/"): - raise ScenarioCheckerError("Scenario path must not be empty or the filesystem root") - if resolved_target.is_dir(): - target_type = "folder" - root = resolved_target - elif resolved_target.is_file(): - target_type = "file" - root = _scenario_root_from_file(resolved_target) - else: - raise ScenarioCheckerError(f"Scenario path does not exist: {resolved_target}") - - expected_map = env.get("MAP", "").strip() - opendrive_value = env.get("CUSTOM_OPENDRIVE", "").strip() - lanelet_value = env.get("CUSTOM_LANELET", "").strip() - expected_opendrive = ( - _runtime_asset_path(opendrive_value, root) if opendrive_value else None - ) - lanelet = _runtime_asset_path(lanelet_value, root) if lanelet_value else None - - if target_type == "folder": - return validate_scenario_folder( - root, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - lanelet=lanelet, - ) - report = validate_scenario( - resolved_target, - opendrive=expected_opendrive, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - expected_lanelet=lanelet, - lanelet=lanelet, - ) - return report.to_dict() - - -def _rename_ego(root: ET.Element, actor: ET.Element) -> None: - old_name = actor.get("name", "") - if old_name == "ego_vehicle": - return - for element in root.iter(): - for attribute, value in list(element.attrib.items()): - if value == old_name: - element.set(attribute, "ego_vehicle") - - -def _ensure_actor_types(root: ET.Element, ego_actor: ET.Element) -> None: - for actor in _scenario_objects(root): - payload = _actor_payload(actor) - if payload is None: - continue - properties = _child(payload, "Properties") - if properties is None: - properties = _subelement(payload, "Properties") - property_type = next( - ( - prop - for prop in _children(properties, "Property") - if prop.get("name") == "type" - ), - None, - ) - if property_type is None: - property_type = _subelement(properties, "Property", {"name": "type"}) - property_type.set( - "value", - "ego_vehicle" if actor is ego_actor else "other_vehicle", - ) - - -def _remove_object_controllers(root: ET.Element) -> int: - removed = 0 - for actor in _scenario_objects(root): - for controller in _children(actor, "ObjectController"): - actor.remove(controller) - removed += 1 - return removed - - -def _clear_catalog_locations(root: ET.Element) -> int: - catalog_locations = _child(root, "CatalogLocations") - if catalog_locations is None: - return 0 - removed = len(list(catalog_locations)) - catalog_locations.clear() - return removed - - -def _replace_ros_controller(root: ET.Element) -> int: - actions = _path(root, "Storyboard", "Init", "Actions") - if actions is None: - raise ScenarioCheckerError("Storyboard/Init/Actions is required to add ego controller") - ego_private = _ego_private(root, "ego_vehicle") - if ego_private is None: - ego_private = _subelement(actions, "Private", {"entityRef": "ego_vehicle"}) - - # Shared maneuver actions cannot be removed without changing other actors. - for group in _iter(root, "ManeuverGroup"): - refs = { - ref.get("entityRef") - for ref in _children(_child(group, "Actors"), "EntityRef") - } - if "ego_vehicle" in refs and len(refs) > 1 and list(_iter(group, "ControllerAction")): - raise ScenarioCheckerError( - "Ego ControllerAction is shared with other actors; split the " - "ManeuverGroup by actor before importing" - ) - existing = _ego_controller_actions(root, "ego_vehicle") - parents = {child: parent for parent in root.iter() for child in parent} - required_children = { - "Action": "PrivateAction", "Event": "Action", - "Maneuver": "Event", "ManeuverGroup": "Maneuver", - } - for action in existing: - parent = parents[action] - parent.remove(action) - # Remove storyboard containers left without their required action children. - while (required := required_children.get(_local_name(parent.tag))): - if _children(parent, required): - break - owner = parents[parent] - owner.remove(parent) - parent = owner - removed = len(existing) - - private_action = _subelement(ego_private, "PrivateAction") - controller_action = _subelement(private_action, "ControllerAction") - override = _subelement(controller_action, "OverrideControllerValueAction") - for name in ("Throttle", "Brake", "Clutch", "ParkingBrake", "SteeringWheel"): - _subelement(override, name, {"value": "0", "active": "false"}) - _subelement(override, "Gear", {"number": "0", "active": "false"}) - assign = _subelement(controller_action, "AssignControllerAction") - controller = _subelement(assign, "Controller", {"name": "RosRouteController"}) - properties = _subelement(controller, "Properties") - _subelement( - properties, - "Property", - {"name": "module", "value": ROS_CONTROLLER_MODULE}, - ) - return removed - - -def _ensure_rts(root: ET.Element) -> int: - added = 0 - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = { - ref.get("entityRef", "") - for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") - } - if not actors or "ego_vehicle" in actors: - continue - for trajectory in _iter(maneuver_group, "Trajectory"): - declarations = _child(trajectory, "ParameterDeclarations") - if declarations is None: - declarations = ET.Element(f"{_namespace(trajectory)}ParameterDeclarations") - trajectory.insert(0, declarations) - existing = next( - ( - parameter - for parameter in _children(declarations, "ParameterDeclaration") - if parameter.get("name") == "rts-mode" - ), - None, - ) - if existing is None: - _subelement( - declarations, - "ParameterDeclaration", - {"name": "rts-mode", "value": "rts", "parameterType": "string"}, - ) - added += 1 - return added - - -def _convert_weather(root: ET.Element) -> int: - converted = 0 - for precipitation in _iter(root, "Precipitation"): - if "intensity" not in precipitation.attrib: - continue - if "precipitationIntensity" not in precipitation.attrib: - precipitation.set("precipitationIntensity", precipitation.get("intensity", "")) - del precipitation.attrib["intensity"] - converted += 1 - return converted - - -def _adjust_teleports(root: ET.Element) -> int: - adjusted = 0 - init_actions = _path(root, "Storyboard", "Init", "Actions") - for teleport in _iter(init_actions, "TeleportAction"): - world_position = next(iter(_iter(teleport, "WorldPosition")), None) - if world_position is None: - raise ScenarioCheckerError("Init TeleportAction has no WorldPosition") - try: - z_value = float(world_position.get("z", "0")) - except ValueError as error: - raise ScenarioCheckerError( - "Init TeleportAction WorldPosition requires a numeric z value" - ) from error - world_position.set("z", f"{z_value + 0.1:.12g}") - adjusted += 1 - return adjusted - - -def _condition_group(stop_trigger: ET.Element) -> ET.Element: - return _subelement(stop_trigger, "ConditionGroup") - - -def _ensure_act_stop_trigger( - root: ET.Element, - *, - timeout: Optional[float], - stop_on_ego_route_complete: bool, -) -> list[str]: - actions = [] - stories = _children(_child(root, "Storyboard"), "Story") - acts = _children(stories[-1], "Act") if stories else [] - if not acts: - return actions - act = acts[-1] - stop_trigger = _child(act, "StopTrigger") - if stop_trigger is None: - stop_trigger = _subelement(act, "StopTrigger") - - if timeout is not None and not any(True for _ in _iter(stop_trigger, "SimulationTimeCondition")): - group = _condition_group(stop_trigger) - condition = _subelement( - group, - "Condition", - {"name": "OpenADSimTimeout", "delay": "0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - _subelement( - by_value, - "SimulationTimeCondition", - {"value": f"{timeout:g}", "rule": "greaterThan"}, - ) - actions.append(f"Added {timeout:g}s Act timeout") - - if stop_on_ego_route_complete: - event_name = _ego_route_event(root, "ego_vehicle") - existing_refs = { - condition.get("storyboardElementRef", "") - for condition in _iter(stop_trigger, "StoryboardElementStateCondition") - if condition.get("state") == "completeState" - } - if event_name and event_name not in existing_refs: - group = _condition_group(stop_trigger) - condition = _subelement( - group, - "Condition", - {"name": "EgoRouteDone", "delay": "0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - _subelement( - by_value, - "StoryboardElementStateCondition", - { - "storyboardElementType": "event", - "storyboardElementRef": event_name, - "state": "completeState", - }, - ) - actions.append(f"Added EgoRouteDone condition for event {event_name}") - return actions - - -def _ensure_criteria(root: ET.Element, driven_distance: float) -> list[str]: - storyboard = _child(root, "Storyboard") - if storyboard is None: - raise ScenarioCheckerError("Storyboard is required to add ScenarioRunner criteria") - stop_trigger = _child(storyboard, "StopTrigger") - if stop_trigger is None: - stop_trigger = _subelement(storyboard, "StopTrigger") - - existing = { - condition.get("name", "") for condition in _iter(stop_trigger, "Condition") - } - criteria_group = next( - ( - group - for group in _children(stop_trigger, "ConditionGroup") - if any( - condition.get("name", "").startswith("criteria_") - for condition in _children(group, "Condition") - ) - ), - None, - ) - if criteria_group is None: - criteria_group = _condition_group(stop_trigger) - - added = [] - for name in CRITERIA: - if name in existing: - continue - condition = _subelement( - criteria_group, - "Condition", - {"name": name, "delay": "0.0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - if name == "criteria_DrivenDistanceTest": - attributes = { - "parameterRef": "distance_success", - "value": f"{driven_distance:g}", - "rule": "greaterThan", - } - else: - attributes = {"parameterRef": "", "value": "0", "rule": "lessThan"} - _subelement(by_value, "ParameterCondition", attributes) - added.append(name) - return added - - -def _sanitize_name(value: str) -> str: - normalized = re.sub(r"[^A-Za-z0-9._-]+", "_", value.strip()) - normalized = normalized.strip("._-") - return normalized - - -def _available_target(output_root: Path, base_name: str) -> Path: - candidate = output_root / base_name - index = 2 - while candidate.exists(): - candidate = output_root / f"{base_name}_{index}" - index += 1 - return candidate - - -def _write_xml(tree: ET.ElementTree, path: Path) -> None: - ET.indent(tree, space=" ") - tree.write(path, encoding="utf-8", xml_declaration=True) - - -def import_scenario( - scenario_file: Path | str, - *, - output_root: Path | str, - name: str = "", - opendrive: Path | str | None = None, - lanelet: Path | str | None = None, - ego: str = "", - timeout: Optional[float] = 60.0, - stop_on_ego_route_complete: bool = True, - driven_distance: float = 30.0, - repo_root: Path | str | None = None, -) -> ImportResult: - if timeout is not None and timeout <= 0: - raise ScenarioCheckerError("Scenario timeout must be greater than zero") - if driven_distance <= 0: - raise ScenarioCheckerError("Driven-distance criterion must be greater than zero") - scenario_path = Path(scenario_file).resolve() - root_path = Path(repo_root).resolve() if repo_root else _repo_root_from(scenario_path) - report = validate_scenario( - scenario_path, - opendrive=opendrive, - lanelet=lanelet, - ego=ego, - repo_root=root_path, - allow_repair=True, - ) - if not report.is_valid or report.map_resolution is None: - raise ScenarioCheckerError("; ".join(report.errors)) - - tree = _parse_xml(scenario_path, "OpenSCENARIO") - root = tree.getroot() - ego_actor, ego_errors = _select_ego(root, ego, allow_repair=True) - if ego_actor is None: - raise ScenarioCheckerError("; ".join(ego_errors)) - - actions: list[str] = [] - import_warnings = list(report.warnings) - actions.extend(_convert_to_osc_1_1(root)) - original_ego_name = ego_actor.get("name", "") - _rename_ego(root, ego_actor) - if original_ego_name != "ego_vehicle": - actions.append(f"Renamed ego actor {original_ego_name} to ego_vehicle") - object_controllers_removed = _remove_object_controllers(root) - if object_controllers_removed: - actions.append( - f"Removed {object_controllers_removed} ScenarioObject ObjectController element(s)" - ) - catalog_locations_cleared = _clear_catalog_locations(root) - if catalog_locations_cleared: - actions.append( - f"Cleared {catalog_locations_cleared} unused catalog location(s)" - ) - _ensure_actor_types(root, ego_actor) - actions.append("Normalized actor type properties") - replaced_controller_actions = _replace_ros_controller(root) - if replaced_controller_actions: - actions.append( - f"Replaced {replaced_controller_actions} ego ControllerAction element(s) " - "with RosRouteController" - ) - else: - actions.append("Added RosRouteController to ego_vehicle") - - rts_added = _ensure_rts(root) - if rts_added: - actions.append(f"Added rts-mode=rts to {rts_added} non-ego trajectory/trajectories") - weather_converted = _convert_weather(root) - if weather_converted: - actions.append(f"Converted {weather_converted} precipitation attribute(s)") - teleport_adjusted = _adjust_teleports(root) - if teleport_adjusted: - actions.append(f"Raised {teleport_adjusted} initial teleport position(s) by 0.1 m") - if stop_on_ego_route_complete and not _ego_route_event(root, "ego_vehicle"): - import_warnings.append( - "No ego AssignRouteAction event found; route-completion StopTrigger was not added" - ) - actions.extend( - _ensure_act_stop_trigger( - root, - timeout=timeout, - stop_on_ego_route_complete=stop_on_ego_route_complete, - ) - ) - criteria_added = _ensure_criteria(root, driven_distance) - if criteria_added: - actions.append(f"Added {len(criteria_added)} ScenarioRunner criterion/criteria") - - resolution = report.map_resolution - logic_element = _path(root, "RoadNetwork", "LogicFile") - assert logic_element is not None - - timestamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") - base_name = _sanitize_name(name) if name.strip() else timestamp - if not base_name: - raise ScenarioCheckerError("Import name contains no usable characters") - destination_root = Path(output_root).resolve() - destination_root.mkdir(parents=True, exist_ok=True) - destination = _available_target(destination_root, base_name) - staging = Path(tempfile.mkdtemp(prefix=".scenario-import-", dir=destination_root)) - staging.chmod(0o2775) - - try: - scenario_output = staging / f"{destination.name}.xosc" - imported_resolution = resolution - if resolution.kind == "custom": - assert resolution.opendrive is not None and resolution.lanelet is not None - opendrive_name = _sanitize_name(resolution.opendrive.stem) + ".xodr" - lanelet_name = _sanitize_name(resolution.lanelet.stem) + ".osm" - opendrive_output = staging / opendrive_name - lanelet_output = staging / lanelet_name - shutil.copy2(resolution.opendrive, opendrive_output) - shutil.copy2(resolution.lanelet, lanelet_output) - logic_element.set("filepath", opendrive_name) - imported_resolution = MapResolution( - kind="custom", - logic_file=opendrive_name, - opendrive=destination / opendrive_name, - lanelet=destination / lanelet_name, - ) - actions.append(f"Set LogicFile to imported OpenDRIVE {opendrive_name}") - else: - logic_element.set("filepath", resolution.map_name) - imported_resolution = MapResolution( - kind="prebuilt", - logic_file=resolution.map_name, - map_name=resolution.map_name, - ) - - _write_xml(tree, scenario_output) - manifest = { - "imported_at": datetime.now(timezone.utc).isoformat(), - "source": str(scenario_path), - "scenario": f"{destination.name}.xosc", - "map": { - "type": imported_resolution.kind, - "map_name": imported_resolution.map_name, - "opendrive": imported_resolution.opendrive.name if imported_resolution.opendrive else "", - "lanelet": imported_resolution.lanelet.name if imported_resolution.lanelet else "", - }, - "actions": actions, - "teleport_z_adjusted": True, - } - (staging / "import.json").write_text( - json.dumps(manifest, indent=2, sort_keys=True) + "\n", - encoding="utf-8", - ) - staging.rename(destination) - except Exception: - shutil.rmtree(staging, ignore_errors=True) - raise - - return ImportResult( - directory=destination, - scenario_file=destination / f"{destination.name}.xosc", - map_resolution=imported_resolution, - actions=tuple(actions), - warnings=tuple(import_warnings), - repo_root=root_path, - ) - - -def _add_map_arguments(parser: argparse.ArgumentParser) -> None: - parser.add_argument("--opendrive", help="custom OpenDRIVE file overriding LogicFile") - parser.add_argument("--lanelet", help="matching Lanelet2 .osm file") - parser.add_argument("--ego", default="", help="actor to use when ego_vehicle is missing") - parser.add_argument("--repo-root", help="OpenADSim repository root") - parser.add_argument("--json", action="store_true", help="emit machine-readable JSON") - - -def _parse_args() -> argparse.Namespace: - parser = argparse.ArgumentParser( - description="Validate and import OpenSCENARIO bundles for OpenADSim/CARLA" - ) - subparsers = parser.add_subparsers(dest="command", required=True) - - validate = subparsers.add_parser("validate", help="validate without modifying files") - validate.add_argument("scenario") - _add_map_arguments(validate) - validate.add_argument("--expected-map", default="") - validate.add_argument("--expected-opendrive") - validate.add_argument("--expected-lanelet") - - validate_folder = subparsers.add_parser( - "validate-folder", - help="validate scenarios matching one active map", - ) - validate_folder.add_argument("folder") - validate_folder.add_argument("--repo-root") - validate_folder.add_argument("--expected-map", default="") - validate_folder.add_argument("--expected-opendrive") - validate_folder.add_argument("--lanelet") - validate_folder.add_argument("--json", action="store_true") - - validate_runtime_parser = subparsers.add_parser( - "validate-runtime", - help="validate the active scenario configuration from environment variables", - ) - validate_runtime_parser.add_argument("target") - validate_runtime_parser.add_argument("--json", action="store_true") - - importer = subparsers.add_parser("import", help="validate and create an import bundle") - importer.add_argument("scenario") - _add_map_arguments(importer) - importer.add_argument("--output-root", required=True) - importer.add_argument("--name", default="") - importer.add_argument("--timeout", type=float, default=60.0) - importer.add_argument("--no-ego-route-stop", action="store_true") - importer.add_argument("--driven-distance", type=float, default=30.0) - return parser.parse_args() - - -def _print_report(data: dict[str, object], as_json: bool) -> None: - if as_json: - print(json.dumps(data, indent=2, sort_keys=True)) - return - if data.get("valid"): - target = data.get("scenario_file") or data.get("scenario") or data.get("folder", "") - print(f"Valid: {target}") - if "checked" in data: - print(f" checked: {data['checked']}") - for action in data.get("actions", data.get("planned_changes", [])): - print(f" - {action}") - for warning in data.get("warnings", []): - print(f" warning: {warning}") - else: - for error in data.get("errors", []): - print(f"Error: {error}", file=sys.stderr) - - -def main() -> int: - args = _parse_args() - try: - if args.command == "validate": - report = validate_scenario( - args.scenario, - opendrive=args.opendrive, - lanelet=args.lanelet, - ego=args.ego, - repo_root=args.repo_root, - expected_map=args.expected_map, - expected_opendrive=args.expected_opendrive, - expected_lanelet=args.expected_lanelet, - ) - data = report.to_dict() - _print_report(data, args.json) - return 0 if report.is_valid else 1 - - if args.command == "validate-folder": - data = validate_scenario_folder( - args.folder, - repo_root=args.repo_root, - expected_map=args.expected_map, - expected_opendrive=args.expected_opendrive, - lanelet=args.lanelet, - ) - _print_report(data, args.json) - return 0 if data["valid"] else 1 - - if args.command == "validate-runtime": - data = validate_runtime(args.target) - _print_report(data, args.json) - return 0 if data["valid"] else 1 - - repo_root = Path(args.repo_root).resolve() if args.repo_root else None - result = import_scenario( - args.scenario, - output_root=args.output_root, - name=args.name, - opendrive=args.opendrive, - lanelet=args.lanelet, - ego=args.ego, - timeout=args.timeout, - stop_on_ego_route_complete=not args.no_ego_route_stop, - driven_distance=args.driven_distance, - repo_root=repo_root, - ) - data = result.to_dict() - _print_report(data, args.json) - return 0 - except ScenarioCheckerError as error: - data = {"valid": False, "errors": [str(error)], "warnings": []} - _print_report(data, args.json) - return 1 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl deleted file mode 100644 index 95204cf..0000000 --- a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl +++ /dev/null @@ -1,45 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: carla-scenario-runner-ros-automated-testing - image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.1 - args: - - /bin/bash - - -ic - - |- - set -e - python3 /scenario_checker.py validate-runtime "/${SCENARIO_FILE}" - exec python3 -u "${SCENARIO_RUNNER_PATH}/scenario_runner.py" \ - --host "${CARLA_HOST}" \ - --openscenario /${SCENARIO_FILE} \ - --output \ - --rtFactor 1.0 \ - --waitForEgo - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - MAP: {{ (default "" (env "MAP")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} - CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} - SCENARIO_FILE: {{ (env "SCENARIO_FILE") | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /scenario_checker.py - data: | -{{ readFile "scenario_checker.py" | indent 6 }} - - mountPath: /scenarios - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py deleted file mode 100644 index c0ef0df..0000000 --- a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/scenario_checker.py +++ /dev/null @@ -1,1413 +0,0 @@ -#!/usr/bin/env python3 - -"""Validate and import OpenSCENARIO bundles for OpenADSim/CARLA.""" - -from __future__ import annotations - -import argparse -import json -import os -import re -import shutil -import sys -import tempfile -import xml.etree.ElementTree as ET -from dataclasses import dataclass, field -from datetime import datetime, timezone -from pathlib import Path -from typing import Optional - - -PREBUILT_MAPS = { - "aldenhoven": "aldenhoven", - "campus": "campus", - "town10hd_opt": "Town10HD_Opt", -} -CRITERIA = ( - "criteria_RunningStopTest", - "criteria_RunningRedLightTest", - "criteria_CollisionTest", - "criteria_WrongLaneTest", - "criteria_OnSidewalkTest", - "criteria_DrivenDistanceTest", -) -ROS_CONTROLLER_MODULE = "ros_vehicle_control_route_action.py" - - -class ScenarioCheckerError(RuntimeError): - """Raised for a user-facing validation or import error.""" - - -@dataclass(frozen=True) -class MapResolution: - kind: str - logic_file: str - map_name: str = "" - opendrive: Optional[Path] = None - lanelet: Optional[Path] = None - - -@dataclass -class ScenarioReport: - scenario: Path - errors: list[str] = field(default_factory=list) - warnings: list[str] = field(default_factory=list) - planned_changes: list[str] = field(default_factory=list) - map_resolution: Optional[MapResolution] = None - ego_actor: str = "" - - @property - def is_valid(self) -> bool: - return not self.errors - - def to_dict(self) -> dict[str, object]: - map_data: dict[str, object] = {} - if self.map_resolution: - map_data = { - "type": self.map_resolution.kind, - "logic_file": self.map_resolution.logic_file, - "map_name": self.map_resolution.map_name, - "opendrive": str(self.map_resolution.opendrive or ""), - "lanelet": str(self.map_resolution.lanelet or ""), - } - return { - "valid": self.is_valid, - "scenario": str(self.scenario), - "ego_actor": self.ego_actor, - "map": map_data, - "errors": self.errors, - "warnings": self.warnings, - "planned_changes": self.planned_changes, - } - - -@dataclass(frozen=True) -class ImportResult: - directory: Path - scenario_file: Path - map_resolution: MapResolution - actions: tuple[str, ...] - warnings: tuple[str, ...] - repo_root: Path - - def _relative(self, path: Optional[Path]) -> str: - if path is None: - return "" - try: - return path.resolve().relative_to(self.repo_root.resolve()).as_posix() - except ValueError: - return str(path.resolve()) - - def to_dict(self) -> dict[str, object]: - return { - "valid": True, - "directory": self._relative(self.directory), - "scenario_file": self._relative(self.scenario_file), - "map": { - "type": self.map_resolution.kind, - "map_name": self.map_resolution.map_name, - "opendrive": self._relative(self.map_resolution.opendrive), - "lanelet": self._relative(self.map_resolution.lanelet), - }, - "actions": list(self.actions), - "warnings": list(self.warnings), - } - - -def _local_name(tag: str) -> str: - return tag.rsplit("}", 1)[-1] - - -def _namespace(element: ET.Element) -> str: - if element.tag.startswith("{"): - return element.tag.split("}", 1)[0] + "}" - return "" - - -def _child(parent: Optional[ET.Element], name: str) -> Optional[ET.Element]: - if parent is None: - return None - return next( - (element for element in list(parent) if _local_name(element.tag) == name), - None, - ) - - -def _children(parent: Optional[ET.Element], name: str) -> list[ET.Element]: - if parent is None: - return [] - return [element for element in list(parent) if _local_name(element.tag) == name] - - -def _path(parent: Optional[ET.Element], *names: str) -> Optional[ET.Element]: - element = parent - for name in names: - element = _child(element, name) - if element is None: - return None - return element - - -def _iter(parent: Optional[ET.Element], name: str): - if parent is None: - return - for element in parent.iter(): - if _local_name(element.tag) == name: - yield element - - -def _subelement( - parent: ET.Element, - name: str, - attributes: Optional[dict[str, str]] = None, -) -> ET.Element: - return ET.SubElement( - parent, - f"{_namespace(parent)}{name}", - attributes or {}, - ) - - -def _normalize_map_reference(value: str) -> str: - normalized = value.strip().replace("\\", "/").rstrip("/") - filename = normalized.rsplit("/", 1)[-1] - if filename.lower().endswith(".xodr"): - filename = filename[:-5] - return filename.lower() - - -def _canonical_prebuilt_map(value: str) -> str: - return PREBUILT_MAPS.get(_normalize_map_reference(value), "") - - -def _version_conversion_issues(root: ET.Element) -> list[str]: - issues: list[str] = [] - header = _child(root, "FileHeader") - if header is None: - return ["FileHeader is missing"] - - major = header.get("revMajor", "") - minor = header.get("revMinor", "") - if major != "1": - return [f"Unsupported OpenSCENARIO major version {major or ''}; expected 1"] - if minor != "1": - issues.append(f"Convert OpenSCENARIO {major}.{minor or ''} to 1.1") - if _child(root, "VariableDeclarations") is not None: - issues.append("Remove OpenSCENARIO 1.2 VariableDeclarations") - if any(event.get("priority") == "override" for event in _iter(root, "Event")): - issues.append("Convert Event priority 'override' to 'overwrite'") - if any( - condition.get("relativeDistanceType") == "cartesianDistance" - for condition in _iter(root, "RelativeDistanceCondition") - ): - issues.append("Convert cartesianDistance to euclidianDistance") - return issues - - -def _convert_to_osc_1_1(root: ET.Element) -> list[str]: - actions: list[str] = [] - header = _child(root, "FileHeader") - if header is None: - raise ScenarioCheckerError("FileHeader is missing") - - major = header.get("revMajor", "") - minor = header.get("revMinor", "") - if major != "1": - raise ScenarioCheckerError( - f"Unsupported OpenSCENARIO major version {major or ''}; expected 1" - ) - if minor != "1": - header.set("revMinor", "1") - actions.append(f"Converted OpenSCENARIO {major}.{minor or ''} to 1.1") - - variable_declarations = _child(root, "VariableDeclarations") - if variable_declarations is not None: - root.remove(variable_declarations) - actions.append("Removed OpenSCENARIO 1.2 VariableDeclarations") - - priorities_converted = 0 - for event in _iter(root, "Event"): - if event.get("priority") == "override": - event.set("priority", "overwrite") - priorities_converted += 1 - if priorities_converted: - actions.append( - f"Converted {priorities_converted} Event priority value(s) from override to overwrite" - ) - - distances_converted = 0 - for condition in _iter(root, "RelativeDistanceCondition"): - if condition.get("relativeDistanceType") == "cartesianDistance": - condition.set("relativeDistanceType", "euclidianDistance") - distances_converted += 1 - if distances_converted: - actions.append( - f"Converted {distances_converted} cartesianDistance value(s) to euclidianDistance" - ) - return actions - - -def _parse_xml(path: Path, expected_root: str) -> ET.ElementTree: - try: - tree = ET.parse(path) - except (OSError, ET.ParseError) as error: - raise ScenarioCheckerError(f"Cannot parse {path}: {error}") from error - if _local_name(tree.getroot().tag) != expected_root: - raise ScenarioCheckerError( - f"{path} must have <{expected_root}> as its root element" - ) - return tree - - -def _repo_root_from(path: Path) -> Path: - for candidate in (path.resolve(), *path.resolve().parents): - if (candidate / "carla-simulation").is_dir() and (candidate / "utils").is_dir(): - return candidate - return Path.cwd().resolve() - - -def _resolve_map( - scenario_file: Path, - root: ET.Element, - *, - opendrive: Optional[Path], - lanelet: Optional[Path], -) -> MapResolution: - logic_element = _path(root, "RoadNetwork", "LogicFile") - if logic_element is None or not logic_element.get("filepath", "").strip(): - raise ScenarioCheckerError("RoadNetwork/LogicFile filepath is missing") - logic_file = logic_element.get("filepath", "").strip() - - selected_opendrive = opendrive.resolve() if opendrive else None - if selected_opendrive: - if selected_opendrive.suffix.lower() != ".xodr": - raise ScenarioCheckerError("Uploaded OpenDRIVE map must end in .xodr") - _parse_xml(selected_opendrive, "OpenDRIVE") - elif logic_file.lower().endswith(".xodr"): - raise ScenarioCheckerError( - "OpenDRIVE map referenced by LogicFile must be explicitly uploaded: " - f"{logic_file}" - ) - - if selected_opendrive: - selected_lanelet = lanelet.resolve() if lanelet else None - if selected_lanelet is None or not selected_lanelet.is_file(): - raise ScenarioCheckerError( - "Custom OpenDRIVE requires an explicitly uploaded Lanelet2 .osm file" - ) - if selected_lanelet.suffix.lower() != ".osm": - raise ScenarioCheckerError("Lanelet2 map must end in .osm") - _parse_xml(selected_lanelet, "osm") - return MapResolution( - kind="custom", - logic_file=logic_file, - opendrive=selected_opendrive, - lanelet=selected_lanelet, - ) - - if lanelet: - raise ScenarioCheckerError( - "A Lanelet2 upload without a custom OpenDRIVE map is not supported by the importer" - ) - map_name = _canonical_prebuilt_map(logic_file) - if not map_name: - supported = ", ".join(PREBUILT_MAPS.values()) - raise ScenarioCheckerError( - f"LogicFile references unknown prebuilt map {logic_file!r}; supported: {supported}" - ) - return MapResolution(kind="prebuilt", logic_file=logic_file, map_name=map_name) - - -def _scenario_objects(root: ET.Element) -> list[ET.Element]: - return _children(_child(root, "Entities"), "ScenarioObject") - - -def _actor_payload(actor: ET.Element) -> Optional[ET.Element]: - return next( - ( - element - for element in list(actor) - if _local_name(element.tag) in {"Vehicle", "Pedestrian"} - ), - None, - ) - - -def _actor_type(actor: ET.Element) -> str: - payload = _actor_payload(actor) - properties = _child(payload, "Properties") - for prop in _children(properties, "Property"): - if prop.get("name") == "type": - return prop.get("value", "") - return "" - - -def _select_ego( - root: ET.Element, - requested_ego: str, - *, - allow_repair: bool, -) -> tuple[Optional[ET.Element], list[str]]: - actors = _scenario_objects(root) - ego_actors = [ - actor - for actor in actors - if actor.get("name") == "ego_vehicle" or _actor_type(actor) == "ego_vehicle" - ] - unique_ego = list({id(actor): actor for actor in ego_actors}.values()) - if len(unique_ego) > 1: - return None, ["Multiple actors are marked as ego_vehicle"] - if unique_ego: - if requested_ego and unique_ego[0].get("name") != requested_ego: - return None, [ - f"Requested ego actor {requested_ego!r} conflicts with existing ego_vehicle" - ] - return unique_ego[0], [] - - vehicle_actors = [] - for actor in actors: - payload = _actor_payload(actor) - if payload is not None and _local_name(payload.tag) == "Vehicle": - vehicle_actors.append(actor) - if requested_ego: - requested = next( - (actor for actor in vehicle_actors if actor.get("name") == requested_ego), - None, - ) - if requested is None: - return None, [f"Requested ego actor does not exist or is not a Vehicle: {requested_ego}"] - return requested, [] - if not vehicle_actors: - return None, ["Scenario contains no inline Vehicle actor that can become ego_vehicle"] - if not allow_repair: - return None, [ - "Scenario has no ego_vehicle; import it to select and normalize an ego actor" - ] - return vehicle_actors[0], [] - - -def _ego_private(root: ET.Element, ego_name: str) -> Optional[ET.Element]: - actions = _path(root, "Storyboard", "Init", "Actions") - for private in _children(actions, "Private"): - if private.get("entityRef") == ego_name: - return private - return None - - -def _ego_controller_actions(root: ET.Element, ego_name: str) -> list[ET.Element]: - actions = _path(root, "Storyboard", "Init", "Actions") - result = [ - action - for private in _children(actions, "Private") - if private.get("entityRef") == ego_name - for action in _children(private, "PrivateAction") - if _child(action, "ControllerAction") is not None - ] - for group in _iter(root, "ManeuverGroup"): - actors = _child(group, "Actors") - refs = {ref.get("entityRef") for ref in _children(actors, "EntityRef")} - if ego_name in refs: - result.extend( - action for action in _iter(group, "PrivateAction") - if _child(action, "ControllerAction") is not None - ) - return result - - -def _has_normalized_ego_controller(root: ET.Element, ego_name: str) -> bool: - controller_actions = _ego_controller_actions(root, ego_name) - if len(controller_actions) != 1: - return False - init = _path(root, "Storyboard", "Init", "Actions") - if controller_actions[0] not in list(_iter(init, "PrivateAction")): - return False - assign_actions = list(_iter(controller_actions[0], "AssignControllerAction")) - if len(assign_actions) != 1: - return False - return any( - prop.get("name") == "module" and prop.get("value") == ROS_CONTROLLER_MODULE - for prop in _iter(assign_actions[0], "Property") - ) - - -def _object_controllers(root: ET.Element) -> list[ET.Element]: - return [ - controller - for actor in _scenario_objects(root) - for controller in _children(actor, "ObjectController") - ] - - -def _catalog_references_outside_object_controllers( - root: ET.Element, -) -> list[ET.Element]: - replaced_reference_ids = { - id(reference) - for controller in _object_controllers(root) - for reference in _iter(controller, "CatalogReference") - } - return [ - reference - for reference in _iter(root, "CatalogReference") - if id(reference) not in replaced_reference_ids - ] - - -def _ego_route_event(root: ET.Element, ego_name: str) -> str: - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = _child(maneuver_group, "Actors") - if not any( - ref.get("entityRef") == ego_name for ref in _children(actors, "EntityRef") - ): - continue - for event in _iter(maneuver_group, "Event"): - if any(True for _ in _iter(event, "AssignRouteAction")): - return event.get("name", "") - return "" - - -def _missing_rts_count(root: ET.Element, ego_name: str) -> int: - missing = 0 - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = { - ref.get("entityRef", "") - for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") - } - if not actors or ego_name in actors: - continue - for trajectory in _iter(maneuver_group, "Trajectory"): - declarations = _child(trajectory, "ParameterDeclarations") - if not any( - parameter.get("name") == "rts-mode" - for parameter in _children(declarations, "ParameterDeclaration") - ): - missing += 1 - return missing - - -def _missing_criteria(root: ET.Element) -> list[str]: - storyboard = _child(root, "Storyboard") - stop_trigger = _child(storyboard, "StopTrigger") - existing = { - condition.get("name", "") for condition in _iter(stop_trigger, "Condition") - } - return [name for name in CRITERIA if name not in existing] - - -def _validate_expected_map( - report: ScenarioReport, - *, - expected_map: str, - expected_opendrive: Optional[Path], - expected_lanelet: Optional[Path], -) -> None: - resolution = report.map_resolution - if resolution is None: - return - if expected_map: - expected_canonical = _canonical_prebuilt_map(expected_map) - if resolution.kind != "prebuilt" or resolution.map_name != expected_canonical: - report.errors.append( - f"Configured prebuilt map {expected_map!r} does not match LogicFile {resolution.logic_file!r}" - ) - if expected_opendrive: - if resolution.kind != "custom" or resolution.opendrive is None: - report.errors.append( - "Configured CUSTOM_OPENDRIVE does not match the prebuilt map in LogicFile" - ) - else: - configured = expected_opendrive.resolve() - if configured.parent != report.scenario.parent.resolve(): - report.errors.append( - "CUSTOM_OPENDRIVE must be in the same directory as the " - f"OpenSCENARIO file: {configured}" - ) - logic_reference = Path(resolution.logic_file.replace("\\", "/")) - if ( - logic_reference.is_absolute() - or logic_reference.parent != Path(".") - or logic_reference.name != configured.name - ): - report.errors.append( - f"LogicFile filepath must reference the configured OpenDRIVE in the " - "same directory as the OpenSCENARIO file; expected only the filename " - f"{configured.name!r}, got {resolution.logic_file!r}" - ) - try: - matches = resolution.opendrive.samefile(configured) - except OSError: - matches = resolution.opendrive.resolve() == configured - if not matches: - report.errors.append( - f"Configured OpenDRIVE {configured} does not match LogicFile map {resolution.opendrive}" - ) - if expected_lanelet: - if resolution.lanelet is None: - report.errors.append("Configured CUSTOM_LANELET has no matching custom OpenDRIVE map") - else: - configured = expected_lanelet.resolve() - if configured.parent != report.scenario.parent.resolve(): - report.errors.append( - "CUSTOM_LANELET must be in the same directory as the " - f"OpenSCENARIO file: {configured}" - ) - try: - matches = resolution.lanelet.samefile(configured) - except OSError: - matches = resolution.lanelet.resolve() == configured - if not matches: - report.errors.append( - f"Configured Lanelet2 map {configured} does not match resolved map {resolution.lanelet}" - ) - - -def validate_scenario( - scenario_file: Path | str, - *, - opendrive: Path | str | None = None, - lanelet: Path | str | None = None, - ego: str = "", - repo_root: Path | str | None = None, - expected_map: str = "", - expected_opendrive: Path | str | None = None, - expected_lanelet: Path | str | None = None, - allow_repair: bool = False, -) -> ScenarioReport: - scenario_path = Path(scenario_file).resolve() - report = ScenarioReport(scenario=scenario_path) - try: - tree = _parse_xml(scenario_path, "OpenSCENARIO") - root = tree.getroot() - version_issues = _version_conversion_issues(root) - unrepairable_version = any( - issue.startswith("Unsupported") or issue == "FileHeader is missing" - for issue in version_issues - ) - if unrepairable_version or not allow_repair: - report.errors.extend(version_issues) - else: - report.planned_changes.extend(version_issues) - report.map_resolution = _resolve_map( - scenario_path, - root, - opendrive=Path(opendrive) if opendrive else None, - lanelet=Path(lanelet) if lanelet else None, - ) - ego_actor, ego_errors = _select_ego( - root, - ego, - allow_repair=allow_repair, - ) - report.errors.extend(ego_errors) - if ego_actor is not None: - report.ego_actor = ego_actor.get("name", "") - if report.ego_actor != "ego_vehicle": - report.planned_changes.append( - f"Rename ego actor {report.ego_actor!r} to 'ego_vehicle'" - ) - if _actor_type(ego_actor) != "ego_vehicle": - report.planned_changes.append("Set ego actor type=ego_vehicle") - if not _has_normalized_ego_controller(root, report.ego_actor): - if allow_repair: - report.planned_changes.append( - "Replace ego ControllerAction elements with RosRouteController" - ) - else: - report.errors.append( - "ego_vehicle controller setup is not normalized; import the " - "scenario to replace it with RosRouteController" - ) - missing_rts = _missing_rts_count(root, report.ego_actor) - if missing_rts: - report.planned_changes.append( - f"Add rts-mode=rts to {missing_rts} non-ego trajectory/trajectories" - ) - - object_controller_count = len(_object_controllers(root)) - if object_controller_count: - message = ( - f"Remove {object_controller_count} ScenarioObject " - "ObjectController element(s)" - ) - if allow_repair: - report.planned_changes.append(message) - else: - report.errors.append( - f"{message}; import the scenario to use runtime controllers" - ) - remaining_catalog_references = _catalog_references_outside_object_controllers(root) - if remaining_catalog_references: - report.errors.append( - f"Scenario contains {len(remaining_catalog_references)} unsupported " - "external CatalogReference element(s)" - ) - old_precipitation = sum( - 1 for element in _iter(root, "Precipitation") if "intensity" in element.attrib - ) - if old_precipitation: - report.planned_changes.append( - f"Rename intensity on {old_precipitation} Precipitation element(s)" - ) - - init_actions = _path(root, "Storyboard", "Init", "Actions") - teleport_count = 0 - for teleport in _iter(init_actions, "TeleportAction"): - world_position = next(iter(_iter(teleport, "WorldPosition")), None) - if world_position is None: - report.errors.append("Init TeleportAction has no WorldPosition") - continue - try: - float(world_position.get("z", "0")) - except ValueError: - report.errors.append("Init TeleportAction WorldPosition requires a numeric z value") - continue - teleport_count += 1 - if teleport_count: - report.planned_changes.append( - f"Raise {teleport_count} initial TeleportAction position(s) by 0.1 m" - ) - - missing_criteria = _missing_criteria(root) - if missing_criteria: - report.planned_changes.append( - f"Add {len(missing_criteria)} missing ScenarioRunner criterion/criteria" - ) - - _validate_expected_map( - report, - expected_map=expected_map, - expected_opendrive=Path(expected_opendrive) if expected_opendrive else None, - expected_lanelet=Path(expected_lanelet) if expected_lanelet else None, - ) - except ScenarioCheckerError as error: - report.errors.append(str(error)) - return report - - -def validate_scenario_folder( - scenario_folder: Path | str, - *, - repo_root: Path | str | None = None, - expected_map: str = "", - expected_opendrive: Path | str | None = None, - lanelet: Path | str | None = None, -) -> dict[str, object]: - folder = Path(scenario_folder).resolve() - if not folder.is_dir(): - return { - "valid": False, - "folder": str(folder), - "checked": 0, - "errors": [f"Scenario folder does not exist: {folder}"], - "warnings": [], - } - - custom_opendrive = Path(expected_opendrive).resolve() if expected_opendrive else None - selected_reference = custom_opendrive.name if custom_opendrive else expected_map - selected_normalized = _normalize_map_reference(selected_reference) - errors: list[str] = [] - warnings: list[str] = [] - checked = 0 - - for scenario in sorted(folder.rglob("*.xosc")): - if "catalogs" in {part.lower() for part in scenario.parts}: - continue - try: - tree = _parse_xml(scenario, "OpenSCENARIO") - logic = _path(tree.getroot(), "RoadNetwork", "LogicFile") - logic_file = logic.get("filepath", "") if logic is not None else "" - if custom_opendrive: - logic_reference = Path(logic_file.replace("\\", "/")) - if ( - scenario.parent.resolve() != custom_opendrive.parent - or logic_reference.is_absolute() - or logic_reference.parent != Path(".") - or logic_reference.name != custom_opendrive.name - ): - continue - elif selected_normalized and _normalize_map_reference(logic_file) != selected_normalized: - continue - except ScenarioCheckerError as error: - errors.append(f"{scenario}: {error}") - continue - - report = validate_scenario( - scenario, - repo_root=repo_root, - opendrive=expected_opendrive, - lanelet=lanelet, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - expected_lanelet=lanelet, - ) - checked += 1 - errors.extend(f"{scenario}: {message}" for message in report.errors) - warnings.extend(f"{scenario}: {message}" for message in report.warnings) - - if selected_normalized and checked == 0: - errors.append(f"No OpenSCENARIO files match the configured map {selected_reference!r}") - - return { - "valid": not errors, - "folder": str(folder), - "checked": checked, - "errors": errors, - "warnings": warnings, - } - - -def _runtime_asset_path(value: str, scenario_root: Path) -> Path: - reference = Path(value) - root = scenario_root.resolve() - if reference.is_absolute() and reference.exists(): - resolved = reference.resolve() - else: - normalized = value.strip().replace("\\", "/").lstrip("/") - repository_prefix = "scenarios/" - if repository_prefix in normalized: - normalized = normalized.split(repository_prefix, 1)[1] - resolved = (root / normalized).resolve() - if not resolved.is_relative_to(root): - raise ScenarioCheckerError( - f"Runtime scenario path must stay below {root}: {value}" - ) - return resolved - - -def _scenario_root_from_file(scenario: Path) -> Path: - for parent in scenario.resolve().parents: - if parent.name == "scenarios": - return parent - return scenario.resolve().parent - - -def validate_runtime( - target: Path | str, - environment: Optional[dict[str, str]] = None, -) -> dict[str, object]: - env = os.environ if environment is None else environment - resolved_target = Path(target).resolve() - if resolved_target == Path("/"): - raise ScenarioCheckerError("Scenario path must not be empty or the filesystem root") - if resolved_target.is_dir(): - target_type = "folder" - root = resolved_target - elif resolved_target.is_file(): - target_type = "file" - root = _scenario_root_from_file(resolved_target) - else: - raise ScenarioCheckerError(f"Scenario path does not exist: {resolved_target}") - - expected_map = env.get("MAP", "").strip() - opendrive_value = env.get("CUSTOM_OPENDRIVE", "").strip() - lanelet_value = env.get("CUSTOM_LANELET", "").strip() - expected_opendrive = ( - _runtime_asset_path(opendrive_value, root) if opendrive_value else None - ) - lanelet = _runtime_asset_path(lanelet_value, root) if lanelet_value else None - - if target_type == "folder": - return validate_scenario_folder( - root, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - lanelet=lanelet, - ) - report = validate_scenario( - resolved_target, - opendrive=expected_opendrive, - expected_map=expected_map, - expected_opendrive=expected_opendrive, - expected_lanelet=lanelet, - lanelet=lanelet, - ) - return report.to_dict() - - -def _rename_ego(root: ET.Element, actor: ET.Element) -> None: - old_name = actor.get("name", "") - if old_name == "ego_vehicle": - return - for element in root.iter(): - for attribute, value in list(element.attrib.items()): - if value == old_name: - element.set(attribute, "ego_vehicle") - - -def _ensure_actor_types(root: ET.Element, ego_actor: ET.Element) -> None: - for actor in _scenario_objects(root): - payload = _actor_payload(actor) - if payload is None: - continue - properties = _child(payload, "Properties") - if properties is None: - properties = _subelement(payload, "Properties") - property_type = next( - ( - prop - for prop in _children(properties, "Property") - if prop.get("name") == "type" - ), - None, - ) - if property_type is None: - property_type = _subelement(properties, "Property", {"name": "type"}) - property_type.set( - "value", - "ego_vehicle" if actor is ego_actor else "other_vehicle", - ) - - -def _remove_object_controllers(root: ET.Element) -> int: - removed = 0 - for actor in _scenario_objects(root): - for controller in _children(actor, "ObjectController"): - actor.remove(controller) - removed += 1 - return removed - - -def _clear_catalog_locations(root: ET.Element) -> int: - catalog_locations = _child(root, "CatalogLocations") - if catalog_locations is None: - return 0 - removed = len(list(catalog_locations)) - catalog_locations.clear() - return removed - - -def _replace_ros_controller(root: ET.Element) -> int: - actions = _path(root, "Storyboard", "Init", "Actions") - if actions is None: - raise ScenarioCheckerError("Storyboard/Init/Actions is required to add ego controller") - ego_private = _ego_private(root, "ego_vehicle") - if ego_private is None: - ego_private = _subelement(actions, "Private", {"entityRef": "ego_vehicle"}) - - # Shared maneuver actions cannot be removed without changing other actors. - for group in _iter(root, "ManeuverGroup"): - refs = { - ref.get("entityRef") - for ref in _children(_child(group, "Actors"), "EntityRef") - } - if "ego_vehicle" in refs and len(refs) > 1 and list(_iter(group, "ControllerAction")): - raise ScenarioCheckerError( - "Ego ControllerAction is shared with other actors; split the " - "ManeuverGroup by actor before importing" - ) - existing = _ego_controller_actions(root, "ego_vehicle") - parents = {child: parent for parent in root.iter() for child in parent} - required_children = { - "Action": "PrivateAction", "Event": "Action", - "Maneuver": "Event", "ManeuverGroup": "Maneuver", - } - for action in existing: - parent = parents[action] - parent.remove(action) - # Remove storyboard containers left without their required action children. - while (required := required_children.get(_local_name(parent.tag))): - if _children(parent, required): - break - owner = parents[parent] - owner.remove(parent) - parent = owner - removed = len(existing) - - private_action = _subelement(ego_private, "PrivateAction") - controller_action = _subelement(private_action, "ControllerAction") - override = _subelement(controller_action, "OverrideControllerValueAction") - for name in ("Throttle", "Brake", "Clutch", "ParkingBrake", "SteeringWheel"): - _subelement(override, name, {"value": "0", "active": "false"}) - _subelement(override, "Gear", {"number": "0", "active": "false"}) - assign = _subelement(controller_action, "AssignControllerAction") - controller = _subelement(assign, "Controller", {"name": "RosRouteController"}) - properties = _subelement(controller, "Properties") - _subelement( - properties, - "Property", - {"name": "module", "value": ROS_CONTROLLER_MODULE}, - ) - return removed - - -def _ensure_rts(root: ET.Element) -> int: - added = 0 - for maneuver_group in _iter(root, "ManeuverGroup"): - actors = { - ref.get("entityRef", "") - for ref in _children(_child(maneuver_group, "Actors"), "EntityRef") - } - if not actors or "ego_vehicle" in actors: - continue - for trajectory in _iter(maneuver_group, "Trajectory"): - declarations = _child(trajectory, "ParameterDeclarations") - if declarations is None: - declarations = ET.Element(f"{_namespace(trajectory)}ParameterDeclarations") - trajectory.insert(0, declarations) - existing = next( - ( - parameter - for parameter in _children(declarations, "ParameterDeclaration") - if parameter.get("name") == "rts-mode" - ), - None, - ) - if existing is None: - _subelement( - declarations, - "ParameterDeclaration", - {"name": "rts-mode", "value": "rts", "parameterType": "string"}, - ) - added += 1 - return added - - -def _convert_weather(root: ET.Element) -> int: - converted = 0 - for precipitation in _iter(root, "Precipitation"): - if "intensity" not in precipitation.attrib: - continue - if "precipitationIntensity" not in precipitation.attrib: - precipitation.set("precipitationIntensity", precipitation.get("intensity", "")) - del precipitation.attrib["intensity"] - converted += 1 - return converted - - -def _adjust_teleports(root: ET.Element) -> int: - adjusted = 0 - init_actions = _path(root, "Storyboard", "Init", "Actions") - for teleport in _iter(init_actions, "TeleportAction"): - world_position = next(iter(_iter(teleport, "WorldPosition")), None) - if world_position is None: - raise ScenarioCheckerError("Init TeleportAction has no WorldPosition") - try: - z_value = float(world_position.get("z", "0")) - except ValueError as error: - raise ScenarioCheckerError( - "Init TeleportAction WorldPosition requires a numeric z value" - ) from error - world_position.set("z", f"{z_value + 0.1:.12g}") - adjusted += 1 - return adjusted - - -def _condition_group(stop_trigger: ET.Element) -> ET.Element: - return _subelement(stop_trigger, "ConditionGroup") - - -def _ensure_act_stop_trigger( - root: ET.Element, - *, - timeout: Optional[float], - stop_on_ego_route_complete: bool, -) -> list[str]: - actions = [] - stories = _children(_child(root, "Storyboard"), "Story") - acts = _children(stories[-1], "Act") if stories else [] - if not acts: - return actions - act = acts[-1] - stop_trigger = _child(act, "StopTrigger") - if stop_trigger is None: - stop_trigger = _subelement(act, "StopTrigger") - - if timeout is not None and not any(True for _ in _iter(stop_trigger, "SimulationTimeCondition")): - group = _condition_group(stop_trigger) - condition = _subelement( - group, - "Condition", - {"name": "OpenADSimTimeout", "delay": "0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - _subelement( - by_value, - "SimulationTimeCondition", - {"value": f"{timeout:g}", "rule": "greaterThan"}, - ) - actions.append(f"Added {timeout:g}s Act timeout") - - if stop_on_ego_route_complete: - event_name = _ego_route_event(root, "ego_vehicle") - existing_refs = { - condition.get("storyboardElementRef", "") - for condition in _iter(stop_trigger, "StoryboardElementStateCondition") - if condition.get("state") == "completeState" - } - if event_name and event_name not in existing_refs: - group = _condition_group(stop_trigger) - condition = _subelement( - group, - "Condition", - {"name": "EgoRouteDone", "delay": "0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - _subelement( - by_value, - "StoryboardElementStateCondition", - { - "storyboardElementType": "event", - "storyboardElementRef": event_name, - "state": "completeState", - }, - ) - actions.append(f"Added EgoRouteDone condition for event {event_name}") - return actions - - -def _ensure_criteria(root: ET.Element, driven_distance: float) -> list[str]: - storyboard = _child(root, "Storyboard") - if storyboard is None: - raise ScenarioCheckerError("Storyboard is required to add ScenarioRunner criteria") - stop_trigger = _child(storyboard, "StopTrigger") - if stop_trigger is None: - stop_trigger = _subelement(storyboard, "StopTrigger") - - existing = { - condition.get("name", "") for condition in _iter(stop_trigger, "Condition") - } - criteria_group = next( - ( - group - for group in _children(stop_trigger, "ConditionGroup") - if any( - condition.get("name", "").startswith("criteria_") - for condition in _children(group, "Condition") - ) - ), - None, - ) - if criteria_group is None: - criteria_group = _condition_group(stop_trigger) - - added = [] - for name in CRITERIA: - if name in existing: - continue - condition = _subelement( - criteria_group, - "Condition", - {"name": name, "delay": "0.0", "conditionEdge": "rising"}, - ) - by_value = _subelement(condition, "ByValueCondition") - if name == "criteria_DrivenDistanceTest": - attributes = { - "parameterRef": "distance_success", - "value": f"{driven_distance:g}", - "rule": "greaterThan", - } - else: - attributes = {"parameterRef": "", "value": "0", "rule": "lessThan"} - _subelement(by_value, "ParameterCondition", attributes) - added.append(name) - return added - - -def _sanitize_name(value: str) -> str: - normalized = re.sub(r"[^A-Za-z0-9._-]+", "_", value.strip()) - normalized = normalized.strip("._-") - return normalized - - -def _available_target(output_root: Path, base_name: str) -> Path: - candidate = output_root / base_name - index = 2 - while candidate.exists(): - candidate = output_root / f"{base_name}_{index}" - index += 1 - return candidate - - -def _write_xml(tree: ET.ElementTree, path: Path) -> None: - ET.indent(tree, space=" ") - tree.write(path, encoding="utf-8", xml_declaration=True) - - -def import_scenario( - scenario_file: Path | str, - *, - output_root: Path | str, - name: str = "", - opendrive: Path | str | None = None, - lanelet: Path | str | None = None, - ego: str = "", - timeout: Optional[float] = 60.0, - stop_on_ego_route_complete: bool = True, - driven_distance: float = 30.0, - repo_root: Path | str | None = None, -) -> ImportResult: - if timeout is not None and timeout <= 0: - raise ScenarioCheckerError("Scenario timeout must be greater than zero") - if driven_distance <= 0: - raise ScenarioCheckerError("Driven-distance criterion must be greater than zero") - scenario_path = Path(scenario_file).resolve() - root_path = Path(repo_root).resolve() if repo_root else _repo_root_from(scenario_path) - report = validate_scenario( - scenario_path, - opendrive=opendrive, - lanelet=lanelet, - ego=ego, - repo_root=root_path, - allow_repair=True, - ) - if not report.is_valid or report.map_resolution is None: - raise ScenarioCheckerError("; ".join(report.errors)) - - tree = _parse_xml(scenario_path, "OpenSCENARIO") - root = tree.getroot() - ego_actor, ego_errors = _select_ego(root, ego, allow_repair=True) - if ego_actor is None: - raise ScenarioCheckerError("; ".join(ego_errors)) - - actions: list[str] = [] - import_warnings = list(report.warnings) - actions.extend(_convert_to_osc_1_1(root)) - original_ego_name = ego_actor.get("name", "") - _rename_ego(root, ego_actor) - if original_ego_name != "ego_vehicle": - actions.append(f"Renamed ego actor {original_ego_name} to ego_vehicle") - object_controllers_removed = _remove_object_controllers(root) - if object_controllers_removed: - actions.append( - f"Removed {object_controllers_removed} ScenarioObject ObjectController element(s)" - ) - catalog_locations_cleared = _clear_catalog_locations(root) - if catalog_locations_cleared: - actions.append( - f"Cleared {catalog_locations_cleared} unused catalog location(s)" - ) - _ensure_actor_types(root, ego_actor) - actions.append("Normalized actor type properties") - replaced_controller_actions = _replace_ros_controller(root) - if replaced_controller_actions: - actions.append( - f"Replaced {replaced_controller_actions} ego ControllerAction element(s) " - "with RosRouteController" - ) - else: - actions.append("Added RosRouteController to ego_vehicle") - - rts_added = _ensure_rts(root) - if rts_added: - actions.append(f"Added rts-mode=rts to {rts_added} non-ego trajectory/trajectories") - weather_converted = _convert_weather(root) - if weather_converted: - actions.append(f"Converted {weather_converted} precipitation attribute(s)") - teleport_adjusted = _adjust_teleports(root) - if teleport_adjusted: - actions.append(f"Raised {teleport_adjusted} initial teleport position(s) by 0.1 m") - if stop_on_ego_route_complete and not _ego_route_event(root, "ego_vehicle"): - import_warnings.append( - "No ego AssignRouteAction event found; route-completion StopTrigger was not added" - ) - actions.extend( - _ensure_act_stop_trigger( - root, - timeout=timeout, - stop_on_ego_route_complete=stop_on_ego_route_complete, - ) - ) - criteria_added = _ensure_criteria(root, driven_distance) - if criteria_added: - actions.append(f"Added {len(criteria_added)} ScenarioRunner criterion/criteria") - - resolution = report.map_resolution - logic_element = _path(root, "RoadNetwork", "LogicFile") - assert logic_element is not None - - timestamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") - base_name = _sanitize_name(name) if name.strip() else timestamp - if not base_name: - raise ScenarioCheckerError("Import name contains no usable characters") - destination_root = Path(output_root).resolve() - destination_root.mkdir(parents=True, exist_ok=True) - destination = _available_target(destination_root, base_name) - staging = Path(tempfile.mkdtemp(prefix=".scenario-import-", dir=destination_root)) - staging.chmod(0o2775) - - try: - scenario_output = staging / f"{destination.name}.xosc" - imported_resolution = resolution - if resolution.kind == "custom": - assert resolution.opendrive is not None and resolution.lanelet is not None - opendrive_name = _sanitize_name(resolution.opendrive.stem) + ".xodr" - lanelet_name = _sanitize_name(resolution.lanelet.stem) + ".osm" - opendrive_output = staging / opendrive_name - lanelet_output = staging / lanelet_name - shutil.copy2(resolution.opendrive, opendrive_output) - shutil.copy2(resolution.lanelet, lanelet_output) - logic_element.set("filepath", opendrive_name) - imported_resolution = MapResolution( - kind="custom", - logic_file=opendrive_name, - opendrive=destination / opendrive_name, - lanelet=destination / lanelet_name, - ) - actions.append(f"Set LogicFile to imported OpenDRIVE {opendrive_name}") - else: - logic_element.set("filepath", resolution.map_name) - imported_resolution = MapResolution( - kind="prebuilt", - logic_file=resolution.map_name, - map_name=resolution.map_name, - ) - - _write_xml(tree, scenario_output) - manifest = { - "imported_at": datetime.now(timezone.utc).isoformat(), - "source": str(scenario_path), - "scenario": f"{destination.name}.xosc", - "map": { - "type": imported_resolution.kind, - "map_name": imported_resolution.map_name, - "opendrive": imported_resolution.opendrive.name if imported_resolution.opendrive else "", - "lanelet": imported_resolution.lanelet.name if imported_resolution.lanelet else "", - }, - "actions": actions, - "teleport_z_adjusted": True, - } - (staging / "import.json").write_text( - json.dumps(manifest, indent=2, sort_keys=True) + "\n", - encoding="utf-8", - ) - staging.rename(destination) - except Exception: - shutil.rmtree(staging, ignore_errors=True) - raise - - return ImportResult( - directory=destination, - scenario_file=destination / f"{destination.name}.xosc", - map_resolution=imported_resolution, - actions=tuple(actions), - warnings=tuple(import_warnings), - repo_root=root_path, - ) - - -def _add_map_arguments(parser: argparse.ArgumentParser) -> None: - parser.add_argument("--opendrive", help="custom OpenDRIVE file overriding LogicFile") - parser.add_argument("--lanelet", help="matching Lanelet2 .osm file") - parser.add_argument("--ego", default="", help="actor to use when ego_vehicle is missing") - parser.add_argument("--repo-root", help="OpenADSim repository root") - parser.add_argument("--json", action="store_true", help="emit machine-readable JSON") - - -def _parse_args() -> argparse.Namespace: - parser = argparse.ArgumentParser( - description="Validate and import OpenSCENARIO bundles for OpenADSim/CARLA" - ) - subparsers = parser.add_subparsers(dest="command", required=True) - - validate = subparsers.add_parser("validate", help="validate without modifying files") - validate.add_argument("scenario") - _add_map_arguments(validate) - validate.add_argument("--expected-map", default="") - validate.add_argument("--expected-opendrive") - validate.add_argument("--expected-lanelet") - - validate_folder = subparsers.add_parser( - "validate-folder", - help="validate scenarios matching one active map", - ) - validate_folder.add_argument("folder") - validate_folder.add_argument("--repo-root") - validate_folder.add_argument("--expected-map", default="") - validate_folder.add_argument("--expected-opendrive") - validate_folder.add_argument("--lanelet") - validate_folder.add_argument("--json", action="store_true") - - validate_runtime_parser = subparsers.add_parser( - "validate-runtime", - help="validate the active scenario configuration from environment variables", - ) - validate_runtime_parser.add_argument("target") - validate_runtime_parser.add_argument("--json", action="store_true") - - importer = subparsers.add_parser("import", help="validate and create an import bundle") - importer.add_argument("scenario") - _add_map_arguments(importer) - importer.add_argument("--output-root", required=True) - importer.add_argument("--name", default="") - importer.add_argument("--timeout", type=float, default=60.0) - importer.add_argument("--no-ego-route-stop", action="store_true") - importer.add_argument("--driven-distance", type=float, default=30.0) - return parser.parse_args() - - -def _print_report(data: dict[str, object], as_json: bool) -> None: - if as_json: - print(json.dumps(data, indent=2, sort_keys=True)) - return - if data.get("valid"): - target = data.get("scenario_file") or data.get("scenario") or data.get("folder", "") - print(f"Valid: {target}") - if "checked" in data: - print(f" checked: {data['checked']}") - for action in data.get("actions", data.get("planned_changes", [])): - print(f" - {action}") - for warning in data.get("warnings", []): - print(f" warning: {warning}") - else: - for error in data.get("errors", []): - print(f"Error: {error}", file=sys.stderr) - - -def main() -> int: - args = _parse_args() - try: - if args.command == "validate": - report = validate_scenario( - args.scenario, - opendrive=args.opendrive, - lanelet=args.lanelet, - ego=args.ego, - repo_root=args.repo_root, - expected_map=args.expected_map, - expected_opendrive=args.expected_opendrive, - expected_lanelet=args.expected_lanelet, - ) - data = report.to_dict() - _print_report(data, args.json) - return 0 if report.is_valid else 1 - - if args.command == "validate-folder": - data = validate_scenario_folder( - args.folder, - repo_root=args.repo_root, - expected_map=args.expected_map, - expected_opendrive=args.expected_opendrive, - lanelet=args.lanelet, - ) - _print_report(data, args.json) - return 0 if data["valid"] else 1 - - if args.command == "validate-runtime": - data = validate_runtime(args.target) - _print_report(data, args.json) - return 0 if data["valid"] else 1 - - repo_root = Path(args.repo_root).resolve() if args.repo_root else None - result = import_scenario( - args.scenario, - output_root=args.output_root, - name=args.name, - opendrive=args.opendrive, - lanelet=args.lanelet, - ego=args.ego, - timeout=args.timeout, - stop_on_ego_route_complete=not args.no_ego_route_stop, - driven_distance=args.driven_distance, - repo_root=repo_root, - ) - data = result.to_dict() - _print_report(data, args.json) - return 0 - except ScenarioCheckerError as error: - data = {"valid": False, "errors": [str(error)], "warnings": []} - _print_report(data, args.json) - return 1 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl deleted file mode 100644 index 65c73b3..0000000 --- a/deployments/generated/carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl +++ /dev/null @@ -1,51 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: carla-scenario-runner-ros-manual-testing - image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.1 - args: - - /bin/bash - - -ic - - |- - set -e - python3 /scenario_checker.py validate-runtime /scenarios - SCENARIOS_DIR=/scenarios - if [ -n "${CUSTOM_OPENDRIVE}" ]; then - SCENARIOS_DIR="$(dirname "/${CUSTOM_OPENDRIVE#/}")" - fi - exec ros2 launch carla_ros_scenario_runner carla_ros_scenario_runner_with_selection.launch.py \ - use_sim_time:=${USE_SIM_TIME} \ - host:=${CARLA_HOST} \ - port:=${CARLA_PORT} \ - role_name:=${ROLE_NAME} \ - scenario_runner_path:=${SCENARIO_RUNNER_PATH} \ - wait_for_ego:=${WAIT_FOR_EGO} \ - scenarios_dir:=${SCENARIOS_DIR} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - CARLA_HOST: {{ (default "carla-server" (env "CARLA_HOST")) | quote }} - CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - MAP: {{ (default "" (env "MAP")) | quote }} - CUSTOM_OPENDRIVE: {{ (default "" (env "CUSTOM_OPENDRIVE")) | quote }} - CUSTOM_LANELET: {{ (default "" (env "CUSTOM_LANELET")) | quote }} - SCENARIO_MAP: {{ (default (default "" (env "MAP")) (env "CUSTOM_OPENDRIVE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /scenario_checker.py - data: | -{{ readFile "scenario_checker.py" | indent 6 }} - - mountPath: /scenarios - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "scenarios" | clean) | quote }} - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini b/deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini deleted file mode 100644 index a827287..0000000 --- a/deployments/generated/carla-simulation/carla_server/carla-server/DefaultEngine.ini +++ /dev/null @@ -1,165 +0,0 @@ -[/Script/Engine.Engine] -bSmoothFrameRate=false -SmoothedFrameRateRange=(LowerBound=(Type="ERangeBoundTypes::Inclusive",Value=22),UpperBound=(Type="ERangeBoundTypes::Exclusive",Value=120)) - -[/Script/HardwareTargeting.HardwareTargetingSettings] -TargetedHardwareClass=Desktop -AppliedTargetedHardwareClass=Desktop -DefaultGraphicsPerformance=Maximum -AppliedDefaultGraphicsPerformance=Maximum - -[/Script/EngineSettings.GameMapsSettings] -EditorStartupMap=/Game/Carla/Maps/campus/campus.campus -GameDefaultMap=/Game/Carla/Maps/campus/campus.campus -ServerDefaultMap=/Game/Carla/Maps/campus/campus.campus -GlobalDefaultGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C -GameInstanceClass=/Script/Carla.CarlaGameInstance -TransitionMap=/Game/Carla/Maps/campus/campus.campus -GlobalDefaultServerGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C - -[/Script/Engine.RendererSettings] -r.DefaultFeature.MotionBlur=False -r.VelocityOutputPass=True -r.AllowStaticLighting=True -r.DiscardUnusedQuality=True -r.DefaultFeature.Bloom=False -r.DefaultFeature.AmbientOcclusion=False -r.DefaultFeature.AmbientOcclusionStaticFraction=False -r.DefaultFeature.AutoExposure=False -r.CustomDepth=3 -r.Streaming.PoolSize=4000 -r.TextureStreaming=True -r.GenerateMeshDistanceFields=True -r.DistanceFieldBuild.EightBit=False -r.DistanceFieldBuild.Compress=False -r.DistanceFields.AtlasSizeXY=1024 -r.DistanceFields.AtlasSizeZ=2048 -r.DefaultFeature.AutoExposure.ExtendDefaultLuminanceRange=True -r.DefaultFeature.AntiAliasing=2 -r.VirtualTextures=True -r.GPUSkin.Support16BitBoneIndex=True -r.GPUSkin.UnlimitedBoneInfluences=True -r.SkinCache.CompileShaders=True -SkeletalMesh.UseExperimentalChunking=1 -r.Lumen.TraceMeshSDFs=1 -r.ReflectionMethod=1 -r.DynamicGlobalIlluminationMethod=1 -r.RayTracing=True -r.Lumen.HardwareRayTracing=True -r.Lumen.HardwareRayTracing.LightingMode=2 -r.Lumen.TranslucencyReflections.FrontLayer.EnableForProject=True -r.RayTracing.Shadows=True -r.RayTracing.UseTextureLod=True -r.PathTracing=False -r.Shadow.Virtual.Enable=1 -r.RayTracing.Shadows.AvoidSelfIntersectionTraceDistance=6 -r.ReflectionCaptureResolution=256 -r.SkinCache.SceneMemoryLimitInMB=1024 -r.CARLA.EnableSegmentationRendering=1 - -r.Lumen.ScreenProbeGather.ShortRangeAO.ScreenSpace.FoliageOcclusionStrength=0.0 -r.Lumen.ScreenProbeGather.ShortRangeAO.ScreenSpace.SlopeCompareToleranceScale=0.5 -r.Lumen.HardwareRayTracing.LightingMode=3 -r.Lumen.HardwareRayTracing.HitLighting.Skylight=1 -r.Lumen.TraceDistanceScale=1.0 - -r.Shadow.Virtual.TranslucentQuality=1 -# r.Lumen.ScreenProbeGather.DownsampleFactor=8 - -[/Script/AIModule.AISense_Sight] -bAutoRegisterAllPawnsAsSources=False -bAutoRegisterNewPawnsAsSources=False - -[/Script/NavigationSystem.RecastNavMesh] -RuntimeGeneration=Static - -[/Script/AIModule.CrowdManager] -MaxAgents=1000 - -[/Script/Engine.PhysicsSettings] -DefaultGravityZ=-980.000000 -DefaultTerminalVelocity=4000.000000 -DefaultFluidFriction=0.300000 -SimulateScratchMemorySize=262144 -RagdollAggregateThreshold=4 -TriangleMeshTriangleMinAreaThreshold=5.000000 -bEnableShapeSharing=False -bEnablePCM=False -bEnableStabilization=False -bWarnMissingLocks=True -bEnable2DPhysics=False -PhysicErrorCorrection=(PingExtrapolation=0.100000,PingLimit=100.000000,ErrorPerLinearDifference=1.000000,ErrorPerAngularDifference=1.000000,MaxRestoredStateError=1.000000,MaxLinearHardSnapDistance=400.000000,PositionLerp=0.000000,AngleLerp=0.400000,LinearVelocityCoefficient=100.000000,AngularVelocityCoefficient=10.000000,ErrorAccumulationSeconds=0.500000,ErrorAccumulationDistanceSq=15.000000,ErrorAccumulationSimilarity=100.000000) -LockedAxis=Invalid -DefaultDegreesOfFreedom=Full3D -BounceThresholdVelocity=200.000000 -FrictionCombineMode=Average -RestitutionCombineMode=Average -MaxAngularVelocity=3600.000000 -MaxDepenetrationVelocity=0.000000 -ContactOffsetMultiplier=0.010000 -MinContactOffset=0.000100 -MaxContactOffset=1.000000 -bSimulateSkeletalMeshOnDedicatedServer=True -DefaultShapeComplexity=CTF_UseSimpleAndComplex -bDefaultHasComplexCollision=True -bSuppressFaceRemapTable=False -bSupportUVFromHitResults=False -bDisableActiveActors=False -bDisableKinematicStaticPairs=False -bDisableKinematicKinematicPairs=False -bDisableCCD=False -bEnableEnhancedDeterminism=True -MaxPhysicsDeltaTime=0.333330 -bSubstepping=True -bSubsteppingAsync=False -MaxSubstepDeltaTime=0.010000 -MaxSubsteps=10 -SyncSceneSmoothingFactor=0.000000 -InitialAverageFrameRate=0.016667 -# PhysXTreeRebuildRate=10 -DefaultBroadphaseSettings=(bUseMBPOnClient=False,bUseMBPOnServer=False,MBPBounds=(Min=(X=0.000000,Y=0.000000,Z=0.000000),Max=(X=0.000000,Y=0.000000,Z=0.000000),IsValid=0),MBPNumSubdivs=2) - -[/Script/LinuxTargetPlatform.LinuxTargetSettings] -SpatializationPlugin= -SourceDataOverridePlugin= -ReverbPlugin= -OcclusionPlugin= -SoundCueCookQualityIndex=-1 --TargetedRHIs=SF_VULKAN_SM5 -+TargetedRHIs=SF_VULKAN_SM6 - -[/Script/WindowsTargetPlatform.WindowsTargetSettings] -DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 --D3D12TargetedShaderFormats=PCD3D_SM5 -+D3D12TargetedShaderFormats=PCD3D_SM6 --VulkanTargetedShaderFormats=SF_VULKAN_SM6 -Compiler=Default -AudioSampleRate=48000 -AudioCallbackBufferFrameSize=1024 -AudioNumBuffersToEnqueue=1 -AudioMaxChannels=0 -AudioNumSourceWorkers=4 -SpatializationPlugin= -SourceDataOverridePlugin= -ReverbPlugin= -OcclusionPlugin= -CompressionOverrides=(bOverrideCompressionTimes=False,DurationThreshold=5.000000,MaxNumRandomBranches=0,SoundCueQualityIndex=0) -CacheSizeKB=0 -MaxChunkSizeOverrideKB=0 -bResampleForDevice=False -MaxSampleRate=0.000000 -HighSampleRate=0.000000 -MedSampleRate=0.000000 -LowSampleRate=0.000000 -MinSampleRate=0.000000 -CompressionQualityModifier=0.000000 -AutoStreamingThreshold=0.000000 -SoundCueCookQualityIndex=-1 - -[/Script/Engine.CollisionProfile] -+Profiles=(Name="CustomSensorCollision",CollisionEnabled=QueryOnly,bCanModify=True,ObjectTypeName="SensorObject",CustomResponses=((Channel="WorldStatic",Response=ECR_Ignore),(Channel="WorldDynamic",Response=ECR_Ignore),(Channel="Pawn",Response=ECR_Ignore),(Channel="Visibility",Response=ECR_Ignore),(Channel="Camera",Response=ECR_Ignore),(Channel="PhysicsBody",Response=ECR_Ignore),(Channel="Vehicle",Response=ECR_Ignore),(Channel="Destructible",Response=ECR_Ignore),(Channel="SensorObject"),(Channel="SensorTrace")),HelpMessage="Used for custom collision meshes for objects that has very complex meshes but we want them to appear in raycast based sensors") -+DefaultChannelResponses=(Channel=ECC_GameTraceChannel1,DefaultResponse=ECR_Ignore,bTraceType=False,bStaticObject=False,Name="SensorObject") -+DefaultChannelResponses=(Channel=ECC_GameTraceChannel2,DefaultResponse=ECR_Ignore,bTraceType=True,bStaticObject=False,Name="SensorTrace") -+DefaultChannelResponses=(Channel=ECC_GameTraceChannel3,DefaultResponse=ECR_Overlap,bTraceType=True,bStaticObject=False,Name="OverlapChannel") -+EditProfiles=(Name="BlockAll",CustomResponses=((Channel="SensorObject"),(Channel="SensorTrace"))) -+EditProfiles=(Name="OverlapAll",CustomResponses=((Channel="SensorObject",Response=ECR_Overlap),(Channel="SensorTrace",Response=ECR_Overlap))) \ No newline at end of file diff --git a/deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl deleted file mode 100644 index 4ac6f4e..0000000 --- a/deployments/generated/carla-simulation/carla_server/carla-server/values.yaml.gotmpl +++ /dev/null @@ -1,38 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.1 - args: - - /bin/bash - - -ic - - |- - ./Linux/CarlaUnreal.sh \ - -nosound \ - -RenderOffScreen \ - --ros2 \ - -carla-rpc-port=${CARLA_PORT} - env: - CARLA_PORT: {{ (default "2000" (env "CARLA_PORT")) | quote }} - volumes: - - mountPath: /workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini - data: | -{{ readFile "DefaultEngine.ini" | indent 6 }} - dependsOn: - - host: zenoh-router - port: 7447 - ports: [] - expose: - - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - targetPort: {{ (default "2000" (env "CARLA_PORT")) | int }} - protocol: TCP - - port: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} - targetPort: {{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }} - protocol: TCP - - port: {{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }} - targetPort: {{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }} - protocol: TCP - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json deleted file mode 100644 index cb392b7..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/cameras.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "blueprints": [ - { - "id": "camera_rgb_1280x720_fov110_f2", - "type": "sensor.camera.rgb", - "image_size_x": 1280, - "image_size_y": 720, - "fov": 110.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_rgb_1280x720_fov110_f4", - "type": "sensor.camera.rgb", - "image_size_x": 1280, - "image_size_y": 720, - "fov": 110.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_rgb_2048x768_fov150", - "type": "sensor.camera.rgb", - "image_size_x": 2048, - "image_size_y": 768, - "fov": 150.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_rgb_1920x1080_fov90", - "type": "sensor.camera.rgb", - "image_size_x": 1920, - "image_size_y": 1080, - "fov": 90.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_rgb_400x300_fov90", - "type": "sensor.camera.rgb", - "image_size_x": 400, - "image_size_y": 300, - "fov": 90.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_depth_1280x720", - "type": "sensor.camera.depth", - "image_size_x": 1280, - "image_size_y": 720, - "fov": 90.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_semantic_1280x720", - "type": "sensor.camera.semantic_segmentation", - "image_size_x": 1280, - "image_size_y": 720, - "fov": 90.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_rgb_view", - "type": "sensor.camera.rgb", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0}, - "image_size_x": 1280, - "image_size_y": 720, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_traffic_light_2048x768_fov150", - "type": "sensor.camera.rgb", - "image_size_x": 2048, - "image_size_y": 768, - "fov": 150.0, - "post_process_profile": "Town10HD_Opt" - }, - { - "id": "camera_traffic_light_1280x720_fov110", - "type": "sensor.camera.rgb", - "image_size_x": 1280, - "image_size_y": 720, - "fov": 110.0, - "post_process_profile": "Town10HD_Opt" - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json deleted file mode 100644 index e01e45a..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/karl.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "blueprints": [ - { - "id": "karl_rack_lidars", - "type": "group", - "children": [ - { - "id": "lidar_front", - "type": "blueprint.lidar_aeries_ii", - "spawn_point": {"x": 2.8499, "y": 0.6455, "z": 0.0614, "roll": 0.0, "pitch": 0.0, "yaw": -3.4377} - }, - { - "id": "lidar_fl", - "type": "blueprint.lidar_ouster_os1_128", - "spawn_point": {"x": 2.89, "y": 1.444, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": 45.0} - }, - { - "id": "lidar_fr", - "type": "blueprint.lidar_ouster_os1_128", - "spawn_point": {"x": 2.89, "y": 0.04, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": -45.0} - }, - { - "id": "lidar_rr", - "type": "blueprint.lidar_ouster_os1_128", - "spawn_point": {"x": 0.04, "y": 0.04, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": -135.0} - }, - { - "id": "lidar_rl", - "type": "blueprint.lidar_ouster_os1_128", - "spawn_point": {"x": 0.04, "y": 1.444, "z": 0.1, "roll": 0.0, "pitch": 20.0, "yaw": 135.0} - } - ] - }, - { - "id": "karl_rack_cameras", - "type": "group", - "children": [ - { - "id": "camera_front_left", - "type": "blueprint.camera_rgb_1280x720_fov110_f4", - "spawn_point": {"x": 2.8146, "y": 1.4637, "z": -0.0013, "roll": -0.1166, "pitch": 5.9344, "yaw": 45.1565} - }, - { - "id": "camera_front_center", - "type": "blueprint.camera_rgb_1280x720_fov110_f4", - "spawn_point": {"x": 2.9592, "y": 0.7903, "z": 0.0061, "roll": 0.1078, "pitch": 5.5148, "yaw": 0.3433} - }, - { - "id": "camera_front_right", - "type": "blueprint.camera_rgb_1280x720_fov110_f4", - "spawn_point": {"x": 2.9388, "y": 0.0951, "z": 0.0067, "roll": 0.1934, "pitch": 5.3588, "yaw": -43.6624} - }, - { - "id": "camera_mid_right", - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "spawn_point": {"x": 1.685, "y": 0.0027, "z": 0.0021, "roll": 0.3284, "pitch": 20.9842, "yaw": -89.2525} - }, - { - "id": "camera_rear_right", - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "spawn_point": {"x": 0.1231, "y": 0.0352, "z": -0.012, "roll": -0.1653, "pitch": 20.5007, "yaw": -136.7474} - }, - { - "id": "camera_rear_center", - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "spawn_point": {"x": -0.0226, "y": 0.7404, "z": 0.105, "roll": -0.2975, "pitch": 0.3582, "yaw": -179.7672} - }, - { - "id": "camera_rear_left", - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "spawn_point": {"x": 0.0601, "y": 1.3474, "z": 0.0082, "roll": 0.1775, "pitch": 20.3891, "yaw": 135.3664} - }, - { - "id": "camera_mid_left", - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "spawn_point": {"x": 1.5602, "y": 1.4506, "z": -0.0322, "roll": 1.0142, "pitch": 19.9258, "yaw": 90.6135} - } - ] - }, - { - "id": "karl_rack_radars", - "type": "group", - "children": [ - { - "id": "radar_fl", - "type": "blueprint.radar_short_range", - "spawn_point": {"x": 2.0505, "y": 0.86, "z": 0.73, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} - }, - { - "id": "radar_f", - "type": "blueprint.radar_mid_range", - "spawn_point": {"x": 2.3105, "y": -0.3, "z": 0.25, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "id": "radar_fr", - "type": "blueprint.radar_short_range", - "spawn_point": {"x": 2.0505, "y": -0.86, "z": 0.73, "roll": 0.0, "pitch": 0.0, "yaw": -90.0} - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json deleted file mode 100644 index 608191f..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/lidars.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "blueprints": [ - { - "id": "lidar_ouster_os1_128", - "type": "sensor.lidar.ray_cast", - "range": 75, - "channels": 128, - "points_per_second": 2621440, - "upper_fov": 22.5, - "lower_fov": -22.5, - "rotation_frequency": 20, - "sensor_tick": 0.1 - }, - { - "id": "lidar_ouster_os1_64", - "type": "sensor.lidar.ray_cast", - "range": 75, - "channels": 64, - "points_per_second": 1310720, - "upper_fov": 22.5, - "lower_fov": -22.5, - "rotation_frequency": 20, - "sensor_tick": 0.1 - }, - { - "id": "lidar_ouster_os1_32", - "type": "sensor.lidar.ray_cast", - "range": 50, - "channels": 32, - "points_per_second": 327680, - "upper_fov": 15.0, - "lower_fov": -25.0, - "rotation_frequency": 20, - "noise_stddev": 0.0 - }, - { - "id": "lidar_aeries_ii", - "type": "sensor.lidar.ray_cast", - "range": 500, - "channels": 300, - "points_per_second": 2048000, - "upper_fov": 15.0, - "lower_fov": -15.0, - "horizontal_fov": 120.0, - "rotation_frequency": 20, - "sensor_tick": 0.1 - }, - { - "id": "lidar_velodyne_vlp16", - "type": "sensor.lidar.ray_cast", - "range": 100, - "channels": 16, - "points_per_second": 600000, - "upper_fov": 15.0, - "lower_fov": -15.0, - "rotation_frequency": 20, - "sensor_tick": 0.1 - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json deleted file mode 100644 index 9e8e0d1..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/props.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "blueprints": [ - { - "id": "beacon", - "type": "group", - "physical_object": "static.prop.beacon", - "children": [] - }, - { - "id": "beaconwithlight", - "type": "group", - "physical_object": "static.prop.beaconwithlight", - "children": [] - }, - { - "id": "roadworkbarrier", - "type": "group", - "physical_object": "static.prop.roadworkbarrier", - "children": [] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json deleted file mode 100644 index 79b591c..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/radars.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "blueprints": [ - { - "id": "radar_long_range", - "type": "sensor.other.radar", - "horizontal_fov": 30.0, - "vertical_fov": 10.0, - "range": 200.0 - }, - { - "id": "radar_mid_range", - "type": "sensor.other.radar", - "horizontal_fov": 110.0, - "vertical_fov": 23.0 - }, - { - "id": "radar_short_range", - "type": "sensor.other.radar", - "horizontal_fov": 130.0, - "vertical_fov": 14.0 - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json deleted file mode 100644 index 307f519..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/risus.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "blueprints": [ - { - "id": "srisu", - "type": "group", - "physical_object": "static.prop.srisu", - "children": [ - { - "id": "sensor_platform", - "type": "blueprint.srisu_sensor_platform", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.ideal_objects", - "id": "v2x_objectlist", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, - "range": 50, - "hit_point_blanking_radius": 2.0 - } - ] - }, - { - "id": "srisu_no_sensor_platform", - "type": "group", - "physical_object": "static.prop.srisu", - "children": [ - { - "type": "sensor.pseudo.ideal_objects", - "id": "v2x_objectlist", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 6.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, - "range": 50, - "hit_point_blanking_radius": 2.0 - } - ] - }, - { - "id": "srisu_sensor_platform", - "type": "group", - "children": [ - { - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "id": "camera_left", - "spawn_point": {"x": 0.3, "y": 0.0, "z": -0.7, "roll": 0.0, "pitch": 25.0, "yaw": 35.0} - }, - { - "type": "blueprint.camera_rgb_1280x720_fov110_f2", - "id": "camera_right", - "spawn_point": {"x": 0.3, "y": 0.0, "z": -0.7, "roll": 0.0, "pitch": 25.0, "yaw": -35.0} - }, - { - "type": "blueprint.lidar_ouster_os1_128", - "id": "lidar_top", - "spawn_point": {"x": 0.41, "y": 0.04, "z": 0.17, "roll": 0.0, "pitch": 27.54, "yaw": 0.0}, - "range": 120.0 - }, - { - "type": "blueprint.lidar_ouster_os1_128", - "id": "lidar_bottom", - "spawn_point": {"x": 0.14, "y": 0.01, "z": -0.14, "roll": 0.0, "pitch": 41.36, "yaw": 0.0}, - "range": 120.0 - } - ] - }, - { - "id": "mrisu", - "type": "group", - "physical_object": "static.prop.mrisu", - "children": - [ - { - "id": "sensor_platform", - "type": "blueprint.mrisu_sensor_platform", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.69, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.ideal_objects", - "id": "v2x_objectlist", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0}, - "range": 50, - "hit_point_blanking_radius": 1.0 - } - ] - }, - { - "id": "mrisu_sensor_platform", - "type": "group", - "children": - [ - { - "type": "blueprint.camera_rgb_1280x720_fov110_f4", - "id": "camera_left", - "spawn_point": {"x": 0.075, "y": 0.098, "z": 0.071, "roll": 0.0, "pitch": 0.0, "yaw": 35.0} - }, - { - "type": "blueprint.camera_rgb_1280x720_fov110_f4", - "id": "camera_right", - "spawn_point": {"x": 0.075, "y": -0.0915, "z": 0.071, "roll": 0.0, "pitch": 0.0, "yaw": -35.0} - }, - { - "type": "blueprint.lidar_ouster_os1_128", - "id": "lidar", - "spawn_point": {"x": 0.001, "y": 0.0, "z": 0.161, "roll": 0.0, "pitch": 0.0, "yaw": 180.0} - } - ] - } - ] -} \ No newline at end of file diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json b/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json deleted file mode 100644 index 9d2030c..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/blueprints/shuttle.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "blueprints": [ - { - "id": "shuttle_lidars", - "type": "group", - "children": [ - { - "id": "lidar_front_left", - "type": "blueprint.lidar_ouster_os1_32", - "spawn_point": {"x": 2.235, "y": 0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": 28.499} - }, - { - "id": "lidar_front_right", - "type": "blueprint.lidar_ouster_os1_32", - "spawn_point": {"x": 2.235, "y": -0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": -28.499} - }, - { - "id": "lidar_rear_left", - "type": "blueprint.lidar_ouster_os1_32", - "spawn_point": {"x": -2.235, "y": 0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": 151.501} - }, - { - "id": "lidar_rear_right", - "type": "blueprint.lidar_ouster_os1_32", - "spawn_point": {"x": -2.235, "y": -0.980, "z": 1.739, "roll": 0.0, "pitch": 0.0, "yaw": -151.501} - } - ] - }, - { - "id": "shuttle_cameras", - "type": "group", - "children": [ - { - "id": "camera_front_left_1", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": 2.333, "y": 0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": -15.000} - }, - { - "id": "camera_front_right_1", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": 2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 15.000} - }, - { - "id": "camera_rear_left_1", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": -2.333, "y": 0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": -165.000} - }, - { - "id": "camera_rear_right_1", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": -2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 165.000} - }, - { - "id": "camera_front_left_2", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": 2.260, "y": 0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": 105.000} - }, - { - "id": "camera_front_right_2", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": 2.260, "y": -0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": -105.000} - }, - { - "id": "camera_rear_left_2", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": -2.260, "y": 0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": 75.000} - }, - { - "id": "camera_rear_right_2", - "type": "blueprint.camera_rgb_2048x768_fov150", - "spawn_point": {"x": -2.260, "y": -0.978, "z": 0.855, "roll": 0.0, "pitch": 0.0, "yaw": -75.000} - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json deleted file mode 100644 index 6c96de7..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/global-sensors.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "objects": [ - { - "type": "sensor.pseudo.actor_list", - "id": "actor_list" - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.pseudo.markers", - "id": "markers" - }, - { - "type": "sensor.pseudo.opendrive_map", - "id": "carla_map" - }, - { - "type": "sensor.pseudo.traffic_lights", - "id": "traffic_lights" - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json deleted file mode 100644 index 40eef55..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-all.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.karl", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.karl_rack_lidars", - "id": "karl_rack_lidars", - "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.karl_rack_cameras", - "id": "karl_rack_cameras", - "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.karl_rack_radars", - "id": "karl_rack_radars", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu" - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json deleted file mode 100644 index 32e0e3c..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-basic.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.karl", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.karl_rack_lidars", - "id": "karl_rack_lidars", - "spawn_point": {"x": -2.1255, "y": -0.695, "z": 1.91, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_traffic_light_1280x720_fov110", - "id": "karl_rack_cameras/camera_front_center", - "spawn_point": {"x": 0.8337, "y": 0.0953, "z": 1.9161, "roll": 0.1078, "pitch": 5.5148, "yaw": 0.3433} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu" - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json deleted file mode 100644 index d70c632..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/karl-minimal.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.karl", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu", - "ignore_tilt": true - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json deleted file mode 100644 index 5cf6183..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/props.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "objects": [ - { - "type": "blueprint.beacon", - "id": "beacon1", - "spawn_point": {"x": -33.0, "y": 173.0, "z": 254.8, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} - }, - { - "type": "blueprint.beaconwithlight", - "id": "beaconwithlight1", - "spawn_point": {"x": -33.0, "y": 168.5, "z": 254.8, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} - }, - { - "type": "blueprint.roadworkbarrier", - "id": "roadworkbarrier1", - "spawn_point": {"x": -33.0, "y": 170.8, "z": 255.5, "roll": 0.0, "pitch": 0.0, "yaw": 90.0} - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json deleted file mode 100644 index 73a97da..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-all.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "objects": [ - { - "type": "blueprint.srisu", - "id": "srisu1", - "spawn_point": { - "lat": 50.779692, - "lon": 6.050775, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": -109.93 - } - }, - { - "type": "blueprint.srisu", - "id": "srisu2", - "spawn_point": { - "lat": 50.779457, - "lon": 6.050782, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": 117.76 - } - }, - { - "type": "blueprint.srisu", - "id": "srisu3", - "spawn_point": { - "lat": 50.779446, - "lon": 6.050505, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": 42.48 - } - }, - { - "type": "blueprint.srisu", - "id": "srisu4", - "spawn_point": { - "lat": 50.779656, - "lon": 6.050454, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": -32.30 - } - } - ] -} \ No newline at end of file diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json deleted file mode 100644 index dbbbcea..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/rita-minimal.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "objects": [ - { - "type": "blueprint.srisu_no_sensor_platform", - "id": "srisu1", - "spawn_point": { - "lat": 50.779692, - "lon": 6.050775, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": -109.93 - } - }, - { - "type": "blueprint.srisu", - "id": "srisu2", - "spawn_point": { - "lat": 50.779457, - "lon": 6.050782, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": 117.76 - } - }, - { - "type": "blueprint.srisu_no_sensor_platform", - "id": "srisu3", - "spawn_point": { - "lat": 50.779446, - "lon": 6.050505, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": 42.48 - } - }, - { - "type": "blueprint.srisu_no_sensor_platform", - "id": "srisu4", - "spawn_point": { - "lat": 50.779656, - "lon": 6.050454, - "alt_above_ground": 0.0, - "roll": 0.0, - "pitch": 0.0, - "yaw": -32.30 - } - } - ] -} \ No newline at end of file diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json deleted file mode 100644 index fcb9805..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-all.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.shuttle", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.shuttle_lidars", - "id": "shuttle_lidars", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.shuttle_cameras", - "id": "shuttle_cameras", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu", - "ignore_tilt": true - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json deleted file mode 100644 index 9c26246..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-basic.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.shuttle", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.shuttle_lidars", - "id": "shuttle_lidars", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "blueprint.camera_traffic_light_2048x768_fov150", - "id": "shuttle_cameras/camera_front_right_1", - "spawn_point": {"x": 2.333, "y": -0.905, "z": 0.910, "roll": 0.0, "pitch": 0.0, "yaw": 15.000} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu", - "ignore_tilt": true - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json b/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json deleted file mode 100644 index 5f60771..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/objects/shuttle-minimal.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "objects": [ - { - "type": "vehicle.ika.shuttle", - "id": "ego_vehicle", - "sensors": [ - { - "type": "blueprint.camera_rgb_view", - "id": "rgb_view", - "spawn_point": {"x": -5.0, "y": 0.0, "z": 3.5, "roll": 0.0, "pitch": 20.0, "yaw": 0.0} - }, - { - "type": "sensor.other.tf", - "id": "tf", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.pseudo.objects", - "id": "objects" - }, - { - "type": "sensor.other.odometry", - "id": "odometry", - "ignore_tilt": true, - "ignore_altitude": true - }, - { - "type": "sensor.other.imu", - "id": "imu", - "ignore_tilt": true - }, - { - "type": "sensor.other.gnss", - "id": "gnss", - "spawn_point": {"x": 0.0, "y": 0.0, "z": 1.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0} - }, - { - "type": "sensor.pseudo.speedometer", - "id": "speedometer" - }, - { - "type": "actor.pseudo.control", - "id": "control" - } - ] - } - ] -} diff --git a/deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl b/deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl deleted file mode 100644 index 6d50b31..0000000 --- a/deployments/generated/carla-simulation/carla_spawn_objects/values.yaml.gotmpl +++ /dev/null @@ -1,28 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/carla-ros-bridge:v0.10.0-1.1.1 - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - OBJECTS_DEFINITION_FILE: {{ (default "objects.json" (env "SENSORS")) | quote }} - OBJECTS_DIRECTORY: /config/objects - BLUEPRINTS_DIRECTORY: /config/blueprints - SPAWN_POINT_EGO_VEHICLE: {{ (default "None" (env "SPAWN_POINT")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /config/objects - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/generated/carla-simulation/carla_spawn_objects/objects" | clean) | quote }} - - mountPath: /config/blueprints - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "deployments/generated/carla-simulation/carla_spawn_objects/blueprints" | clean) | quote }} - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/carla-simulation/ros_middleware_bridge/params.yml b/deployments/generated/carla-simulation/ros_middleware_bridge/params.yml deleted file mode 100644 index 63adbaf..0000000 --- a/deployments/generated/carla-simulation/ros_middleware_bridge/params.yml +++ /dev/null @@ -1,49 +0,0 @@ -/**: - ros__parameters: - num_threads: 8 - remote_host: 127.0.0.1 - shm_namespace: middleware_bridge - socket_buffer_bytes: 1048576 - max_udp_payload_bytes: 60000 - max_shm_message_bytes: 50331648 # 48 MiB as default in 'rmw_zenoh' - shm_poll_interval_us: 1000 - reassembly_timeout_ms: 1000 - auto_discovery_wait_ms: 1000 - auto_discovery_poll_ms: 1000 - side_a2b.topics: - - __auto__ - side_a2b.topic_types: - - rosgraph_msgs/msg/Clock - - tf2_msgs/msg/TFMessage - - sensor_msgs/msg/Imu - - sensor_msgs/msg/NavSatFix - - sensor_msgs/msg/Image - - sensor_msgs/msg/CameraInfo - - sensor_msgs/msg/PointCloud2 - - nav_msgs/msg/Odometry - side_a2b.transports: - - udp - - udp - - udp - - udp - - shm - - udp - - shm - - udp - side_a2b.qos_depths: - - 5 - - 5 - - 5 - - 5 - - 1 - - 5 - - 1 - - 5 - side_b2a.topics: - - /carla/ego_vehicle/vehicle_control_cmd - side_b2a.topic_types: - - carla_msgs/msg/CarlaEgoVehicleControl - side_b2a.transports: - - udp - side_b2a.qos_depths: - - 1 diff --git a/deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl b/deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl deleted file mode 100644 index 40b8afe..0000000 --- a/deployments/generated/carla-simulation/ros_middleware_bridge/values.yaml.gotmpl +++ /dev/null @@ -1,21 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /docker-ros/ws/install/ros_middleware_bridge/share/ros_middleware_bridge/config/params.yml - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/carla-simulation/simulation_adapter/params.yml b/deployments/generated/carla-simulation/simulation_adapter/params.yml deleted file mode 100644 index 438e26c..0000000 --- a/deployments/generated/carla-simulation/simulation_adapter/params.yml +++ /dev/null @@ -1,27 +0,0 @@ -/**: - ros__parameters: - num_threads: 8 # Number of threads - map_server_name: /localization/lanelet2_map_server # Name of map server - - simulation_fixed_frame_id: carla_map # Name of the fixed frame id in CARLA - fixed_frame_id: map # Name of the fixed frame id over time - simulation_vehicle_frame_id: ego_vehicle # Name of the vehicle frame id in CARLA - vehicle_frame_id: base_link # Name of the vehicle frame id. - simulation_vehicle_frame_id_to_vehicle_frame_id: -1.4895 # Longitudinal offset from simulation_vehicle_frame_id to vehicle_frame_id - - publish_vehicle_frame_tf: true - publish_ego_imu: true - publish_ego_odometry: true - publish_ego_vehicle_state: true - - maps: - simulation_maps: - - aldenhoven - - campus - - Town10HD_Opt - - OpenDriveMap - lanelet_files: - - /data/maps/aldenhoven.osm - - /data/maps/aachen_campus.osm - - /data/maps/Town10.osm - - /lanelet/lanelet.osm diff --git a/deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl b/deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl deleted file mode 100644 index beecfe7..0000000 --- a/deployments/generated/carla-simulation/simulation_adapter/values.yaml.gotmpl +++ /dev/null @@ -1,34 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: carla-simulation-adapter - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /carla - INPUT_MAP_INFO_TOPIC: /carla/carla_converter/map_info - INPUT_EGO_DATA_TOPIC: /carla/carla_converter/ego_vehicle/ego_data - INPUT_OBJECT_LIST_TOPIC: /carla/carla_converter/ego_vehicle/object_list - INPUT_TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory - OUTPUT_EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - OUTPUT_OBJECT_LIST_TOPIC: /simulation/object_list - OUTPUT_OBJECT_LIST_FIXED_TOPIC: /simulation/object_list_fixed - OUTPUT_EGO_IMU_TOPIC: /simulation/imu - OUTPUT_EGO_ODOMETRY_TOPIC: /simulation/odometry - OUTPUT_EGO_VEHICLE_STATE_TOPIC: /simulation/vehicle_state - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "true" (env "USE_SIM_TIME")) | quote }} - LOAD_LANELET_MAP: {{ (default "true" (env "LANELET_RELOAD")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /docker-ros/ws/install/simulation_adapter/share/simulation_adapter/config/params.yml - dependsOn: - - host: carla-server - port: {{ (default "2000" (env "CARLA_PORT")) | int }} - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/environments/services.yaml.gotmpl b/deployments/generated/environments/services.yaml.gotmpl deleted file mode 100644 index 83e6554..0000000 --- a/deployments/generated/environments/services.yaml.gotmpl +++ /dev/null @@ -1,58 +0,0 @@ -# select releases from Compose profiles. -{{- $selectedProfiles := splitList "," (env "COMPOSE_PROFILES" | default "") }} - -serviceEnabled: - carla-ackermann-control: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-client: - enabled: {{ or (has "traffic" $selectedProfiles) }} - carla-control-active-bridge: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-converter: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-manual-control: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-ros-bridge: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-scenario-runner-ros-automated-testing: - enabled: {{ or (has "automated-testing" $selectedProfiles) }} - carla-scenario-runner-ros-manual-testing: - enabled: {{ or (has "manual-testing" $selectedProfiles) }} - carla-server: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-spawn-objects: - enabled: {{ or (has "carla" $selectedProfiles) }} - ros-middleware-bridge: - enabled: {{ or (has "carla" $selectedProfiles) }} - carla-simulation-adapter: - enabled: {{ or (has "carla" $selectedProfiles) }} - ackermann-trajectory-control: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} - robot-state-publisher: - enabled: {{ true }} - triton-server: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "perception" $selectedProfiles) }} - zenoh-router: - enabled: {{ true }} - lanelet2-map-server: - enabled: {{ true }} - bag-recorder: - enabled: {{ or (has "bag-recording" $selectedProfiles) }} - rviz-carla: - enabled: {{ or (has "carla" $selectedProfiles) }} - point-cloud-fusion: - enabled: {{ or (has "perception" $selectedProfiles) }} - point-cloud-object-detection: - enabled: {{ or (has "perception" $selectedProfiles) }} - lanelet2-route-planning: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} - simple-planner: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} - trajectory-optimization: - enabled: {{ or (has "ml-planning" $selectedProfiles) (has "planning" $selectedProfiles) }} - autoware-multi-object-tracker: - enabled: {{ or (has "perception" $selectedProfiles) }} - lanelet2-object-list-prediction-no-perception: - enabled: {{ or (has "no-perception" $selectedProfiles) }} - lanelet2-object-list-prediction-perception: - enabled: {{ or (has "perception" $selectedProfiles) }} diff --git a/deployments/generated/helmfile.yaml b/deployments/generated/helmfile.yaml deleted file mode 100644 index bedfe4a..0000000 --- a/deployments/generated/helmfile.yaml +++ /dev/null @@ -1,141 +0,0 @@ -environments: - default: - values: - - environments/services.yaml.gotmpl ---- -releases: -- name: '{{ printf "%s-carla-ackermann-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control - version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment - condition: serviceEnabled.carla-ackermann-control.enabled - values: [carla-simulation/carla_ackermann_control/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-client" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client - version: 0.1.0-helm - condition: serviceEnabled.carla-client.enabled - values: [carla-simulation/carla_client/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-control-active-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4 - condition: serviceEnabled.carla-control-active-bridge.enabled - values: [carla-simulation/carla_control_active_bridge/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-converter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter - version: 1.3.2-main - condition: serviceEnabled.carla-converter.enabled - values: [carla-simulation/carla_converter/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-manual-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control - version: 0.10.0-1.1.0-carla-manual-control-update-deployment - condition: serviceEnabled.carla-manual-control.enabled - values: [carla-simulation/carla_manual_control/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-ros-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge - version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment - condition: serviceEnabled.carla-ros-bridge.enabled - values: [carla-simulation/carla_ros_bridge/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-scenario-runner-ros-automated-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.0-helm - condition: serviceEnabled.carla-scenario-runner-ros-automated-testing.enabled - values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-automated-testing/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-scenario-runner-ros-manual-testing" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.0-helm - condition: serviceEnabled.carla-scenario-runner-ros-manual-testing.enabled - values: [carla-simulation/carla_scenario_runner/carla-scenario-runner-ros-manual-testing/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator - version: 0.1.0-helm - condition: serviceEnabled.carla-server.enabled - values: [carla-simulation/carla_server/carla-server/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-spawn-objects" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects - version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment - condition: serviceEnabled.carla-spawn-objects.enabled - values: [carla-simulation/carla_spawn_objects/values.yaml.gotmpl] -- name: '{{ printf "%s-ros-middleware-bridge" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge - version: 1.2.1-main - condition: serviceEnabled.ros-middleware-bridge.enabled - values: [carla-simulation/ros_middleware_bridge/values.yaml.gotmpl] -- name: '{{ printf "%s-carla-simulation-adapter" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter - version: 1.4.2-main - condition: serviceEnabled.carla-simulation-adapter.enabled - values: [carla-simulation/simulation_adapter/values.yaml.gotmpl] -- name: '{{ printf "%s-ackermann-trajectory-control" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/ackermann_trajectory_control/helm/ackermann-trajectory-control - version: 1.5.0-main - condition: serviceEnabled.ackermann-trajectory-control.enabled - values: [openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl] -- name: '{{ printf "%s-robot-state-publisher" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4-main - condition: serviceEnabled.robot-state-publisher.enabled - values: [openadstack/essentials/robot-state-publisher/values.yaml.gotmpl] -- name: '{{ printf "%s-triton-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/openads-helm/triton-server - version: '26.05' - condition: serviceEnabled.triton-server.enabled - values: [openadstack/essentials/triton-server/values.yaml.gotmpl] -- name: '{{ printf "%s-zenoh-router" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router - version: 0.2.10 - condition: serviceEnabled.zenoh-router.enabled - values: [openadstack/essentials/zenoh-router/values.yaml.gotmpl] -- name: '{{ printf "%s-lanelet2-map-server" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server - version: 1.2.2-main - condition: serviceEnabled.lanelet2-map-server.enabled - values: [openadstack/localization/lanelet2_map_server/values.yaml.gotmpl] -- name: '{{ printf "%s-bag-recorder" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 1.0.0-main - condition: serviceEnabled.bag-recorder.enabled - values: [openadstack/monitoring/bag-recorder/values.yaml.gotmpl] -- name: '{{ printf "%s-rviz-carla" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 1.0.0-main - condition: serviceEnabled.rviz-carla.enabled - values: [openadstack/monitoring/rviz-carla/values.yaml.gotmpl] -- name: '{{ printf "%s-point-cloud-fusion" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion - version: 1.4.0-main - condition: serviceEnabled.point-cloud-fusion.enabled - values: [openadstack/perception/point_cloud_fusion/values.yaml.gotmpl] -- name: '{{ printf "%s-point-cloud-object-detection" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection - version: 3.0.0-main - condition: serviceEnabled.point-cloud-object-detection.enabled - values: [openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl] -- name: '{{ printf "%s-lanelet2-route-planning" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning - version: 1.2.0-main - condition: serviceEnabled.lanelet2-route-planning.enabled - values: [openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl] -- name: '{{ printf "%s-simple-planner" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner - version: 1.4.0-main - condition: serviceEnabled.simple-planner.enabled - values: [openadstack/planning/simple_planner/values.yaml.gotmpl] -- name: '{{ printf "%s-trajectory-optimization" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization - version: 1.4.0-main - condition: serviceEnabled.trajectory-optimization.enabled - values: [openadstack/planning/trajectory_optimization/values.yaml.gotmpl] -- name: '{{ printf "%s-autoware-multi-object-tracker" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/thinking-cars/autoware_multi_object_tracker/helm/autoware-multi-object-tracker - version: 1.1.0-main - condition: serviceEnabled.autoware-multi-object-tracker.enabled - values: [openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl] -- name: '{{ printf "%s-lanelet2-object-list-prediction-no-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction - version: 1.0.2-main - condition: serviceEnabled.lanelet2-object-list-prediction-no-perception.enabled - values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl] -- name: '{{ printf "%s-lanelet2-object-list-prediction-perception" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction - version: 1.0.2-main - condition: serviceEnabled.lanelet2-object-list-prediction-perception.enabled - values: [openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl] diff --git a/deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv b/deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv deleted file mode 100644 index 51c6464..0000000 --- a/deployments/generated/openadstack/control/ackermann_trajectory_control/karl-lateral-limits-v1p3.csv +++ /dev/null @@ -1,132 +0,0 @@ -v,kappa,kappa_dot -0,0.193400,0.15 -1,0.193400,0.15 -2,0.193400,0.329200 -3,0.193400,0.329200 -4,0.193400,0.329200 -5,0.193400,0.329200 -6,0.193400,0.329200 -7,0.193400,0.329200 -8,0.193400,0.329200 -9,0.193400,0.329200 -10,0.193400,0.329200 -11,0.193400,0.329200 -12,0.193400,0.329200 -13,0.193400,0.329200 -14,0.193400,0.329200 -15,0.172800,0.288000 -16,0.151875,0.253125 -17,0.134533,0.224221 -18,0.120000,0.200000 -19,0.107701,0.179501 -20,0.097200,0.162000 -21,0.088163,0.146939 -22,0.080331,0.133884 -23,0.073497,0.122495 -24,0.067500,0.112500 -25,0.062208,0.103680 -26,0.057515,0.095858 -27,0.053333,0.088889 -28,0.049592,0.082653 -29,0.046231,0.077051 -30,0.043200,0.072000 -31,0.040458,0.067430 -32,0.037969,0.063281 -33,0.035702,0.059504 -34,0.033633,0.056055 -35,0.031739,0.052898 -36,0.030000,0.050000 -37,0.028400,0.047334 -38,0.026925,0.044875 -39,0.025562,0.042604 -40,0.024300,0.040500 -41,0.023129,0.038548 -42,0.022041,0.036735 -43,0.021028,0.035046 -44,0.020083,0.033471 -45,0.019200,0.032000 -46,0.018374,0.030624 -47,0.017601,0.029335 -48,0.016875,0.028125 -49,0.016193,0.026989 -50,0.015552,0.025920 -51,0.014948,0.024913 -52,0.014379,0.023964 -53,0.013841,0.023069 -54,0.013333,0.022222 -55,0.012853,0.021421 -56,0.012398,0.020663 -57,0.011967,0.019945 -58,0.011558,0.019263 -59,0.011169,0.018615 -60,0.010800,0.018000 -61,0.010449,0.017415 -62,0.010114,0.016857 -63,0.009796,0.016327 -64,0.009492,0.015820 -65,0.009202,0.015337 -66,0.008926,0.014876 -67,0.008661,0.014435 -68,0.008408,0.014014 -69,0.008166,0.013611 -70,0.007935,0.013224 -71,0.007713,0.012855 -72,0.007500,0.012500 -73,0.007296,0.012160 -74,0.007100,0.011833 -75,0.006912,0.011520 -76,0.006731,0.011219 -77,0.006558,0.010929 -78,0.006391,0.010651 -79,0.006230,0.010383 -80,0.006075,0.010125 -81,0.005926,0.009877 -82,0.005782,0.009637 -83,0.005644,0.009406 -84,0.005510,0.009184 -85,0.005381,0.008969 -86,0.005257,0.008761 -87,0.005137,0.008561 -88,0.005021,0.008368 -89,0.004908,0.008181 -90,0.004800,0.008000 -91,0.004695,0.007825 -92,0.004594,0.007656 -93,0.004495,0.007492 -94,0.004400,0.007334 -95,0.004308,0.007180 -96,0.004219,0.007031 -97,0.004132,0.006887 -98,0.004048,0.006747 -99,0.003967,0.006612 -100,0.003888,0.006480 -101,0.003811,0.006352 -102,0.003737,0.006228 -103,0.003665,0.006108 -104,0.003595,0.005991 -105,0.003527,0.005878 -106,0.003460,0.005767 -107,0.003396,0.005660 -108,0.003333,0.005556 -109,0.003272,0.005454 -110,0.003213,0.005355 -111,0.003156,0.005259 -112,0.003099,0.005166 -113,0.003045,0.005075 -114,0.002992,0.004986 -115,0.002940,0.004900 -116,0.002889,0.004816 -117,0.002840,0.004734 -118,0.002792,0.004654 -119,0.002746,0.004576 -120,0.002700,0.004500 -121,0.002656,0.004426 -122,0.002612,0.004354 -123,0.002570,0.004283 -124,0.002529,0.004214 -125,0.002488,0.004147 -126,0.002449,0.004082 -127,0.002411,0.004018 -128,0.002373,0.003955 -129,0.002336,0.003894 -130,0.002301,0.003834 diff --git a/deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml b/deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml deleted file mode 100644 index b133073..0000000 --- a/deployments/generated/openadstack/control/ackermann_trajectory_control/params.yml +++ /dev/null @@ -1,186 +0,0 @@ -/**/*: - ros__parameters: - # General controller parameters - vehicle_frame_id: "base_link" - fixed_over_time_frame_id: "map" - control_frequency: 50.0 # [Hz] - vehicle_state_timeout: 0.2 # [s] - lateral_lookahead_time: 0.2 # [s] - longitudinal_lookahead_time: 0.1 # [s] - - # Inverse single track parameters - wheelbase: 3.124 # [m] - # l_v: 1.58744 # [m] front offset to center of gravity - # l_h: 1.53656 # [m] rear offset to center of gravity - # m: 2395.0 # [kg] vehicle mass - # c_sv: 130000 # [N/rad] Cornering stiffness front - # c_sh: 190000 # [N/rad] Cornering stiffness rear - # EG = m / wheelbase * (l_h * c_sh - l_v * c_sv) / (c_sv * c_sh) # self-steering gradient - selfsteergradient: 0.002656230515 # [s^2/m] - - # Other controller parameters - standstill_request_acceleration_gain: -0.5 - - # Control value constraints - max_longitudinal_acceleration: 2.0 # [m/s^2] - min_longitudinal_acceleration: -4.5 # [m/s^2] - max_longitudinal_jerk: 4.0 # [m/s^3] - use_speed_dependent_lateral_limits: true - lateral_limits_csv: "config/karl-lateral-limits-v1p3.csv" - max_curvature: 0.1933268013 # [1/m]; if use_speed_dependent_lateral_limits is false - # max_curvature_rate = 1 / (L * cos²(d)) * d_dot; with d = 0° and d_dot = 30°/s - max_curvature_rate: 0.1676052419 # [1/(m*s)]; if use_speed_dependent_lateral_limits is false - # max_curvature_acceleration = 1 / (L * cos²(d)) * (d_dot_dot + 2*tan(d)*d_dot²); with d = 0° and d_dot_dot = 130°/s² - max_curvature_acceleration: 0.7262893814 # [1/(m*s^2)] - anti_windup_gain: 1.0 # [1/s] - use_back_calculation: false - use_odom: false - - # Gain scheduling lookup tables - velocity_lookup: # [m/s] - - -2.78 - - -0.2 - - 0.0 - - 0.2 - - 2.78 - - 11.11 - - 16.67 - - 22.22 - - 27.78 - - 33.33 - - 38.89 - feed_forward_acceleration_gain: - - 0.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 1.0 # value for 0.0 m/s - - 1.0 # value for 0.2 m/s - - 1.0 # value for 2.78 m/s - - 1.0 # value for 11.11 m/s - - 1.0 # value for 16.67 m/s - - 1.0 # value for 22.22 m/s - - 1.0 # value for 27.78 m/s - - 1.0 # value for 33.33 m/s - - 1.0 # value for 38.89 m/s - feed_forward_steering_angle_gain: - - 0.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 1.0 # value for 0.0 m/s - - 1.0 # value for 0.2 m/s - - 1.0 # value for 2.78 m/s - - 1.0 # value for 11.11 m/s - - 1.0 # value for 16.67 m/s - - 1.0 # value for 22.22 m/s - - 1.0 # value for 27.78 m/s - - 1.0 # value for 33.33 m/s - - 1.0 # value for 38.89 m/s - # Velocity controller parameters - dv_p: - - 1.0 # value for -2.78 m/s - - 1.0 # value for -0.2 m/s - - 1.0 # value for 0.0 m/s - - 1.0 # value for 0.2 m/s - - 1.0 # value for 2.78 m/s - - 1.0 # value for 11.11 m/s - - 1.0 # value for 16.67 m/s - - 1.0 # value for 22.22 m/s - - 1.0 # value for 27.78 m/s - - 1.0 # value for 33.33 m/s - - 1.0 # value for 38.89 m/s - dv_i: - - 0.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 0.0 # value for 2.78 m/s - - 0.0 # value for 11.11 m/s - - 0.0 # value for 16.67 m/s - - 0.0 # value for 22.22 m/s - - 0.0 # value for 27.78 m/s - - 0.0 # value for 33.33 m/s - - 0.0 # value for 38.89 m/s - dv_d: - - 0.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 0.0 # value for 2.78 m/s - - 0.0 # value for 11.11 m/s - - 0.0 # value for 16.67 m/s - - 0.0 # value for 22.22 m/s - - 0.0 # value for 27.78 m/s - - 0.0 # value for 33.33 m/s - - 0.0 # value for 38.89 m/s - # Lateral deviation controller parameters - dy_p: - - 0.1 # value for -2.78 m/s - - 0.1 # value for -0.2 m/s - - 0.1 # value for 0.0 m/s - - 0.1 # value for 0.2 m/s - - 0.1 # value for 2.78 m/s - - 0.05 # value for 11.11 m/s - - 0.03 # value for 16.67 m/s - - 0.025 # value for 22.22 m/s - - 0.025 # value for 27.78 m/s - - 0.025 # value for 33.33 m/s - - 0.02 # value for 38.89 m/s - dy_i: - - 0.004 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 0.002 # value for 2.78 m/s - - 0.004 # value for 11.11 m/s - - 0.001 # value for 16.67 m/s - - 0.0007 # value for 22.22 m/s - - 0.0 # value for 27.78 m/s - - 0.0 # value for 33.33 m/s - - 0.0 # value for 38.89 m/s - dy_d: - - 0.04 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 0.04 # value for 2.78 m/s - - 0.02 # value for 11.11 m/s - - 0.02 # value for 16.67 m/s - - 0.02 # value for 22.22 m/s - - 0.015 # value for 27.78 m/s - - 0.015 # value for 33.33 m/s - - 0.015 # value for 38.89 m/s - # heading deviation controller parameters - dpsi_p: - - 1.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 1.0 # value for 2.78 m/s - - 1.0 # value for 11.11 m/s - - 1.0 # value for 16.67 m/s - - 1.0 # value for 22.22 m/s - - 1.0 # value for 27.78 m/s - - 1.0 # value for 33.33 m/s - - 1.0 # value for 38.89 m/s - dpsi_i: - - 1.2 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 1.2 # value for 2.78 m/s - - 0.6 # value for 11.11 m/s - - 0.4 # value for 16.67 m/s - - 0.14 # value for 22.22 m/s - - 0.13 # value for 27.78 m/s - - 0.13 # value for 33.33 m/s - - 0.13 # value for 38.89 m/s - dpsi_d: - - 0.0 # value for -2.78 m/s - - 0.0 # value for -0.2 m/s - - 0.0 # value for 0.0 m/s - - 0.0 # value for 0.2 m/s - - 0.0 # value for 2.78 m/s - - 0.0 # value for 11.11 m/s - - 0.0 # value for 16.67 m/s - - 0.0 # value for 22.22 m/s - - 0.0 # value for 27.78 m/s - - 0.0 # value for 33.33 m/s - - 0.0 # value for 38.89 m/s \ No newline at end of file diff --git a/deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl b/deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl deleted file mode 100644 index 974e4f6..0000000 --- a/deployments/generated/openadstack/control/ackermann_trajectory_control/values.yaml.gotmpl +++ /dev/null @@ -1,30 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /control - EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - TRAJECTORY_TOPIC: /planning/trajectory_optimization/trajectory - LAT_CONTROL_ACTIVE_TOPIC: /control/active - LON_CONTROL_ACTIVE_TOPIC: /control/active - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - TRACE: {{ (default "False" (env "TRACE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /docker-ros/ws/install/ackermann_trajectory_control/share/ackermann_trajectory_control/config/karl-lateral-limits-v1p3.csv - data: | -{{ readFile "karl-lateral-limits-v1p3.csv" | indent 6 }} - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl deleted file mode 100644 index a4473c1..0000000 --- a/deployments/generated/openadstack/essentials/robot-state-publisher/values.yaml.gotmpl +++ /dev/null @@ -1,24 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: robot-state-publisher - image: ghcr.io/openads-project/monitoring:v1.0.0 - args: - - {{ "/bin/bash" | quote }} - - {{ "-ic" | quote }} - - |- -{{ (printf "%s%s%s%s%s%s" "ros2 run robot_state_publisher robot_state_publisher \\\n /urdf/" (default "karl" (env "VEHICLE")) "/" (default "karl" (env "VEHICLE")) ".urdf \\\n --ros-args -p use_sim_time:=" (default "true" (env "USE_SIM_TIME"))) | indent 4 }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /urdf - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") ".runtime/openads-assets-v1.0.0" | clean) | quote }} - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl deleted file mode 100644 index 7e2a8b7..0000000 --- a/deployments/generated/openadstack/essentials/triton-server/values.yaml.gotmpl +++ /dev/null @@ -1,15 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - CUDA_VISIBLE_DEVICES: 0 - volumes: - - mountPath: /models - image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 - imagePath: models - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl b/deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl deleted file mode 100644 index c0ac4ce..0000000 --- a/deployments/generated/openadstack/essentials/zenoh-router/values.yaml.gotmpl +++ /dev/null @@ -1,6 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} diff --git a/deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl b/deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl deleted file mode 100644 index f058690..0000000 --- a/deployments/generated/openadstack/localization/lanelet2_map_server/values.yaml.gotmpl +++ /dev/null @@ -1,44 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - | - ros2 run lanelet2_map_server lanelet2_map_server --ros-args \ - -r __ns:=${NAMESPACE} \ - -r __node:=${NAME} \ - -p use_sim_time:=${USE_SIM_TIME} \ - -p map_frame_id:=${MAP_FRAME_ID} \ - -p use_automatic_map_selection:=${USE_AUTOMATIC_MAP_SELECTION} \ - -p map_directory:=${MAP_DIRECTORY} \ - -p map_filepath:=${MAP_FILEPATH} \ - ${ORIGIN_LAT:+-p origin_lat:=${ORIGIN_LAT}} \ - ${ORIGIN_LON:+-p origin_lon:=${ORIGIN_LON}} \ - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /localization - NAV_SAT_FIX_TOPIC: /localization/ego_state_estimation/nav_sat_fix - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: {{ (default "/docker-ros/ws/install/lanelet2_map_server/share/lanelet2_map_server/config/params.yml" (env "PARAMS")) | quote }} - MAP_FRAME_ID: map - USE_AUTOMATIC_MAP_SELECTION: false - MAP_DIRECTORY: /data/maps/default-maps - MAP_FILEPATH: /lanelet/lanelet.osm - ORIGIN_LAT: {{ (env "ORIGIN_LAT") | quote }} - ORIGIN_LON: {{ (env "ORIGIN_LON") | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /data/maps - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") ".runtime/lanelet2-maps-v1.0.4" | clean) | quote }} - - mountPath: /lanelet/lanelet.osm - hostPath: {{ (ternary (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (env "CUSTOM_LANELET") | clean) "" (ne (env "CUSTOM_LANELET") "")) | quote }} - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl b/deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl deleted file mode 100644 index 7144b0a..0000000 --- a/deployments/generated/openadstack/monitoring/bag-recorder/values.yaml.gotmpl +++ /dev/null @@ -1,42 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: bag-recorder - args: - - /bin/bash - - -ic - - |- - set -e - ros2 topic echo --once /planning/lanelet2_route_planning/route > /dev/null - exec ros2 bag record \ - --storage mcap \ - --output /tmp/rosbags/bag \ - --topics \ - /rosout \ - /tf \ - /tf_static \ - /simulation/ego_data \ - /simulation/imu \ - /simulation/odometry \ - /simulation/vehicle_state \ - /simulation/object_list \ - /localization/ego_state_estimation/ego_data \ - /planning/lanelet2_route_planning/route \ - /planning/simple_planner/trajectory \ - /planning/trajectory_optimization/trajectory \ - /understanding/autoware_multi_object_tracker/object_list \ - /understanding/lanelet2_object_list_prediction/object_list - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /tmp/rosbags - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") (default "openadstack/monitoring/volume" (env "BAG_DIRECTORY")) | clean) | quote }} - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz b/deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz deleted file mode 100644 index d397051..0000000 --- a/deployments/generated/openadstack/monitoring/rviz-carla/carla.rviz +++ /dev/null @@ -1,895 +0,0 @@ -Panels: - - Class: rviz_common/Displays - Help Height: 0 - Name: Displays - Property Tree Widget: - Expanded: - - /Perception1 - - /Perception1/EgoData1/Planned Trajectory1 - - /Perception1/EgoData1/Planned Trajectory1/Color Options1 - - /Perception1/EgoData1/Planned Trajectory1/Parameter Options1 - - /Perception1/EgoData1/Planned Trajectory1/End Cap1 - - /Perception1/EgoData1/Planned Trajectory1/Fade Out1 - - /Perception1/Tracked ObjectList1/Appearance Properties1 - - /Perception1/Tracked ObjectList1/Appearance Properties1/Hoverboard1 - - /Planning1 - - /Planning1/Route1/Suggested Lane1 - - /Planning1/Route1/Suggested Lane1/Reference Line1/Line1 - - /Planning1/Route1/Suggested Lane1/Boundaries1/Lines1 - - /Planning1/Route1/Drivable Space1/Lines1 - - /Planning1/Reference Trajectory1/Show velocity trajectory1 - - /Planning1/Drivable Trajectory1/Show velocity trajectory1 - Splitter Ratio: 0.42276424169540405 - Tree Height: 328 - - Class: rviz_common/Selection - Name: Selection - - Class: rviz_common/Tool Properties - Expanded: - - /Plan Route1 - Name: Tool Properties - Splitter Ratio: 0.5886790156364441 - - Class: rviz_common/Views - Expanded: - - /Current View1 - Name: Views - Splitter Ratio: 0.5 - - Class: rviz_common/Time - Experimental: false - Name: Time - SyncMode: 0 - SyncSource: "" - - Class: rviz_carla_plugin/CarlaControl - Name: CarlaControl -Visualization Manager: - Class: "" - Displays: - - Alpha: 1 - Class: rviz_default_plugins/RobotModel - Collision Enabled: false - Description File: "" - Description Source: Topic - Description Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /robot_description - Enabled: true - Links: - All Links Enabled: true - Expand Joint Details: false - Expand Link Details: false - Expand Tree: false - Link Tree Style: Links in Alphabetic Order - aeva/aeries2/sensor: - Alpha: 1 - Show Axes: false - Show Trail: false - aeva/vehicle: - Alpha: 1 - Show Axes: false - Show Trail: false - altos_radar: - Alpha: 1 - Show Axes: false - Show Trail: false - base_link: - Alpha: 1 - Show Axes: false - Show Trail: false - Value: true - drivers/aeva_lidar/front_left_screw_bottom: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_fl/lidar: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_fl/sensor: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_fr/lidar: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_fr/sensor: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_rl/lidar: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_rl/sensor: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_rr/lidar: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/ouster_lidar_rr/sensor: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/smartmicro_radar/front_left: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/smartmicro_radar/front_right: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/smartmicro_radar/rear_left: - Alpha: 1 - Show Axes: false - Show Trail: false - drivers/smartmicro_radar/rear_right: - Alpha: 1 - Show Axes: false - Show Trail: false - front_center_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - front_left_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - front_right_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - mid_center_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - mid_left_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - mid_right_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - rack: - Alpha: 1 - Show Axes: false - Show Trail: false - Value: true - rear_center_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - rear_left_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - rear_right_camera_link: - Alpha: 1 - Show Axes: false - Show Trail: false - Mass Properties: - Inertia: false - Mass: false - Name: Vehicle Model - TF Prefix: "" - Update Interval: 0 - Value: true - Visual Enabled: true - - Class: rviz_default_plugins/TF - Enabled: false - Filter (blacklist): "" - Filter (whitelist): "" - Frame Timeout: 15 - Frames: - All Enabled: true - Marker Scale: 1 - Name: TF - Show Arrows: true - Show Axes: true - Show Names: false - Tree: - {} - Update Interval: 0 - Value: false - - Alpha: 0.5 - Class: lanelet2_rviz_display/Lanelet2MapDisplay - Enabled: true - Fill Lanelets (Road): - Road Color: 56; 56; 56 - Value: false - Name: Lanelet2MapDisplay - Name of lanelet2_map_server: /localization/lanelet2_map_server - Show Map in 3D: false - Value: true - Visualize Areas: - Area Color: 72; 72; 72 - Area Width: 0.30000001192092896 - Fill Areas: false - Value: false - Visualize Crosswalks: - Crosswalk Color: 255; 255; 255 - Value: true - Visualize Lanelet-IDs: - Character Height: 1 - ID Color: 255; 255; 255 - Value: false - Visualize Lanelet-Linestrings: - LL Color Left: 255; 255; 255 - LL Color Right: 255; 255; 255 - Linestring Width: 0.10000000149011612 - Value: true - Visualize Lanelet-Separators: - Linestring Width: 0.10000000149011612 - Separators Color: 0; 0; 255 - Value: false - Visualize Parking: - Fill Parking: true - Parking Color: 0; 179; 76 - Parking Width: 0.30000001192092896 - Value: false - Visualize Sidewalks: - Sidewalk Color: 191; 191; 191 - Value: true - Visualize Stop lines: - Stop Line Color: 255; 25; 25 - Stop Line Width: 0.20000000298023224 - Value: true - Visualize Traffic Lights: - Traffic Light Color: 102; 102; 102 - Traffic Light Height: 3 - Value: true - - Alpha: 0.9900000095367432 - Blocks: 8 - Class: rviz_satellite/AerialMap - Draw Behind: true - Enabled: true - Name: AerialMap - Object URI: https://www.wmts.nrw.de/geobasis/wmts_nw_dop/tiles/nw_dop/EPSG_25832_16/{z}/{x}/{y} - TF tolerance: 0.30000001192092896 - Timeout: 3 - Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /carla/ego_vehicle/gnss - Use Local Map: - Meter per Pixel (Zoom 0): 4891.97021484375 - Origin CRS: EPSG:25832 - "Origin X ": -46133.171875 - "Origin Y ": 6301219.5 - Value: true - Value: true - Visualize in UTM Frame: false - Zoom: 15 - - Class: rviz_default_plugins/Image - Enabled: true - Max Value: 1 - Median window: 5 - Min Value: 0 - Name: 3rd Person View - Normalize Range: true - Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /carla/ego_vehicle/rgb_view/image - Value: true - - Class: rviz_common/Group - Displays: - - Acceleration arrow: - Acceleration Color: 255; 0; 0 - Acceleration scale: 10 - Use acceleration color: true - Value: false - Alpha: 0.6000000238418579 - Bounding box: false - Class: perception_msgs/EgoData - Color: 0; 255; 255 - Enabled: true - Name: EgoData - Orientation: false - Planned Trajectory: - Alpha: 1 - Color Coding: Velocity-dependent Coloring - Color Options: - Base Color: 255; 0; 0 - Negative dynamics: 0; 0; 0 - Positive dynamics: 74; 222; 0 - Value: " " - End Cap: - Round Segments: 16 - Value: Straight - Fade Out: - Fade Length [m]: 5 - Value: true - Parameter Options: - Value: " " - max. acceleration [m/s²]: 1 - max. velocity [km/h]: 20 - Value: true - Text information: - Char height: 4 - Value: false - Velocity: true - Timeout: - Duration: 1 - Value: false - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /localization/ego_state_estimation/ego_data - Value: true - Velocity arrow: - Set height with Velocity: true - Use velocity color: true - Value: false - Velocity Color: 255; 0; 255 - Velocity scale: 1 - Visualize Z dimension: true - - Background Alpha: 0.8999999761581421 - Background Color: 20; 20; 20 - Bottom: 10 - Class: perception_msgs/EgoDataOverlay - Enabled: true - Height: 80 - Left: 10 - Name: EgoDataOverlay - Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /localization/ego_state_estimation/ego_data - Value: true - Width: 350 - - Alpha: 1 - Autocompute Intensity Bounds: true - Autocompute Value Bounds: - Max Value: 10 - Min Value: -10 - Value: true - Axis: Z - Channel Name: intensity - Class: rviz_default_plugins/PointCloud2 - Color: 255; 255; 255 - Color Transformer: Intensity - Decay Time: 0 - Enabled: true - Invert Rainbow: false - Max Color: 255; 255; 255 - Max Intensity: 0.9930919408798218 - Min Color: 0; 0; 0 - Min Intensity: 0.7409994602203369 - Name: Point Cloud Fused - Position Transformer: XYZ - Selectable: true - Size (Pixels): 3 - Size (m): 0.019999999552965164 - Style: Flat Squares - Topic: - Depth: 1 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Best Effort - Value: /perception/point_cloud_fusion/point_cloud - Use Fixed Frame: true - Use rainbow: true - Value: true - - Acceleration arrow: - Acceleration Color: 255; 0; 0 - Acceleration scale: 10 - Use acceleration color: true - Value: false - Alpha: 0.5 - Appearance Properties: - Bounding box: - Orientation Indication: false - Value: false - Classification coloring: - ANIMAL: 0; 128; 128 - BICYCLE: 255; 255; 25 - BUS: 25; 25; 255 - CAR: 25; 25; 255 - MICRO: 25; 255; 255 - MOTORCYCLE: 255; 255; 25 - PEDESTRIAN: 25; 255; 255 - UNKNOWN: 128; 128; 128 - UTILITY: 25; 25; 255 - VRU: 25; 255; 255 - Value: false - Hoverboard: - Corner Radius [m]: 0.3499999940395355 - Corner Style: - Round Segments: 12 - Value: Round - Glow: - Glow Height [m]: 0.699999988079071 - Glow Intensity [0..1]: 0.6000000238418579 - Value: true - Thickness [m]: 0.11999999731779099 - Value: true - Mesh: false - Value: " " - Class: perception_msgs/ObjectList - Color: 0; 255; 25 - Enabled: false - Name: Detected ObjectList - Predictions: - Line Color: 255; 170; 0 - Line Width: 0.25 - Prediction Points: - Point Color: 255; 170; 0 - Point Width: 1 - Value: false - Velocity-based height: true - Probabilities: - Char height: 2 - Value: false - Value: false - Text information: - Char height: 4 - Classification: true - Classification coloring: true - Existence probability: false - Object ID: false - Value: false - Velocity: true - Timeout: - Duration: 1 - Value: false - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /perception/point_cloud_object_detection/object_list - Value: false - Velocity arrow: - Use velocity color: true - Value: true - Velocity Color: 255; 0; 255 - Velocity scale: 1 - - Acceleration arrow: - Acceleration Color: 255; 0; 0 - Acceleration scale: 10 - Use acceleration color: true - Value: false - Alpha: 0.5 - Appearance Properties: - Bounding box: - Orientation Indication: false - Value: false - Classification coloring: - ANIMAL: 0; 128; 128 - BICYCLE: 255; 255; 25 - BUS: 25; 25; 255 - CAR: 25; 25; 255 - MICRO: 25; 255; 255 - MOTORCYCLE: 255; 255; 25 - PEDESTRIAN: 25; 255; 255 - UNKNOWN: 128; 128; 128 - UTILITY: 25; 25; 255 - VRU: 25; 255; 255 - Value: false - Hoverboard: - Corner Radius [m]: 0.3499999940395355 - Corner Style: - Round Segments: 12 - Value: Round - Glow: - Glow Height [m]: 0.699999988079071 - Glow Intensity [0..1]: 0.6000000238418579 - Value: true - Thickness [m]: 0.11999999731779099 - Value: true - Mesh: false - Value: " " - Class: perception_msgs/ObjectList - Color: 0; 255; 25 - Enabled: false - Name: Tracked ObjectList - Predictions: - Line Color: 255; 170; 0 - Line Width: 0.25 - Prediction Points: - Point Color: 255; 170; 0 - Point Width: 1 - Value: false - Velocity-based height: true - Probabilities: - Char height: 2 - Value: false - Value: false - Text information: - Char height: 4 - Classification: true - Classification coloring: true - Existence probability: false - Object ID: false - Value: false - Velocity: true - Timeout: - Duration: 1 - Value: false - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /understanding/autoware_multi_object_tracker/object_list - Value: false - Velocity arrow: - Use velocity color: true - Value: true - Velocity Color: 255; 0; 255 - Velocity scale: 1 - - Acceleration arrow: - Acceleration Color: 255; 0; 0 - Acceleration scale: 10 - Use acceleration color: true - Value: false - Alpha: 0.5 - Appearance Properties: - Bounding box: - Orientation Indication: false - Value: false - Classification coloring: - ANIMAL: 0; 128; 128 - BICYCLE: 255; 255; 25 - BUS: 25; 25; 255 - CAR: 25; 25; 255 - MICRO: 25; 255; 255 - MOTORCYCLE: 255; 255; 25 - PEDESTRIAN: 25; 255; 255 - UNKNOWN: 128; 128; 128 - UTILITY: 25; 25; 255 - VRU: 25; 255; 255 - Value: true - Hoverboard: - Corner Radius [m]: 0.3499999940395355 - Corner Style: - Round Segments: 12 - Value: Round - Glow: - Glow Height [m]: 0.699999988079071 - Glow Intensity [0..1]: 0.6000000238418579 - Value: true - Thickness [m]: 0.11999999731779099 - Value: true - Mesh: false - Value: " " - Class: perception_msgs/ObjectList - Color: 0; 255; 25 - Enabled: true - Name: Predicted ObjectList - Predictions: - Line Color: 255; 170; 0 - Line Width: 0.25 - Prediction Points: - Point Color: 255; 170; 0 - Point Width: 1 - Value: false - Velocity-based height: true - Probabilities: - Char height: 2 - Value: false - Value: true - Text information: - Char height: 4 - Classification: true - Classification coloring: true - Existence probability: false - Object ID: false - Value: false - Velocity: true - Timeout: - Duration: 1 - Value: false - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /understanding/lanelet2_object_list_prediction/object_list - Value: true - Velocity arrow: - Use velocity color: true - Value: false - Velocity Color: 255; 0; 255 - Velocity scale: 1 - Enabled: true - Name: Perception - - Class: rviz_common/Group - Displays: - - Adjacent Lanes: - Boundaries: - Lines: - Color: 255; 170; 0 - Scale: 0.05000000074505806 - Value: true - Points: - Color: 255; 170; 0 - Scale: 0.20000000298023224 - Value: false - Value: true - Reference Line: - Line: - Color: 255; 255; 0 - Scale: 0.05000000074505806 - Value: true - Poses: - Color: 255; 255; 0 - Scale: 0.5 - Value: false - Value: true - Regulatory Elements: - Default Color: 200; 200; 200 - Positions: true - Scale: 0.10000000149011612 - Validity stamp: - Color: 255; 255; 255 - Scale: 0.6000000238418579 - Value: false - Value: true - Speed Limit: - Color: 255; 255; 255 - Scale: 0.5 - Value: false - Turn Signals: - Color: 255; 255; 0 - Scale: 1 - Value: false - Value: false - Class: route_planning_msgs/Route - Destination: - Color (final): 255; 0; 255 - Color (intermediate): 85; 255; 0 - Scale (final): 1 - Scale (intermediate): 1 - Value: true - Drivable Space: - Lines: - Color: 170; 85; 0 - Scale: 0.10000000149011612 - Value: true - Points: - Color: 255; 0; 0 - Scale: 0.20000000298023224 - Value: false - Value: false - Enabled: true - Name: Route - Suggested Lane: - Boundaries: - Lines: - Color: 0; 170; 0 - Scale: 0.20000000298023224 - Value: true - Points: - Color: 0; 170; 0 - Scale: 0.25 - Value: false - Value: true - Lane Change: - Color: 0; 255; 0 - Scale: 0.20000000298023224 - Value: true - Reference Line: - Line: - Color: 0; 255; 0 - Scale: 0.20000000298023224 - Value: true - Poses: - Color: 0; 255; 0 - Scale: 0.5 - Value: false - Value: true - Regulatory Elements: - Default Color: 200; 200; 200 - Positions: true - Scale: 0.20000000298023224 - Validity stamp: - Color: 255; 255; 255 - Scale: 0.6000000238418579 - Value: false - Value: true - Speed Limit: - Color: 255; 255; 255 - Scale: 0.6000000238418579 - Value: false - Turn Signals: - Color: 255; 255; 0 - Scale: 1 - Value: false - Value: true - Timeout: - Duration: 1 - Value: true - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /planning/lanelet2_route_planning/route - Traveled Route: - Opacity: 0.30000001192092896 - Value: true - Value: true - - Background Alpha: 0.8999999761581421 - Background Color: 20; 20; 20 - Class: route_planning_msgs/RouteOverlay - Enabled: true - Height: 125 - Name: RouteOverlay - Right: 10 - Top: 10 - Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /planning/lanelet2_route_planning/route - Value: true - Width: 135 - - Alpha: 1 - Class: trajectory_planning_msgs/Trajectory - Enabled: true - Name: Reference Trajectory - Point-Size: 0.5 - Show acceleration trajectory: - Color acceleration trajectory/samples: 255; 255; 0 - Show acceleration samples: false - Value: false - Show distance trajectory: - Color distance trajectory/samples: 255; 0; 0 - Show distance samples: false - Value: false - Show time trajectory: - Color time trajectory/samples: 0; 0; 255 - Show time samples: false - Value: false - Show velocity trajectory: - Color velocity trajectory/samples: 255; 0; 0 - Show velocity samples: true - Show yaw arrows: - Color yaw arrows: 255; 85; 0 - Scale: 0.5 - Value: false - Value: true - Timeout: - Duration: 1 - Value: true - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /planning/simple_planner/trajectory - Value: true - - Alpha: 1 - Class: trajectory_planning_msgs/Trajectory - Enabled: true - Name: Drivable Trajectory - Point-Size: 0.5 - Show acceleration trajectory: - Color acceleration trajectory/samples: 255; 255; 0 - Show acceleration samples: false - Value: false - Show distance trajectory: - Color distance trajectory/samples: 255; 0; 0 - Show distance samples: false - Value: false - Show time trajectory: - Color time trajectory/samples: 0; 0; 255 - Show time samples: false - Value: false - Show velocity trajectory: - Color velocity trajectory/samples: 255; 255; 255 - Show velocity samples: true - Show yaw arrows: - Color yaw arrows: 255; 85; 0 - Scale: 0.5 - Value: false - Value: true - Timeout: - Duration: 1 - Value: true - Topic: - Depth: 5 - Durability Policy: Volatile - Filter size: 10 - History Policy: Keep Last - Reliability Policy: Reliable - Value: /planning/trajectory_optimization/trajectory - Value: true - Enabled: true - Name: Planning - Enabled: true - Global Options: - Background Color: 0; 0; 0 - Fixed Frame: map - Frame Rate: 30 - Name: root - Tools: - - Class: rviz_default_plugins/Interact - Hide Inactive Objects: true - - Class: rviz_default_plugins/SetInitialPose - Covariance x: 0.25 - Covariance y: 0.25 - Covariance yaw: 0.06853891909122467 - Topic: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /initialpose - - Action server: - Depth: 5 - Durability Policy: Volatile - History Policy: Keep Last - Reliability Policy: Reliable - Value: /planning/lanelet2_route_planning/plan_route - Class: route_planning_msgs/PlanRoute - Transformation: - Current: - Class: rviz_default_plugins/TF - Value: true - Views: - Current: - Class: rviz_default_plugins/XYOrbit - Distance: 48.21050262451172 - Enable Stereo Rendering: - Stereo Eye Separation: 0.05999999865889549 - Stereo Focal Distance: 1 - Swap Stereo Eyes: false - Value: false - Focal Point: - X: 0 - Y: 0 - Z: 0 - Focal Shape Fixed Size: false - Focal Shape Size: 0.05000000074505806 - Invert Z Axis: false - Name: Current View - Near Clip Distance: 0.009999999776482582 - Pitch: 0.9053980708122253 - Target Frame: base_link - Value: XYOrbit (rviz_default_plugins) - Yaw: 3.3004002571105957 - Saved: ~ -Window Geometry: - 3rd Person View: - collapsed: false - CarlaControl: - collapsed: false - Displays: - collapsed: false - Height: 1043 - Hide Left Dock: false - Hide Right Dock: false - QMainWindow State: 000000ff00000000fd0000000400000000000001ee00000380fc0200000011fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f00700065007200740069006500730200000780000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003b00000183000000c700fffffffb0000001e004f0076006500720076006900650077002000430061006d00650072006101000001620000012c0000000000000000fb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261fb0000002a005400720061006a006500630074006f00720079002000530075006700670065007300740069006f006e010000028a0000012a0000000000000000fb0000002000500072006500640069006300740069006f006e00200049006d00610067006500000002d6000000c30000000000000000fb00000018004300610072006c00610043006f006e00740072006f006c01000001c4000000bc000000b400fffffffb0000002e00540072006100660066006900630020004c006900670068007400200044006500740065006300740069006f006e00000003460000004e0000000000000000fb0000002a0054007200610066006600690063004c00690067006800740044006500740065006300740069006f006e000000027a000001210000000000000000fb0000000c00430061006d0065007200610100000271000000a20000000000000000fb0000001e00330072006400200050006500720073006f006e002000560069006500770100000286000001350000001600fffffffb0000000a0049006d006100670065010000035f0000005c0000000000000000000000010000010000000380fc0200000004fb0000000a00560069006500770073000000003b00000380000000a000fffffffb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000001c004f007600650072007600690065007700200049006d006100670065010000003b000003790000000000000000fb0000001200530065006c0065006300740069006f006e010000025a000000b2000000000000000000000002000009be00000195fc0100000009fb0000001400660072006f006e0074002d006c00650066007400000000000000025f0000000000000000fb0000001800660072006f006e0074002d00630065006e0074006500720000000265000003240000000000000000fb0000001600660072006f006e0074002d00720069006700680074000000058f0000042f0000000000000000fb00000010006d00690064002d006c0065006600740000000641000000fd0000000000000000fb00000012006d00690064002d00720069006700680074000000063b000001030000000000000000fb000000140072006500610072002d00720069006700680074000000052d000002110000000000000000fb000000160072006500610072002d00630065006e007400650072000000067d000000c10000000000000000fb000000120072006500610072002d006c0065006600740000000687000000b70000000000000000fb0000000a00560069006500770073030000004e00000080000002e100000197000000030000073e00000037fc0100000002fb0000000800540069006d006501000000000000073e0000025300fffffffb0000000800540069006d006501000000000000045000000000000000000000054a0000038000000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 - Selection: - collapsed: false - Time: - collapsed: false - Tool Properties: - collapsed: false - Views: - collapsed: false - Width: 1854 - X: 3906 - Y: 0 diff --git a/deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl b/deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl deleted file mode 100644 index 60ccea6..0000000 --- a/deployments/generated/openadstack/monitoring/rviz-carla/values.yaml.gotmpl +++ /dev/null @@ -1,35 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: rviz-carla - args: - - bash - - -ic - - rviz2 -d /conf.rviz --ros-args -p use_sim_time:=true - gpu: true - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /monitoring - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - CONFIG: /conf.rviz - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /docker-ros/ws/monitoring-volume - hostPath: {{ (printf "%s/%s" (requiredEnv "OPENADSIM_PATH") "openadstack/monitoring/volume" | clean) | quote }} - - mountPath: /mesh - image: ghcr.io/openads-project/openads-assets:v1.0.0 - imagePath: mesh - - mountPath: /conf.rviz - data: | -{{ readFile "carla.rviz" | indent 6 }} - dependsOn: - - host: zenoh-router - port: 7447 - x11Display: {{ env "DISPLAY_X11_DOCKER" | default (env "DISPLAY") | quote }} - x11XauthorityFile: {{ env "XAUTHORITY_DOCKER" | quote }} diff --git a/deployments/generated/openadstack/perception/point_cloud_fusion/params.yml b/deployments/generated/openadstack/perception/point_cloud_fusion/params.yml deleted file mode 100644 index b8cfb57..0000000 --- a/deployments/generated/openadstack/perception/point_cloud_fusion/params.yml +++ /dev/null @@ -1,59 +0,0 @@ -/**/*: - ros__parameters: - target_frame: base_link - input_topics: - - "/carla/ego_vehicle/karl_rack_lidars/lidar_fl/point_cloud" - - "/carla/ego_vehicle/karl_rack_lidars/lidar_fr/point_cloud" - - "/carla/ego_vehicle/karl_rack_lidars/lidar_rl/point_cloud" - - "/carla/ego_vehicle/karl_rack_lidars/lidar_rr/point_cloud" - input_transport_hints: - - "raw" - - "raw" - - "raw" - - "raw" - - sync_queue_size: 3 # Queue depth for approximate time synchronization - max_time_diff_sec: 0.05 # Maximum allowed timestamp difference (seconds) across inputs - output_queue_size: 1 # Queue depth for fused output publisher - age_penalty: 0.1 # Optional ApproximateTime tuning - use_cuda: true # Enable CUDA acceleration (requires CUDA build) - fixed_points_per_input_cloud: 0 # 0=disabled - # output_fields: # Determine which fields to include in the output point cloud (all if not set) - # - "x" - # - "y" - # - "z" - # - "intensity" - # - ... - output_stamp_mode: "earliest" - - # --- point_cloud_transport parameters ----- - # point_cloud_fusion.output.enable_pub_plugins: - # - point_cloud_transport/cloudini - # - point_cloud_transport/draco - # - point_cloud_transport/raw - # - point_cloud_transport/zlib - # - point_cloud_transport/zstd - # point_cloud_fusion.output.cloudini.cloudini_resolution: 0.001 - # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.x: POSITION - # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.y: POSITION - # point_cloud_fusion.output.draco.attribute_mapping.attribute_type.z: POSITION - # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.rgb: 16 - # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.x: 16 - # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.y: 16 - # point_cloud_fusion.output.draco.attribute_mapping.quantization_bits.z: 16 - # point_cloud_fusion.output.draco.attribute_mapping.rgba_tweak.rgb: true - # point_cloud_fusion.output.draco.attribute_mapping.rgba_tweak.rgba: false - # point_cloud_fusion.output.draco.decode_speed: 7 - # point_cloud_fusion.output.draco.deduplicate: true - # point_cloud_fusion.output.draco.encode_method: 0 - # point_cloud_fusion.output.draco.encode_speed: 7 - # point_cloud_fusion.output.draco.expert_attribute_types: false - # point_cloud_fusion.output.draco.expert_quantization: false - # point_cloud_fusion.output.draco.force_quantization: false - # point_cloud_fusion.output.draco.quantization_COLOR: 14 - # point_cloud_fusion.output.draco.quantization_GENERIC: 14 - # point_cloud_fusion.output.draco.quantization_NORMAL: 14 - # point_cloud_fusion.output.draco.quantization_POSITION: 14 - # point_cloud_fusion.output.draco.quantization_TEX_COORD: 14 - # point_cloud_fusion.output.zlib.encode_level: 7 - # point_cloud_fusion.output.zstd.zstd_encode_level: 7 diff --git a/deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl b/deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl deleted file mode 100644 index 736f75c..0000000 --- a/deployments/generated/openadstack/perception/point_cloud_fusion/values.yaml.gotmpl +++ /dev/null @@ -1,35 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - |- - ros2 launch point_cloud_fusion point_cloud_fusion.launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - trace:=${TRACE} \ - point_cloud_topic:=${POINT_CLOUD_TOPIC} - gpu: true - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /perception - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - TRACE: {{ (default "false" (env "TRACE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml b/deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml deleted file mode 100644 index 97ef2e5..0000000 --- a/deployments/generated/openadstack/perception/point_cloud_object_detection/params.yml +++ /dev/null @@ -1,74 +0,0 @@ -/**: - ros__parameters: - - # Core node configuration - prediction.server_url: "{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001" - prediction.model_repository: "point-cloud-object-detection" - prediction.model_version: "1" - preprocessing.backend: "cuda" - preprocessing.inference_frame: base_link - output.frame: base_link - output.grid_maps.frame: base_link - output.sensor_id: 0 - point_cloud_transport: raw - prediction.use_shm: true - prediction.cuda_input_shm: true - prediction.triton_client_timeout_s: 5.0 - - # Output filtering and object metadata - postprocessing.class_score_threshold: 0.0 - - # Object covariance defaults - # CONTINUOUS_STATE_COVARIANCE_UNKNOWN = -1.0 - output.variances: [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0] - - # Model input feature selection - input.point_feature_field: "intensity" - - # Runtime overrides for exported manifest defaults. - # preprocessing.detection_area.z_min: -1.0 - # preprocessing.detection_area.z_max: 4.0 - preprocessing.point_feature.value_threshold: 100.0 # should be set to appriximately the 99% percentile of the expected point_feature_field values in the input point cloud. - # car, bus, motorcycle, bicycle, utility, pedestrian, vru, micro, animal - postprocessing.nms.score_threshold: [0.3, 0.3, 0.3, 0.4, 0.3, 0.6, 0.4, 0.4, 0.3] - # postprocessing.class_score_threshold: 0.0 - postprocessing.nms.iou_threshold: 0.05 - postprocessing.nms.max_num_objects: 256 - - # Rectangular no-detection zone in inference_frame - preprocessing.no_detection_zone.enabled: true - preprocessing.no_detection_zone.remove_points: true - preprocessing.no_detection_zone.x_min: -1.5 - preprocessing.no_detection_zone.x_max: 4.2 - preprocessing.no_detection_zone.y_min: -1.2 - preprocessing.no_detection_zone.y_max: 1.2 - preprocessing.no_detection_zone.publish_polygon: true - preprocessing.no_detection_zone.publish_points: true - - # Circular-sector detection area in inference_frame - preprocessing.detection_area.enabled: true - preprocessing.detection_area.center_x: 0.0 - preprocessing.detection_area.center_y: 0.0 - - preprocessing.detection_area.radius: 50.0 - preprocessing.detection_area.bearing_deg: 0.0 - preprocessing.detection_area.fov_deg: 360.0 - preprocessing.detection_area.publish_polygon: true - preprocessing.detection_area.num_segments: 32 - preprocessing.detection_area.filter_detections: true - preprocessing.detection_area.filter_mode: "center" - - # Model bounds output - output.model_bounds.publish_polygon: true - - # Grid-map outputs - output.grid_maps.publish_density: true - output.grid_maps.publish_dynamic: true - output.grid_maps.publish_combined: true - output.grid_maps.publish_static: true - output.grid_maps.zero_in_no_detection_zone: true - output.grid_maps.zero_outside_detection_area: true - output.grid_maps.density_gain: 5.0 - output.grid_maps.dynamic_gain: 1.0 - output.grid_maps.combined_gain: 1.0 - output.grid_maps.static_gain: 5.0 diff --git a/deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl b/deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl deleted file mode 100644 index 38c8c22..0000000 --- a/deployments/generated/openadstack/perception/point_cloud_object_detection/values.yaml.gotmpl +++ /dev/null @@ -1,52 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - image: ghcr.io/openads-project/point_cloud_object_detection:v3.0.0-slim - args: - - /bin/bash - - -ic - - |- - ros2 launch point_cloud_object_detection point_cloud_object_detection.launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - trace:=${TRACE} \ - point_cloud_topic:=${POINT_CLOUD_TOPIC} \ - object_list_topic:=${OBJECT_LIST_TOPIC} \ - no_detection_zone_topic:=${NO_DETECTION_ZONE_TOPIC} \ - no_detection_zone_points_topic:=${NO_DETECTION_ZONE_POINTS_TOPIC} \ - detection_area_topic:=${DETECTION_AREA_TOPIC} \ - model_bounds_topic:=${MODEL_BOUNDS_TOPIC} \ - density_grid_map_topic:=${DENSITY_GRID_MAP_TOPIC} \ - dynamic_grid_map_topic:=${DYNAMIC_GRID_MAP_TOPIC} \ - combined_grid_map_topic:=${COMBINED_GRID_MAP_TOPIC} \ - static_grid_map_topic:=${STATIC_GRID_MAP_TOPIC} - gpu: true - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /perception - POINT_CLOUD_TOPIC: /perception/point_cloud_fusion/point_cloud - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - TRACE: {{ (default "false" (env "TRACE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - volumes: - - mountPath: /models - image: ghcr.io/openads-project/point_cloud_object_detection/model:v1.0.0 - imagePath: models - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: triton-server - port: 8000 - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml b/deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml deleted file mode 100644 index f905f71..0000000 --- a/deployments/generated/openadstack/planning/lanelet2_route_planning/params.yml +++ /dev/null @@ -1,25 +0,0 @@ -/**/*: - ros__parameters: - ll2_map_server_name: /localization/lanelet2_map_server - publish_frequency: 20.0 - action_feedback_frequency: 1.0 - sampling_distance: 1.0 - project_destination_to_reference_line: true - destination_distance_threshold: 1.0 - required_traveled_distance_proportion: 0.5 - enrich_route_ahead_ego_distance: 150.0 - enrich_route_behind_ego_distance: 100.0 - route_undershoot_distance: 10.0 - route_overshoot_distance: 10.0 - max_drivable_space_radius: 50.0 - max_num_threads: 8 - transform_timeout: 0.1 - - # --- plan_route_action_client --- - # waypoints: - # - ", " - # - ", , " - # - ", , -1" # intermediate destination - enable_random_destination: false - enable_continuous_planning: false - cancel_route: false \ No newline at end of file diff --git a/deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl b/deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl deleted file mode 100644 index 2ef0c7b..0000000 --- a/deployments/generated/openadstack/planning/lanelet2_route_planning/values.yaml.gotmpl +++ /dev/null @@ -1,22 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /planning - EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/planning/simple_planner/params.yml b/deployments/generated/openadstack/planning/simple_planner/params.yml deleted file mode 100644 index 1eb4851..0000000 --- a/deployments/generated/openadstack/planning/simple_planner/params.yml +++ /dev/null @@ -1,82 +0,0 @@ -/**: - ros__parameters: - - #### general parameters - vehicle_frame_id: base_link # Frame ID of local vehicle frame (trajectory is planned in this frame) - trajectory_frame_id: base_link # Frame ID of output trajectory - fixed_over_time_frame_id: map # Frame ID of frame that is fixed over time for finding temporal transforms - frequency: 10.0 - route_timeout: 1.0 # time after which a received route is considered invalid (s) (use -1 for no timeout) - ego_data_timeout: 1.0 # time after which a received ego vehicle data is considered invalid (s) (use -1 for no timeout) - - #### trajectory generation parameters - trajectory_horizon: 8.0 # covered time horizon of the published trajectory (s) - n_states: 51 # number of states in published trajectory - interpolation_type: 1 # 0: linear, 1: cubic spline - v_ref: -1.0 # reference velocity (m/s). Set to '-1.0' to use velocity from route. - a_decel: -0.5 # desired deceleration for braking at stop lines or end of route (m/s^2) - must be < 0.0 - a_max_decel: -1.0 # maximum deceleration for safe-stop trajectories (m/s^2) - must be < 0.0 and <= a_decel - trigger_turn_signals: False # true: planner will request turn signal services; false: planner will not trigger turn signals - - #### grid map parameters - consider_grid_map: False # true: planner will consider grid map; false: planner will ignore grid map - grid_map_timeout: 1.0 # time after which a received grid map is considered invalid (s) (use -1 for no timeout) - grid_occupied_threshold: 15 # minimum occupancy value that is considered blocked in the grid map - consider_out_of_grid: False # true: points outside the grid map are treated as occupied; false: free - grid_longitudinal_safety_distance: 1.5 # longitudinal ego-box margin; negative values shrink the box (m) - grid_lateral_safety_distance: 0.0 # lateral ego-box margin; negative values shrink the box (m) - - #### traffic light parameters - consider_traffic_lights: False # true: planner will consider traffic lights; false: planner will ignore traffic lights - offset_to_stop_line: 0.0 # additional distance to stop in front of a stop line (m) (default: 0.0 -> stops with front of vehicle at stop line) - ignore_stop_line_threshold: 0.5 # a stop line will be ignored if the front of the vehicle has already passed the stop line by more than this threshold (m) - consider_future_states: False # true: trajectory will consider forecast of traffic light states; false: trajectory will only consider current traffic light state - - #### object parameters - consider_objects: True # true: planner will consider perceived objects on the route; false: planner will ignore objects - object_timeout: 1.0 # time after which a received object list is considered invalid (s) (use -1 for no timeout) - min_prediction_prob: 0.0 # minimum probability for considering an object prediction branch; otherwise the most likely one is used - object_longitudinal_safety_distance: 1.5 # longitudinal ego-box margin; negative values shrink the box (m) - object_lateral_safety_distance: 0.0 # lateral ego-box margin; negative values shrink the box (m) - object_interaction_time_window: 0.5 # maximum time offset for counting a spatial overlap as interaction (s) - object_velocity_reduction_step: 0.1 # velocity decrement per object-avoidance iteration (m/s) - object_velocity_release_step: 0.5 # maximum velocity increase per cycle after hysteresis cleared object conflicts (m/s) - object_standstill_speed_threshold: 0.2 # publish standstill if object avoidance would require a lower speed cap (m/s) - object_velocity_release_hysteresis_cycles: 3 # number of conflict-free cycles required before increasing the remembered object speed cap - publish_object_interaction_markers: True # publish RViz markers for the conflict explaining the final speed reduction - - #### lane change parameters - lane_change_distance_factor: 6.0 # factor multiplied with the current velocity to determine the lane change distance (m) - lane_change_min_distance_factor: 2.0 # factor multiplied with the vehicle length to determine the minimum lane change distance (m) - - #### diagnostic parameters - diagnostic_updater: - period: 1.0 - use_fqn: false - topic_diagnostics: - ego_data: - min_frequency: 45.45 # 22ms - max_frequency: 55.55 # 18ms - min_acceptable_timestamp_delta: 0.0 - max_acceptable_timestamp_delta: 0.002 - object_list: - min_frequency: 9.09 # 110ms - max_frequency: 11.11 # 90ms - min_acceptable_timestamp_delta: 0.0 - max_acceptable_timestamp_delta: 0.01 - route: - min_frequency: 18.18 # 55ms - max_frequency: 22.22 # 45ms - min_acceptable_timestamp_delta: 0.0 - max_acceptable_timestamp_delta: 0.005 - grid_map: - min_frequency: 9.09 # 110ms - max_frequency: 11.11 # 90ms - min_acceptable_timestamp_delta: 0.0 - max_acceptable_timestamp_delta: 0.01 - diagnosed_publishers: - trajectory: - min_frequency: 9.09 # 110ms - max_frequency: 11.11 # 90ms - min_acceptable_timestamp_delta: 0.0 - max_acceptable_timestamp_delta: 0.01 \ No newline at end of file diff --git a/deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl b/deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl deleted file mode 100644 index ac43831..0000000 --- a/deployments/generated/openadstack/planning/simple_planner/values.yaml.gotmpl +++ /dev/null @@ -1,45 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - |- - ros2 launch simple_planner simple_planner.launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - trace:=${TRACE} \ - ego_data_topic:=${EGO_DATA_TOPIC} \ - object_list_topic:=${OBJECT_LIST_TOPIC} \ - route_topic:=${ROUTE_TOPIC} \ - grid_map_topic:=${GRID_MAP_TOPIC} \ - trajectory_topic:=${TRAJECTORY_TOPIC} \ - object_interaction_markers_topic:=${OBJECT_INTERACTION_MARKERS_TOPIC} \ - left_turn_indicator_service:=${LEFT_TURN_INDICATOR_SERVICE} \ - right_turn_indicator_service:=${RIGHT_TURN_INDICATOR_SERVICE} \ - hazard_lights_service:=${HAZARD_LIGHTS_SERVICE} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /planning - EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list - ROUTE_TOPIC: /planning/lanelet2_route_planning/route - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - TRACE: {{ (default "false" (env "TRACE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/planning/trajectory_optimization/params.yml b/deployments/generated/openadstack/planning/trajectory_optimization/params.yml deleted file mode 100644 index 5cf9e31..0000000 --- a/deployments/generated/openadstack/planning/trajectory_optimization/params.yml +++ /dev/null @@ -1,49 +0,0 @@ -/**: - ros__parameters: - ### ROS node parameters - vehicle_frame_id: base_link # Frame ID of local vehicle frame (the ocp is defined in this frame) - trajectory_frame_id: base_link # Frame ID of output trajectory - fixed_over_time_frame_id: map # Frame ID of frame that is fixed over time for finding temporal transforms - ego_data_timeout: 1.0 # Time after which a received ego vehicle data is considered invalid [s]. Optimization will not be run if ego data is invalid. - optimization_frequency: 10.0 # frequency of the optimization loop [Hz] - standstill_threshold: 0.3 # threshold for standstill detection [m/s]. If all state velocities are below this threshold, publish standstill trajectory - high_level_stabilization: False # init first trajectory point with: current EgoData (True); interpolation of last trajectory -> bi-level (False) - consider_objects: 2 # consider objects in optimization: 0 = no, 1 = static (no prediction), 2 = dynamic (with prediction) - min_prediction_probability: 0.0 # consider only predictions with probability > this threshold - consider_boundaries: 3 # consider route boundaries in optimization: 0 = no, 1 = suggested lane, 2 = including adjacent, 3 = drivable space - verbose: False # print debug infromation and solver statistics - performance_logging: False # write one CSV record for each completed solver run - debug_visualization: True # publish debug visualization markers (e.g. obstacle circles) - run_as_callback: False # run OCP once for each received reference trajectory (true) or on a timer (false) - - #### thresholds for bi-level stabilization - bi_level_dV: 2.0 # maximum v difference before bi-level stabilization hits [m/s] - bi_level_dY: 0.3 # maximum y-offset before bi-level stabilization hits [m] - bi_level_dYaw: 89.0 # maximum yaw difference before bi-level stabilization hits [degree] - - ### general parameters defining the ocp - model_name: 'karl' # name of the acados model - optimization_horizon: 5.0 # optimization horizon [s] (also used as build parameter in OCP) - n_shots: 50 # number of shooting intervals in optimization horizon (also used as build parameter in OCP) - - #### cost weights - cost_weights: - - 0.1 # dlat (0) - - 0.0 # psi (1) (considered if RWS model is used) - - 0.5 # overspeed (2) - - 0.4 # underspeed (3) - - 0.15 # a_lat (4) - - 0.15 # a_lon_pos (5) - - 0.1 # a_lon_neg (6) - - 0.2 # j_lat (7) - - 0.1 # j_lon_pos (8) - - 0.1 # j_lon_neg (9) - - 0.1 # alpha (10) - - 3.0 # endYaw (11) - dynamic_weight: 1.0 # base for exponential weight - - # other cost params - thw: 2.0 # time headway [s] - d_min_obstacle_long: 1.0 # minimum distance to keep to obstacles in longitudinal direction [m] - d_min_obstacle_lat: 0.1 # minimum distance to keep to obstacles in lateral direction [m] - d_min_boundary_lat: -0.5 # minimum distance to keep to boundaries in lateral direction [m] \ No newline at end of file diff --git a/deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl b/deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl deleted file mode 100644 index 8a45f9c..0000000 --- a/deployments/generated/openadstack/planning/trajectory_optimization/values.yaml.gotmpl +++ /dev/null @@ -1,49 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - args: - - /bin/bash - - -ic - - |- - ros2 launch trajectory_optimization trajectory_optimization.launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - ros_tracing:=${ROS_TRACING} \ - driving_mode:=${DRIVING_MODE} \ - ego_data_topic:=${EGO_DATA_TOPIC} \ - object_list_topic:=${OBJECT_LIST_TOPIC} \ - reference_trajectory_topic:=${REFERENCE_TRAJECTORY_TOPIC} \ - route_topic:=${ROUTE_TOPIC} \ - trajectory_topic:=${TRAJECTORY_TOPIC} \ - boundary_marker_topic:=${BOUNDARY_MARKER_TOPIC} \ - ego_circles_topic:=${EGO_CIRCLES_TOPIC} \ - object_circles_topic:=${OBJECT_CIRCLES_TOPIC} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /planning - EGO_DATA_TOPIC: /localization/ego_state_estimation/ego_data - OBJECT_LIST_TOPIC: /understanding/lanelet2_object_list_prediction/object_list - REFERENCE_TRAJECTORY_TOPIC: /planning/simple_planner/trajectory - ROUTE_TOPIC: /planning/lanelet2_route_planning/route - EGO_CIRCLES_TOPIC: ~/visualization/ego_circles - OBJECT_CIRCLES_TOPIC: ~/visualization/object_circles - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - ROS_TRACING: {{ (default "false" (env "ROS_TRACING")) | quote }} - DRIVING_MODE: {{ (default "ackermann" (env "DRIVING_MODE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl deleted file mode 100644 index 0188d80..0000000 --- a/deployments/generated/openadstack/understanding/autoware_multi_object_tracker/values.yaml.gotmpl +++ /dev/null @@ -1,37 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /understanding - INPUT_DETECTION01_OBJECTS: /perception/point_cloud_object_detection/object_list - OUTPUT_OBJECTS: ~/object_list - OUTPUT_MERGED_OBJECTS: ~/merged_object_list - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - INPUT_DETECTION01_CHANNEL: untracked_objects - INPUT_DETECTION02_CHANNEL: {{ (default "none" (env "INPUT_DETECTION02_CHANNEL")) | quote }} - INPUT_DETECTION03_CHANNEL: {{ (default "none" (env "INPUT_DETECTION03_CHANNEL")) | quote }} - INPUT_DETECTION04_CHANNEL: {{ (default "none" (env "INPUT_DETECTION04_CHANNEL")) | quote }} - INPUT_DETECTION05_CHANNEL: {{ (default "none" (env "INPUT_DETECTION05_CHANNEL")) | quote }} - INPUT_DETECTION06_CHANNEL: {{ (default "none" (env "INPUT_DETECTION06_CHANNEL")) | quote }} - INPUT_DETECTION07_CHANNEL: {{ (default "none" (env "INPUT_DETECTION07_CHANNEL")) | quote }} - INPUT_DETECTION08_CHANNEL: {{ (default "none" (env "INPUT_DETECTION08_CHANNEL")) | quote }} - INPUT_DETECTION09_CHANNEL: {{ (default "none" (env "INPUT_DETECTION09_CHANNEL")) | quote }} - INPUT_DETECTION10_CHANNEL: {{ (default "none" (env "INPUT_DETECTION10_CHANNEL")) | quote }} - INPUT_DETECTION11_CHANNEL: {{ (default "none" (env "INPUT_DETECTION11_CHANNEL")) | quote }} - INPUT_DETECTION12_CHANNEL: {{ (default "none" (env "INPUT_DETECTION12_CHANNEL")) | quote }} - TRACKER_SETTING_PATH: {{ (default "" (env "TRACKER_SETTING_PATH")) | quote }} - DATA_ASSOCIATION_MATRIX_PATH: {{ (default "" (env "DATA_ASSOCIATION_MATRIX_PATH")) | quote }} - INPUT_CHANNELS_PATH: {{ (default "" (env "INPUT_CHANNELS_PATH")) | quote }} - PUBLISH_MERGED_OBJECTS: {{ (default "false" (env "PUBLISH_MERGED_OBJECTS")) | quote }} - EGO_SOURCE: {{ (default "tf" (env "EGO_SOURCE")) | quote }} - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml deleted file mode 100644 index 7308f04..0000000 --- a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/params.yml +++ /dev/null @@ -1,8 +0,0 @@ -/**/*: - ros__parameters: - ll2_map_server_name: /localization/lanelet2_map_server - lanelet_match_max_distance_m: 0.2 - lanelet_match_max_yaw_diff_rad: 1.047197551 - prediction_horizon_s: 10.0 - prediction_sample_interval_s: 0.5 - unmatched_object_prediction_mode: static \ No newline at end of file diff --git a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl deleted file mode 100644 index 406d6f9..0000000 --- a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-no-perception/values.yaml.gotmpl +++ /dev/null @@ -1,35 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: lanelet2-object-list-prediction-no-perception - args: - - /bin/bash - - -ic - - |- - ros2 launch lanelet2_object_list_prediction lanelet2_object_list_prediction_launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ - object_list_topic:=${OBJECT_LIST_TOPIC} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /understanding - TRACKED_OBJECT_LIST_TOPIC: /simulation/object_list - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 diff --git a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml deleted file mode 100644 index 7308f04..0000000 --- a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/params.yml +++ /dev/null @@ -1,8 +0,0 @@ -/**/*: - ros__parameters: - ll2_map_server_name: /localization/lanelet2_map_server - lanelet_match_max_distance_m: 0.2 - lanelet_match_max_yaw_diff_rad: 1.047197551 - prediction_horizon_s: 10.0 - prediction_sample_interval_s: 0.5 - unmatched_object_prediction_mode: static \ No newline at end of file diff --git a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl b/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl deleted file mode 100644 index 5ca2fd5..0000000 --- a/deployments/generated/openadstack/understanding/lanelet2_object_list_prediction/lanelet2-object-list-prediction-perception/values.yaml.gotmpl +++ /dev/null @@ -1,35 +0,0 @@ -openadservice: - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} -{{- if env "NODE" }} - nodeSelector: - kubernetes.io/hostname: {{ env "NODE" | quote }} -{{- end }} - name: lanelet2-object-list-prediction-perception - args: - - /bin/bash - - -ic - - |- - ros2 launch lanelet2_object_list_prediction lanelet2_object_list_prediction_launch.py \ - namespace:=${NAMESPACE} \ - name:=${NAME} \ - log_level:=${LOG_LEVEL} \ - use_sim_time:=${USE_SIM_TIME} \ - params:=${PARAMS} \ - tracked_object_list_topic:=${TRACKED_OBJECT_LIST_TOPIC} \ - object_list_topic:=${OBJECT_LIST_TOPIC} - env: - ROS_DOMAIN_ID: {{ (default "0" (env "ROS_DOMAIN_ID")) | quote }} - NAMESPACE: /understanding - TRACKED_OBJECT_LIST_TOPIC: /understanding/autoware_multi_object_tracker/object_list - LOG_LEVEL: {{ (default "info" (env "LOG_LEVEL")) | quote }} - USE_SIM_TIME: {{ (default "false" (env "USE_SIM_TIME")) | quote }} - PARAMS: /params.yml - RMW_IMPLEMENTATION: rmw_zenoh_cpp - RUST_LOG: zenoh=warn - ZENOH_ROUTER_CHECK_ATTEMPTS: 0 - rosParamFileData: | -{{ readFile "params.yml" | indent 4 }} - rosParamFileMountPath: /params.yml - dependsOn: - - host: zenoh-router - port: 7447 From 31a62acc4f13f7a982d69cbbf0af7ef3985e476b Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 10:25:15 +0200 Subject: [PATCH 36/80] update deployment description --- .gitignore | 3 +- deployments/CMD.md | 121 ------------------------------------------ deployments/README.md | 61 +++++++++++++++++++++ 3 files changed, 63 insertions(+), 122 deletions(-) delete mode 100644 deployments/CMD.md create mode 100644 deployments/README.md diff --git a/.gitignore b/.gitignore index 2c8ebb4..e0339bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ distributed-testing-main-dynamic-helmfiles-simulation-platform -.runtime \ No newline at end of file +.runtime +deployments/generated/ \ No newline at end of file diff --git a/deployments/CMD.md b/deployments/CMD.md deleted file mode 100644 index 63d7f4d..0000000 --- a/deployments/CMD.md +++ /dev/null @@ -1,121 +0,0 @@ -# Helmfile commands - -Run these commands from the OpenADSim repository root. The root Helmfile runs addons first, then generated services. The chart map contains deployment-specific rules; the converter remains service-agnostic. - -Set `DEPLOYMENT_PREFIX=sim1` or `DEPLOYMENT_PREFIX=sim2` before a root Helmfile command. The add-on policy uses the same prefix as the generated services. - -Regenerate the supported Helmfile release universe. Host environment values -are evaluated when Helmfile runs and are not embedded during generation. GUI -and SUMO are not exported yet: - -```sh -./utils/compose-to-k8s/compose_to_helmfile.py \ - --chart-map deployments/chart-map.yaml \ - --output-dir deployments/generated \ - docker-compose.yml -``` - -Export only the profiles currently active through `COMPOSE_PROFILES`: - -```sh -./utils/compose-to-k8s/compose_to_helmfile.py \ - --active-profiles-only \ - --chart-map deployments/chart-map.yaml \ - --output-dir deployments/generated \ - docker-compose.yml -``` - -Generate the same complete release universe, but enable only `perception` by -default: - -```sh -./utils/compose-to-k8s/compose_to_helmfile.py \ - --profile perception \ - --chart-map deployments/chart-map.yaml \ - --output-dir deployments/generated \ - docker-compose.yml -``` - -Deploy or update the complete Helmfile (including the middleware bridge NetworkPolicy for this prefix): - -```sh -helmfile --file deployments/helmfile.yaml --namespace dev sync -``` - -Helmfile does not read `.env` itself. Load it into the current shell before -deployment when its `COMPOSE_PROFILES` value should control the enabled -releases: - -```sh -set -a -. ./.env -set +a -helmfile --file deployments/helmfile.yaml --namespace dev sync -``` - -Alternatively, export only the profile selection for one deployment: - -```sh -export COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning -helmfile --file deployments/helmfile.yaml --namespace dev sync -``` - -Deploy or update only the RViz component: - -```sh -export COMPOSE_PROFILES=carla -helmfile --file deployments/helmfile.yaml --namespace dev \ - --selector name=zenoh-router \ - --selector name=rviz-carla \ - sync -``` - -## Test a local OpenADService base chart - -Regenerate the Helmfile and service values first if Compose or the converter -changed. Changes to the local base chart alone do not require this step: - -```sh -python3 utils/compose-to-k8s/compose_to_helmfile.py \ - --chart-map deployments/chart-map.yaml \ - --output-dir deployments/generated \ - docker-compose.yml -``` - -Prepare temporary copies of all parent charts with the local OpenADService -dependency. The script downloads the published parent charts, uses the local -Zenoh parent chart, and writes an overlay under the ignored -`deployments/generated/.runtime` directory. It prints the overlay path: - -```sh -python3 deployments/prepare_local_openadservice.py \ - --base-chart /work/geller/openads-project/openads-helm/charts/openadservice -``` - -`--base-chart` is optional for this repository layout. Use `--helmfile` to -prepare a different source Helmfile. Profile selection does not limit which -parent charts the script downloads; it controls releases when Helmfile runs. - -Load deployment settings and use the printed overlay path. With a prefix, -set `CARLA_HOST` explicitly to the prefixed service name: its default is -`carla-server`, while `dependsOn` waits for the prefixed local service. - -```sh -set -a -. ./.env -set +a -export DEPLOYMENT_PREFIX=sim1 -export CARLA_HOST=${DEPLOYMENT_PREFIX}-carla-server -export CARLA_PORT=2000 -export NODE=i2200043.ika.rwth-aachen.de -export OPENADSIM_PATH=/work/geller/openads-project/openadsim-k8s # absolute checkout path on the selected node - -helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev sync -helmfile --file deployments/generated/.runtime/openadservice-1.2.0/deployment-helmfile.yaml --namespace dev destroy -``` - -Rerun preparation after changing the source Helmfile, the local base chart, -or a parent chart reference. Changes only to service values take effect on the -next `template` or `sync`. `OPENADSIM_PATH` must be the absolute repository path on the selected Kubernetes node. Preparation alone does not deploy anything. - -The `DEPLOYMENT_PREFIX` must be set for each simulation stack. Run the root Helmfile once with `sim1` and once with `sim2`; each run creates its own middleware bridge policy. The add-on chart lives in `deployments/addons/` and is not regenerated by Compose conversion. diff --git a/deployments/README.md b/deployments/README.md new file mode 100644 index 0000000..491a62b --- /dev/null +++ b/deployments/README.md @@ -0,0 +1,61 @@ +# Helmfile deployment + +This directory contains the OpenADSim-specific inputs and manually maintained additions for the generic [Helmfile generator](https://github.com/openads-project/openads-helm/tree/main/utils/helmfile-generator). + +## Layout + +- `helmfile.yaml` is the entrypoint. It loads the manual add-ons before the generated services. +- `addons/` contains the middleware bridge NetworkPolicy and is never overwritten by the generator. +- `chart-map.yaml` contains OpenADSim-specific chart references and conversion rules. +- `generated/` is replaceable generator output. It is ignored by Git and must not be committed. + +## CI + +The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployments/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, and packages the complete `deployments` directory. + +Successful runs provide a seven-day Actions artifact. Builds from the default branch and semantic-version tags are additionally published as an OCI artifact. + +## Local generation and validation + +Use a sibling checkout of `openads-helm`, or point `OPENADS_HELM_DIR` at another checkout: + +```sh +export OPENADS_HELM_DIR=../openads-helm + +python3 "${OPENADS_HELM_DIR}/utils/helmfile-generator/helmfile_generator.py" \ + docker-compose.yml \ + --env-file .env \ + --chart-map deployments/chart-map.yaml \ + --output-dir deployments/generated +``` + +Load the runtime environment before validating or deploying. `OPENADSIM_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. + +```sh +set -a +. ./.env +set +a +export OPENADSIM_PATH="$(pwd)" + +helmfile --file deployments/helmfile.yaml build +helmfile --file deployments/helmfile.yaml template --concurrency 1 +``` + +`DEPLOYMENT_PREFIX` is optional for a single stack. Set it when multiple stacks share a namespace: + +```sh +export DEPLOYMENT_PREFIX=sim1 +helmfile --file deployments/helmfile.yaml --namespace dev sync +``` + +## Temporary workaround: test a local OpenADService chart + +`prepare_local_openadservice.py` rebuilds downloaded parent charts against a local `openadservice` base chart. This is a temporary development workaround and requires `deployments/generated` to exist first. + +With the standard sibling repository layout, run: + +```sh +python3 deployments/prepare_local_openadservice.py +``` + +For another checkout, pass `--base-chart /absolute/path/to/openads-helm/charts/openadservice`. The script prints a temporary root Helmfile below `deployments/generated/.runtime/`; use that path for `helmfile template`, `sync`, or `destroy`. Regenerate the overlay after changing the generated Helmfile, a parent chart reference, or the local base chart. From 2b01159c81dcbd77c5909a1a55ff04412ffe3ab2 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 10:56:27 +0200 Subject: [PATCH 37/80] rename deployment folder --- .github/workflows/helmfile.yml | 8 ++++---- .gitignore | 2 +- {deployments => deployment}/README.md | 18 +++++++++--------- .../Chart.yaml | 0 .../templates/networkpolicy.yaml | 0 .../values.yaml | 0 .../addons/helmfile.yaml | 0 .../addons/values.yaml.gotmpl | 0 {deployments => deployment}/chart-map.yaml | 0 {deployments => deployment}/helmfile.yaml | 0 .../prepare_local_openadservice.py | 0 11 files changed, 14 insertions(+), 14 deletions(-) rename {deployments => deployment}/README.md (72%) rename {deployments => deployment}/addons/charts/middleware-bridge-network-policy/Chart.yaml (100%) rename {deployments => deployment}/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml (100%) rename {deployments => deployment}/addons/charts/middleware-bridge-network-policy/values.yaml (100%) rename {deployments => deployment}/addons/helmfile.yaml (100%) rename {deployments => deployment}/addons/values.yaml.gotmpl (100%) rename {deployments => deployment}/chart-map.yaml (100%) rename {deployments => deployment}/helmfile.yaml (100%) rename {deployments => deployment}/prepare_local_openadservice.py (100%) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 787d406..7b66f71 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -23,10 +23,10 @@ jobs: with: compose-file: docker-compose.yml env-file: .env - chart-map: deployments/chart-map.yaml + chart-map: deployment/chart-map.yaml profiles: carla,traffic,automated-testing,no-perception,planning active-profiles-only: false - output-dir: deployments/generated - helmfile-entrypoint: deployments/helmfile.yaml - bundle-dir: deployments + output-dir: deployment/generated + helmfile-entrypoint: deployment/helmfile.yaml + bundle-dir: deployment artifact-name: openadsim-helmfile diff --git a/.gitignore b/.gitignore index e0339bf..809c950 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ distributed-testing-main-dynamic-helmfiles-simulation-platform .runtime -deployments/generated/ \ No newline at end of file +deployment/generated/ diff --git a/deployments/README.md b/deployment/README.md similarity index 72% rename from deployments/README.md rename to deployment/README.md index 491a62b..56c7657 100644 --- a/deployments/README.md +++ b/deployment/README.md @@ -11,7 +11,7 @@ This directory contains the OpenADSim-specific inputs and manually maintained ad ## CI -The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployments/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, and packages the complete `deployments` directory. +The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployment/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, and packages the complete `deployment` directory. Successful runs provide a seven-day Actions artifact. Builds from the default branch and semantic-version tags are additionally published as an OCI artifact. @@ -25,8 +25,8 @@ export OPENADS_HELM_DIR=../openads-helm python3 "${OPENADS_HELM_DIR}/utils/helmfile-generator/helmfile_generator.py" \ docker-compose.yml \ --env-file .env \ - --chart-map deployments/chart-map.yaml \ - --output-dir deployments/generated + --chart-map deployment/chart-map.yaml \ + --output-dir deployment/generated ``` Load the runtime environment before validating or deploying. `OPENADSIM_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. @@ -37,25 +37,25 @@ set -a set +a export OPENADSIM_PATH="$(pwd)" -helmfile --file deployments/helmfile.yaml build -helmfile --file deployments/helmfile.yaml template --concurrency 1 +helmfile --file deployment/helmfile.yaml build +helmfile --file deployment/helmfile.yaml template --concurrency 1 ``` `DEPLOYMENT_PREFIX` is optional for a single stack. Set it when multiple stacks share a namespace: ```sh export DEPLOYMENT_PREFIX=sim1 -helmfile --file deployments/helmfile.yaml --namespace dev sync +helmfile --file deployment/helmfile.yaml --namespace dev sync ``` ## Temporary workaround: test a local OpenADService chart -`prepare_local_openadservice.py` rebuilds downloaded parent charts against a local `openadservice` base chart. This is a temporary development workaround and requires `deployments/generated` to exist first. +`prepare_local_openadservice.py` rebuilds downloaded parent charts against a local `openadservice` base chart. This is a temporary development workaround and requires `deployment/generated` to exist first. With the standard sibling repository layout, run: ```sh -python3 deployments/prepare_local_openadservice.py +python3 deployment/prepare_local_openadservice.py ``` -For another checkout, pass `--base-chart /absolute/path/to/openads-helm/charts/openadservice`. The script prints a temporary root Helmfile below `deployments/generated/.runtime/`; use that path for `helmfile template`, `sync`, or `destroy`. Regenerate the overlay after changing the generated Helmfile, a parent chart reference, or the local base chart. +For another checkout, pass `--base-chart /absolute/path/to/openads-helm/charts/openadservice`. The script prints a temporary root Helmfile below `deployment/generated/.runtime/`; use that path for `helmfile template`, `sync`, or `destroy`. Regenerate the overlay after changing the generated Helmfile, a parent chart reference, or the local base chart. diff --git a/deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml b/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml similarity index 100% rename from deployments/addons/charts/middleware-bridge-network-policy/Chart.yaml rename to deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml diff --git a/deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml b/deployment/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml similarity index 100% rename from deployments/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml rename to deployment/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml diff --git a/deployments/addons/charts/middleware-bridge-network-policy/values.yaml b/deployment/addons/charts/middleware-bridge-network-policy/values.yaml similarity index 100% rename from deployments/addons/charts/middleware-bridge-network-policy/values.yaml rename to deployment/addons/charts/middleware-bridge-network-policy/values.yaml diff --git a/deployments/addons/helmfile.yaml b/deployment/addons/helmfile.yaml similarity index 100% rename from deployments/addons/helmfile.yaml rename to deployment/addons/helmfile.yaml diff --git a/deployments/addons/values.yaml.gotmpl b/deployment/addons/values.yaml.gotmpl similarity index 100% rename from deployments/addons/values.yaml.gotmpl rename to deployment/addons/values.yaml.gotmpl diff --git a/deployments/chart-map.yaml b/deployment/chart-map.yaml similarity index 100% rename from deployments/chart-map.yaml rename to deployment/chart-map.yaml diff --git a/deployments/helmfile.yaml b/deployment/helmfile.yaml similarity index 100% rename from deployments/helmfile.yaml rename to deployment/helmfile.yaml diff --git a/deployments/prepare_local_openadservice.py b/deployment/prepare_local_openadservice.py similarity index 100% rename from deployments/prepare_local_openadservice.py rename to deployment/prepare_local_openadservice.py From 9c779e6affa61260b090e14a46289d6203bcdcbd Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 6 Oct 2026 13:11:57 +0200 Subject: [PATCH 38/80] use image mounts --- deployment/README.md | 9 ++++++++- deployment/chart-map.yaml | 11 ++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/deployment/README.md b/deployment/README.md index 56c7657..a911527 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -45,7 +45,14 @@ helmfile --file deployment/helmfile.yaml template --concurrency 1 ```sh export DEPLOYMENT_PREFIX=sim1 -helmfile --file deployment/helmfile.yaml --namespace dev sync +helmfile --file deployment/helmfile.yaml sync +``` + +`NODE` is optional for a single-node cluster. Set it when using a multi-node cluster: + +```sh +export NODE=i2200043.ika.rwth-aachen.de +helmfile --file deployment/helmfile.yaml sync ``` ## Temporary workaround: test a local OpenADService chart diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 4a82158..9e3b0d8 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -47,21 +47,14 @@ services: chart: oci://ghcr.io/openads-project/openads-helm/triton-server version: "26.05" - # these assets are currently extracted on the node for Kubernetes mounts. robot-state-publisher: chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring version: 26.9.4-main - values: - volumes: - - mountPath: /urdf - hostPath: .runtime/openads-assets-v1.0.0 + + # This asset is currently extracted on the node for a Kubernetes mount. localization.lanelet2-map-server: chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server version: 1.2.2-main - values: - volumes: - - mountPath: /data/maps - hostPath: .runtime/lanelet2-maps-v1.0.4 carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator From d1b8129d6107f510a317f739411e7991d9a3e43d Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Wed, 7 Oct 2026 17:11:55 +0200 Subject: [PATCH 39/80] include env file in bundle --- .github/workflows/helmfile.yml | 1 + deployment/README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 7b66f71..fb643af 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -23,6 +23,7 @@ jobs: with: compose-file: docker-compose.yml env-file: .env + include-env-file-in-bundle: true chart-map: deployment/chart-map.yaml profiles: carla,traffic,automated-testing,no-perception,planning active-profiles-only: false diff --git a/deployment/README.md b/deployment/README.md index a911527..43122a7 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -11,7 +11,7 @@ This directory contains the OpenADSim-specific inputs and manually maintained ad ## CI -The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployment/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, and packages the complete `deployment` directory. +The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployment/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, copies the repository-root `.env` into the ephemeral bundle, and packages the complete `deployment` directory. The source tree keeps only the root `.env`; the copy exists only in the CI artifact. Successful runs provide a seven-day Actions artifact. Builds from the default branch and semantic-version tags are additionally published as an OCI artifact. @@ -29,7 +29,7 @@ python3 "${OPENADS_HELM_DIR}/utils/helmfile-generator/helmfile_generator.py" \ --output-dir deployment/generated ``` -Load the runtime environment before validating or deploying. `OPENADSIM_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. +Load the runtime environment before validating or deploying. In an extracted CI bundle, source the `.env` included at the archive root. `OPENADSIM_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. ```sh set -a From f5a83b47b1a52c8df0345c07d92367873ba9104b Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 12 Oct 2026 15:49:49 +0200 Subject: [PATCH 40/80] update charts for carla scenario runner and server --- deployment/chart-map.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 9e3b0d8..30e29b0 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -57,8 +57,8 @@ services: version: 1.2.2-main carla-server: - chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-simulator - version: 0.1.0-helm + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server + version: 0.10.0-1.1.1-fix-opendrive-sky dependency_port_env: CARLA_PORT values: # Compose publishes the port on the local host. In Kubernetes the @@ -96,10 +96,10 @@ services: carla-scenario-runner-ros-manual-testing: chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.0-helm + version: 0.10.0-1.1.1-filter-waypoints carla-scenario-runner-ros-automated-testing: chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.0-helm + version: 0.10.0-1.1.1-filter-waypoints value_replacements: args: - find: '--host carla-server' From 72ac725c725b679f100d29851cb7bc2c13ae488e Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Wed, 14 Oct 2026 17:49:16 +0200 Subject: [PATCH 41/80] add gitlab pipeline --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3371bdf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +include: + - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/helmfile/templates/helmfile-oci.yml # TODO: Change to main branch when merged + inputs: + compose-file: docker-compose.yml + env-file: .env + include-env-file-in-bundle: true + chart-map: deployment/chart-map.yaml + profiles: carla,traffic,automated-testing,no-perception,planning + active-profiles-only: false + output-dir: deployment/generated + helmfile-entrypoint: deployment/helmfile.yaml + bundle-dir: deployment + artifact-name: openadsim-helmfile + openads-helm-ref: feature/helmfile # TODO: Change to main branch when merged + - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/distributed-testing/openadscale@openads + inputs: + scenario-search-pattern: scenario.generator/**/*.xosc + +stages: + - build + - OpenADScale From 32ca72dd5fb2ff0de184fce80a5ca706b7c3add0 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Wed, 14 Oct 2026 17:54:09 +0200 Subject: [PATCH 42/80] update openadscale integration --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3371bdf..a0bca46 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,4 +18,4 @@ include: stages: - build - - OpenADScale + - testing From b864fee54868eea7c5588cf9260e28cbd9eb7a3d Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 15 Oct 2026 09:55:59 +0200 Subject: [PATCH 43/80] update image versions --- openadstack/monitoring/docker-compose.yml | 1 + .../autoware_multi_object_tracker/docker-compose.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openadstack/monitoring/docker-compose.yml b/openadstack/monitoring/docker-compose.yml index 533aa41..5eee109 100644 --- a/openadstack/monitoring/docker-compose.yml +++ b/openadstack/monitoring/docker-compose.yml @@ -6,6 +6,7 @@ services: extends: file: ../openadstack/monitoring/monitoring/docker-compose.yml service: monitoring.monitoring + image: ghcr.io/openads-project/monitoring:v26.9.4 command: bash -ic "rviz2 -d /conf.rviz --ros-args -p use_sim_time:=true" volumes: - ./volume:/docker-ros/ws/monitoring-volume diff --git a/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml b/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml index 94fd616..11a7a12 100644 --- a/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml +++ b/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml @@ -5,4 +5,5 @@ services: - perception extends: file: ../../openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml - service: understanding.autoware-multi-object-tracker \ No newline at end of file + service: understanding.autoware-multi-object-tracker + image: ghcr.io/thinking-cars/autoware_multi_object_tracker:v1.1.1 \ No newline at end of file From 392e92e7baa180365e6162b65a3b35381c8e6fa6 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 15 Oct 2026 09:57:22 +0200 Subject: [PATCH 44/80] simplify chart map --- deployment/chart-map.yaml | 155 +++++++++++++++++++++++++------------- 1 file changed, 101 insertions(+), 54 deletions(-) diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 30e29b0..02f6916 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -1,45 +1,53 @@ -# explicit chart and deployment overrides for the OpenADSim offloading workflow. -# normal OpenADServices use the generic GHCR image-to-chart convention. -chart_version_suffix: -main -values_root: openadservice -parameter_file: - yaml_marker: ros__parameters - value_key: rosParamFileData - mount_path_value_key: rosParamFileMountPath - output_filename: params.yml -excluded_profiles: - - gui - - sumo - - donotuse +# Chart map for the Helmfile generator (openads-helm/utils/helmfile-generator). +# +# Only what cannot be derived from docker-compose.yml belongs here. By default +# the image ghcr.io//:v is deployed with the release chart +# oci://ghcr.io///helm/ at version . An image tagged +# latest (or latest-slim, ...) uses the newest -main chart instead. -deployment: - name_prefix_env: DEPLOYMENT_PREFIX - node_env: NODE - host_path_root_env: OPENADSIM_PATH +# Environment variables read when Helmfile runs; each is optional at deploy time. +runtime_env: + # Prefix for release and resource names, so several stacks share a namespace. + name_prefix: DEPLOYMENT_PREFIX + # Kubernetes node (kubernetes.io/hostname) that runs all pods. + node: NODE + # Absolute path of this checkout on the node; root of all hostPath mounts. + host_path_root: OPENADSIM_PATH -ignored_environment: - - ZENOH_CONFIG_OVERRIDE -ignored_volume_names: - - DEFAULT_RMW_ZENOH_SESSION_CONFIG.json5 - - DEFAULT_RMW_ZENOH_ROUTER_CONFIG.json5 +# Services in these Compose profiles are not exported. +excluded_profiles: + - gui # local desktop GUI + - sumo # no Helm charts available yet + - donotuse # Compose templates and disabled services -# fixed bind sources are copied by default; dynamic sources stay host paths. -# keep writable shared mounts on their original host path. +# Deployment of bind mounts with a fixed source, per service and mount target. +# copy (default) The generator copies the file or directory into the bundle +# (small text files become a ConfigMap), so the deployment +# does not depend on a checkout on the node. +# hostPath The pod mounts ${OPENADSIM_PATH}/ from the node. +# Required when the container writes to the mount or several +# services must see the same files, since copies are per service. +# omit The mount is dropped. +# Sources built from variables (CUSTOM_OPENDRIVE, CUSTOM_LANELET, BAG_DIRECTORY) +# always stay hostPath and need no entry. volume_policies: + # Writable scenario directory shared with the host. carla-scenario-runner-ros-manual-testing: /scenarios: hostPath carla-scenario-runner-ros-automated-testing: /scenarios: hostPath - carla-ros-bridge: - /opendrive.xodr: hostPath - localization.lanelet2-map-server: - /lanelet/lanelet.osm: hostPath - monitoring.bag-recorder: - /tmp/rosbags: hostPath + # Shared with monitoring.bag-recorder, which writes its bags there. monitoring.rviz-carla: /docker-ros/ws/monitoring-volume: hostPath +# Per-service settings, keyed by full Compose service name. +# chart, version Explicit chart; replaces the default derivation. +# values Merged over the generated chart values. +# dependency_port_env Port variable dependent services wait for. +# value_replacements find/replace in generated list values (e.g. args). +# param_replacements find/replace in the mounted ROS parameter file. services: + # Third-party images; charts are maintained in openads-helm. zenoh-router: chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router version: 0.2.10 @@ -47,24 +55,18 @@ services: chart: oci://ghcr.io/openads-project/openads-helm/triton-server version: "26.05" - robot-state-publisher: - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4-main - - # This asset is currently extracted on the node for a Kubernetes mount. - localization.lanelet2-map-server: - chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server - version: 1.2.2-main - + # One carla-simulator image repository with variant tags (server-slim_v…, + # client_v…) and one chart per variant. carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server version: 0.10.0-1.1.1-fix-opendrive-sky + # Dependent services wait for the configured CARLA port, not the default. dependency_port_env: CARLA_PORT values: - # Compose publishes the port on the local host. In Kubernetes the - # chart's ClusterIP service is sufficient and must not get a fixed - # NodePort from the Compose default. + # Compose publishes the port on the host. In Kubernetes the ClusterIP + # service is sufficient and must not get a fixed NodePort. ports: [] + # CARLA uses CARLA_PORT and the two following ports. expose: - port: ${CARLA_PORT:-2000} targetPort: ${CARLA_PORT:-2000} @@ -75,6 +77,15 @@ services: - port: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' targetPort: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' protocol: TCP + carla-client: + chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client + version: 0.1.0-helm + + # One carla-ros-bridge image with one chart per ROS node; charts from + # feature branches. + carla-ros-bridge: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge + version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment carla-spawn-objects: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment @@ -84,16 +95,8 @@ services: carla-manual-control: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.1.0-carla-manual-control-update-deployment - carla-control-active-bridge: - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4 - ros-middleware-bridge: - chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge - version: 1.2.1-main - carla-ros-bridge: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge - version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment + # Nested image path carla-scenario-runner/ros. carla-scenario-runner-ros-manual-testing: chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.1-filter-waypoints @@ -101,13 +104,57 @@ services: chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.1-filter-waypoints value_replacements: + # The CARLA service name carries the deployment prefix in Kubernetes. args: - find: '--host carla-server' replace: '--host "${CARLA_HOST}"' + perception.point-cloud-object-detection: + # Temporary, see below: no release chart for v3.0.0. + chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection + version: 3.0.0-main + # Triton's service name carries the deployment prefix in Kubernetes. param_replacements: - find: 'triton-server:8001' replace: '{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001' - carla-client: - chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client - version: 0.1.0-helm + + # --- Temporary: default-branch charts for tagged images ---------------------- + # The release charts of these images are missing or built on openadservice + # < 1.2.0, which lacks namePrefix, nodeSelector and rmw. Remove an entry once + # the image is bumped to a release whose chart uses openadservice >= 1.2.0. + robot-state-publisher: &monitoring-main + chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring + version: 26.9.4-main + monitoring.bag-recorder: *monitoring-main + monitoring.rviz-carla: *monitoring-main + carla-control-active-bridge: *monitoring-main + carla.carla-converter: + chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter + version: 1.3.2-main + carla.simulation-adapter: + chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter + version: 1.4.2-main + ros-middleware-bridge: + chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge + version: 1.2.1-main + localization.lanelet2-map-server: + chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server + version: 1.2.3-main # 1.2.2-main still uses openadservice 1.0.0 + planning.simple-planner: + chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner + version: 1.4.0-main + planning.trajectory-optimization: + chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization + version: 1.4.0-main + understanding.lanelet2-object-list-prediction-no-perception: &object-list-prediction-main + chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction + version: 1.0.3-main # 1.0.2-main still uses openadservice 1.1.0 + understanding.lanelet2-object-list-prediction-perception: *object-list-prediction-main + # No release chart for these image versions, and no chart on openadservice + # >= 1.2.0 exists yet; namePrefix and NODE do not apply to them. + perception.point-cloud-fusion: + chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion + version: 1.4.0-main + planning.lanelet2-route-planning: + chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning + version: 1.2.0-main From b36bfcebdb265d37767576018e022a3d50c080a0 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 15 Oct 2026 10:04:18 +0200 Subject: [PATCH 45/80] make CARLA_PORT configurable --- carla-simulation/carla_ros_bridge/docker-compose.yml | 2 ++ carla-simulation/carla_server/.docker-compose.oci-overrides.yml | 2 ++ carla-simulation/carla_server/docker-compose.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/carla-simulation/carla_ros_bridge/docker-compose.yml b/carla-simulation/carla_ros_bridge/docker-compose.yml index 788fe9f..b3f68a0 100644 --- a/carla-simulation/carla_ros_bridge/docker-compose.yml +++ b/carla-simulation/carla_ros_bridge/docker-compose.yml @@ -23,7 +23,9 @@ services: # --- other ----- LOG_LEVEL: ${LOG_LEVEL:-info} USE_SIM_TIME: ${USE_SIM_TIME:-true} + # CARLA_HOST: carla-server CARLA_HOST: ${CARLA_HOST:-carla-server} + # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} TIMEOUT: 5000 PASSIVE: false diff --git a/carla-simulation/carla_server/.docker-compose.oci-overrides.yml b/carla-simulation/carla_server/.docker-compose.oci-overrides.yml index 5718dec..f829c39 100644 --- a/carla-simulation/carla_server/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_server/.docker-compose.oci-overrides.yml @@ -21,6 +21,8 @@ services: -RenderOffScreen \ --ros2 \ -carla-rpc-port=$${CARLA_PORT} + environment: + CARLA_PORT: ${CARLA_PORT:-2000} ipc: service:zenoh-router volumes: - ./DefaultEngine.ini:/workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini diff --git a/carla-simulation/carla_server/docker-compose.yml b/carla-simulation/carla_server/docker-compose.yml index 50c9c0b..318a328 100644 --- a/carla-simulation/carla_server/docker-compose.yml +++ b/carla-simulation/carla_server/docker-compose.yml @@ -21,6 +21,7 @@ services: retries: 3 image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.1 environment: + # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} # command: # - /bin/bash From 80a4713899a8bf4e95b502ab281530a43b6cf1df Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Thu, 15 Oct 2026 17:36:52 +0200 Subject: [PATCH 46/80] rename OPENADSIM_PATH to PROJECT_PATH and drop runtime_env from chart map --- deployment/README.md | 4 ++-- deployment/chart-map.yaml | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/deployment/README.md b/deployment/README.md index 43122a7..e7b62d2 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -29,13 +29,13 @@ python3 "${OPENADS_HELM_DIR}/utils/helmfile-generator/helmfile_generator.py" \ --output-dir deployment/generated ``` -Load the runtime environment before validating or deploying. In an extracted CI bundle, source the `.env` included at the archive root. `OPENADSIM_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. +Load the runtime environment before validating or deploying. In an extracted CI bundle, source the `.env` included at the archive root. `PROJECT_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. ```sh set -a . ./.env set +a -export OPENADSIM_PATH="$(pwd)" +export PROJECT_PATH="$(pwd)" helmfile --file deployment/helmfile.yaml build helmfile --file deployment/helmfile.yaml template --concurrency 1 diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 02f6916..9c6ff86 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -5,15 +5,6 @@ # oci://ghcr.io///helm/ at version . An image tagged # latest (or latest-slim, ...) uses the newest -main chart instead. -# Environment variables read when Helmfile runs; each is optional at deploy time. -runtime_env: - # Prefix for release and resource names, so several stacks share a namespace. - name_prefix: DEPLOYMENT_PREFIX - # Kubernetes node (kubernetes.io/hostname) that runs all pods. - node: NODE - # Absolute path of this checkout on the node; root of all hostPath mounts. - host_path_root: OPENADSIM_PATH - # Services in these Compose profiles are not exported. excluded_profiles: - gui # local desktop GUI @@ -24,7 +15,7 @@ excluded_profiles: # copy (default) The generator copies the file or directory into the bundle # (small text files become a ConfigMap), so the deployment # does not depend on a checkout on the node. -# hostPath The pod mounts ${OPENADSIM_PATH}/ from the node. +# hostPath The pod mounts ${PROJECT_PATH}/ from the node. # Required when the container writes to the mount or several # services must see the same files, since copies are per service. # omit The mount is dropped. From fe28daf86f15b9588884a20a53336e75d439c123 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 14:06:31 +0200 Subject: [PATCH 47/80] cleanup k8s setup --- .env | 8 +- .gitignore | 2 - TODO | 4 - deployment/README.md | 12 -- deployment/chart-map.yaml | 44 +++--- deployment/prepare_local_openadservice.py | 175 ---------------------- 6 files changed, 26 insertions(+), 219 deletions(-) delete mode 100644 TODO delete mode 100644 deployment/prepare_local_openadservice.py diff --git a/.env b/.env index a00ebb9..8643c23 100644 --- a/.env +++ b/.env @@ -1,21 +1,21 @@ ### Runtime Profiles -COMPOSE_PROFILES=carla,traffic,automated-testing,no-perception,planning +COMPOSE_PROFILES=carla,traffic,manual-testing,no-perception,planning ### Vehicle Configuration VEHICLE=karl SENSORS=global-sensors.json,karl-minimal.json ### Map Configuration -MAP=aldenhoven +MAP=campus CUSTOM_OPENDRIVE= CUSTOM_LANELET= -SPAWN_POINT=-1.0,-154.0,1.0,238.0 +SPAWN_POINT=50.787510,6.045938,260.0,90.0,wgs84 ORIGIN_LAT= ORIGIN_LON= LANELET_RELOAD=true ### Scenario Configuration -SCENARIO_FILE=scenarios/simple-scenario/atc_turn_left_intersecting_vehicle_from_left_turning_left.xosc +SCENARIO_FILE= ### Additional Options USE_SIM_TIME=true diff --git a/.gitignore b/.gitignore index 809c950..976968d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -distributed-testing-main-dynamic-helmfiles-simulation-platform -.runtime deployment/generated/ diff --git a/TODO b/TODO deleted file mode 100644 index 06339c7..0000000 --- a/TODO +++ /dev/null @@ -1,4 +0,0 @@ -- check prefix - zenoh router - carla-server -- remove gitignore \ No newline at end of file diff --git a/deployment/README.md b/deployment/README.md index e7b62d2..733cc37 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -54,15 +54,3 @@ helmfile --file deployment/helmfile.yaml sync export NODE=i2200043.ika.rwth-aachen.de helmfile --file deployment/helmfile.yaml sync ``` - -## Temporary workaround: test a local OpenADService chart - -`prepare_local_openadservice.py` rebuilds downloaded parent charts against a local `openadservice` base chart. This is a temporary development workaround and requires `deployment/generated` to exist first. - -With the standard sibling repository layout, run: - -```sh -python3 deployment/prepare_local_openadservice.py -``` - -For another checkout, pass `--base-chart /absolute/path/to/openads-helm/charts/openadservice`. The script prints a temporary root Helmfile below `deployment/generated/.runtime/`; use that path for `helmfile template`, `sync`, or `destroy`. Regenerate the overlay after changing the generated Helmfile, a parent chart reference, or the local base chart. diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 9c6ff86..d278df0 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -50,7 +50,7 @@ services: # client_v…) and one chart per variant. carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server - version: 0.10.0-1.1.1-fix-opendrive-sky + version: 0.10.0-1.1.1 # Dependent services wait for the configured CARLA port, not the default. dependency_port_env: CARLA_PORT values: @@ -70,22 +70,7 @@ services: protocol: TCP carla-client: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client - version: 0.1.0-helm - - # One carla-ros-bridge image with one chart per ROS node; charts from - # feature branches. - carla-ros-bridge: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge - version: 0.10.0-1.1.0-carla-ros-bridge-update-deployment - carla-spawn-objects: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects - version: 0.10.0-1.1.0-carla-spawn-objects-update-deployment - carla-ackermann-control: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control - version: 0.10.0-1.1.0-carla-ackermann-control-update-deployment - carla-manual-control: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control - version: 0.10.0-1.1.0-carla-manual-control-update-deployment + version: 0.10.0-1.1.1 # Nested image path carla-scenario-runner/ros. carla-scenario-runner-ros-manual-testing: @@ -109,7 +94,7 @@ services: - find: 'triton-server:8001' replace: '{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001' - # --- Temporary: default-branch charts for tagged images ---------------------- + # --- TODO: default-branch charts until releases use openadservice >= 1.2.0 --- # The release charts of these images are missing or built on openadservice # < 1.2.0, which lacks namePrefix, nodeSelector and rmw. Remove an entry once # the image is bumped to a release whose chart uses openadservice >= 1.2.0. @@ -119,6 +104,19 @@ services: monitoring.bag-recorder: *monitoring-main monitoring.rviz-carla: *monitoring-main carla-control-active-bridge: *monitoring-main + # One carla-ros-bridge image with one chart per ROS node. + carla-ros-bridge: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge + version: 0.10.0-1.1.1-carla-ros-bridge-main + carla-spawn-objects: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects + version: 0.10.0-1.1.1-carla-spawn-objects-main + carla-ackermann-control: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control + version: 0.10.0-1.1.1-carla-ackermann-control-main + carla-manual-control: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control + version: 0.10.0-1.1.1-carla-manual-control-main carla.carla-converter: chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter version: 1.3.2-main @@ -141,11 +139,13 @@ services: chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction version: 1.0.3-main # 1.0.2-main still uses openadservice 1.1.0 understanding.lanelet2-object-list-prediction-perception: *object-list-prediction-main - # No release chart for these image versions, and no chart on openadservice - # >= 1.2.0 exists yet; namePrefix and NODE do not apply to them. + # Only the default-branch chart of a newer version uses openadservice 1.2.0 + # (1.4.0-main: 1.1.0, 1.5.0: 1.1.0). perception.point-cloud-fusion: chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion - version: 1.4.0-main + version: 1.5.0-main + # Only the default-branch chart of a newer version uses openadservice 1.2.0 + # (1.2.0-main: 1.0.0, 2.0.0: 1.1.0). planning.lanelet2-route-planning: chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning - version: 1.2.0-main + version: 2.0.0-main diff --git a/deployment/prepare_local_openadservice.py b/deployment/prepare_local_openadservice.py deleted file mode 100644 index 0a90779..0000000 --- a/deployment/prepare_local_openadservice.py +++ /dev/null @@ -1,175 +0,0 @@ -#!/usr/bin/env python3 -"""Rebuild fetched parent charts against a local openadservice chart.""" - -from __future__ import annotations - -import argparse -import shutil -import subprocess -from pathlib import Path -from typing import Any - -import yaml - - -def _chart_version(chart_dir: Path) -> str: - metadata = yaml.safe_load((chart_dir / "Chart.yaml").read_text(encoding="utf-8")) - version = metadata.get("version") if isinstance(metadata, dict) else None - if not isinstance(version, str) or not version: - raise RuntimeError(f"chart has no version: {chart_dir}") - return version - - -def _parent_chart(fetch_dir: Path, release_name: str) -> Path: - release_dir = fetch_dir / release_name - candidates = [ - chart_yaml.parent - for chart_yaml in release_dir.rglob("Chart.yaml") - if "charts" not in chart_yaml.relative_to(release_dir).parts - ] - if len(candidates) != 1: - raise RuntimeError( - f"expected one fetched parent chart for {release_name}, found {candidates}" - ) - return candidates[0] - - -def _fetch_parent_chart( - fetch_dir: Path, release_name: str, chart: str, version: str -) -> Path: - destination = fetch_dir / release_name - destination.mkdir(parents=True) - subprocess.run( - ["helm", "pull", chart, "--version", version, "--untar", "--untardir", str(destination)], - check=True, - ) - return _parent_chart(fetch_dir, release_name) - - -def _replace_dependency(parent_chart: Path, base_chart: Path, version: str) -> None: - chart_yaml = parent_chart / "Chart.yaml" - metadata = yaml.safe_load(chart_yaml.read_text(encoding="utf-8")) - dependencies = metadata.get("dependencies", []) - matches = [ - dependency - for dependency in dependencies - if isinstance(dependency, dict) and dependency.get("name") == "openadservice" - ] - if len(matches) != 1: - raise RuntimeError( - f"expected one openadservice dependency in {chart_yaml}, found {len(matches)}" - ) - - matches[0]["version"] = version - matches[0]["repository"] = f"file://{base_chart}" - chart_yaml.write_text(yaml.safe_dump(metadata, sort_keys=False), encoding="utf-8") - - (parent_chart / "Chart.lock").unlink(missing_ok=True) - bundled_dir = parent_chart / "charts" / "openadservice" - if bundled_dir.exists(): - shutil.rmtree(bundled_dir) - for bundled_archive in (parent_chart / "charts").glob("openadservice-*.tgz"): - bundled_archive.unlink() - - subprocess.run( - ["helm", "dependency", "update", str(parent_chart), "--skip-refresh"], - check=True, - ) - - -def _absolute_values_paths(document: dict[str, Any], source_dir: Path) -> None: - for environment in document.get("environments", {}).values(): - if not isinstance(environment, dict): - continue - environment["values"] = [ - str((source_dir / value).resolve()) if isinstance(value, str) else value - for value in environment.get("values", []) - ] - for release in document.get("releases", []): - release["values"] = [ - str((source_dir / value).resolve()) if isinstance(value, str) else value - for value in release.get("values", []) - ] - - -def prepare(state_file: Path, base_chart: Path) -> Path: - state_file = state_file.resolve() - base_chart = base_chart.resolve() - if not (base_chart / "Chart.yaml").is_file(): - raise RuntimeError(f"openadservice chart not found: {base_chart}") - - documents = list(yaml.safe_load_all(state_file.read_text(encoding="utf-8"))) - release_document = next( - document for document in documents - if isinstance(document, dict) and "releases" in document - ) - version = _chart_version(base_chart) - runtime_dir = state_file.parent / ".runtime" / f"openadservice-{version}" - fetch_dir = runtime_dir / "charts" - if runtime_dir.exists(): - shutil.rmtree(runtime_dir) - fetch_dir.mkdir(parents=True) - - for index, release in enumerate(release_document["releases"]): - chart_ref = release["chart"] - chart_key = f"release-{index:02d}" - if chart_ref.rsplit("/", 1)[-1] == "zenoh-router": - # The local Zenoh parent chart contains the 1.2.0-compatible - # ConfigMap naming; the published 0.2.10 parent does not. - local_parent = base_chart.parent / "zenoh-router" - if not (local_parent / "Chart.yaml").is_file(): - raise RuntimeError(f"local Zenoh parent chart not found: {local_parent}") - parent_chart = runtime_dir / "local-parent-charts" / chart_key - shutil.copytree(local_parent, parent_chart) - else: - parent_chart = _fetch_parent_chart( - fetch_dir, chart_key, chart_ref, str(release["version"]) - ) - _replace_dependency(parent_chart, base_chart, version) - release["chart"] = str(parent_chart) - release.pop("version", None) - release["skipDeps"] = True - - for document in documents: - if isinstance(document, dict): - _absolute_values_paths(document, state_file.parent) - - overlay_file = runtime_dir / "helmfile.yaml" - overlay_file.write_text( - "# generated temporary overlay; rerun prepare_local_openadservice.py to refresh\n" - + yaml.safe_dump_all(documents, sort_keys=False, explicit_start=True), - encoding="utf-8", - ) - deployment_file = runtime_dir / "deployment-helmfile.yaml" - addons_file = Path(__file__).resolve().parent / "addons" / "helmfile.yaml" - deployment_file.write_text( - yaml.safe_dump({"helmfiles": [ - {"path": str(addons_file)}, - {"path": str(overlay_file)}, - ]}, sort_keys=False), - encoding="utf-8", - ) - return deployment_file - - -def main() -> None: - script_dir = Path(__file__).resolve().parent - project_dir = script_dir.parents[1] - parser = argparse.ArgumentParser( - description="rebuild fetched parent charts with a local openadservice dependency" - ) - parser.add_argument( - "--helmfile", type=Path, default=script_dir / "generated" / "helmfile.yaml", - help="source Helmfile", - ) - parser.add_argument( - "--base-chart", type=Path, - default=project_dir / "openads-helm" / "charts" / "openadservice", - help="local openadservice chart", - ) - args = parser.parse_args() - print(prepare(args.helmfile, args.base_chart)) - - -if __name__ == "__main__": - main() From b4a069ee9a94713f543d730c1e89d51ae60a7f9e Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 14:13:31 +0200 Subject: [PATCH 48/80] fix readme --- deployment/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment/README.md b/deployment/README.md index 733cc37..cdd24b5 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -45,6 +45,7 @@ helmfile --file deployment/helmfile.yaml template --concurrency 1 ```sh export DEPLOYMENT_PREFIX=sim1 +export CARLA_HOST=sim1-carla-server helmfile --file deployment/helmfile.yaml sync ``` From 6da62f1e9edddbcd2af0e75bc3a6c712e15c5e11 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 18:11:39 +0200 Subject: [PATCH 49/80] simplify chart map --- deployment/chart-map.yaml | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index d278df0..99bcc57 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -15,27 +15,24 @@ excluded_profiles: # copy (default) The generator copies the file or directory into the bundle # (small text files become a ConfigMap), so the deployment # does not depend on a checkout on the node. -# hostPath The pod mounts ${PROJECT_PATH}/ from the node. +# bind The pod mounts ${PROJECT_PATH}/ from the node. # Required when the container writes to the mount or several # services must see the same files, since copies are per service. -# omit The mount is dropped. # Sources built from variables (CUSTOM_OPENDRIVE, CUSTOM_LANELET, BAG_DIRECTORY) # always stay hostPath and need no entry. volume_policies: # Writable scenario directory shared with the host. carla-scenario-runner-ros-manual-testing: - /scenarios: hostPath + /scenarios: bind carla-scenario-runner-ros-automated-testing: - /scenarios: hostPath + /scenarios: bind # Shared with monitoring.bag-recorder, which writes its bags there. monitoring.rviz-carla: - /docker-ros/ws/monitoring-volume: hostPath + /docker-ros/ws/monitoring-volume: bind # Per-service settings, keyed by full Compose service name. # chart, version Explicit chart; replaces the default derivation. # values Merged over the generated chart values. -# dependency_port_env Port variable dependent services wait for. -# value_replacements find/replace in generated list values (e.g. args). # param_replacements find/replace in the mounted ROS parameter file. services: # Third-party images; charts are maintained in openads-helm. @@ -51,22 +48,20 @@ services: carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server version: 0.10.0-1.1.1 - # Dependent services wait for the configured CARLA port, not the default. - dependency_port_env: CARLA_PORT values: # Compose publishes the port on the host. In Kubernetes the ClusterIP # service is sufficient and must not get a fixed NodePort. ports: [] - # CARLA uses CARLA_PORT and the two following ports. + # CARLA uses the fixed port 2000 and the two following ports. expose: - - port: ${CARLA_PORT:-2000} - targetPort: ${CARLA_PORT:-2000} + - port: 2000 + targetPort: 2000 protocol: TCP - - port: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }}' - targetPort: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 1 }}' + - port: 2001 + targetPort: 2001 protocol: TCP - - port: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' - targetPort: '{{ add ((default "2000" (env "CARLA_PORT")) | int) 2 }}' + - port: 2002 + targetPort: 2002 protocol: TCP carla-client: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client @@ -79,11 +74,6 @@ services: carla-scenario-runner-ros-automated-testing: chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.1-filter-waypoints - value_replacements: - # The CARLA service name carries the deployment prefix in Kubernetes. - args: - - find: '--host carla-server' - replace: '--host "${CARLA_HOST}"' perception.point-cloud-object-detection: # Temporary, see below: no release chart for v3.0.0. From 4300f6d8bcd7d0392553734bac9d872382834e6b Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 20:26:59 +0200 Subject: [PATCH 50/80] cleanup helmfile generation --- .github/workflows/helmfile.yml | 2 +- deployment/README.md | 5 +++-- deployment/chart-map.yaml | 7 +------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index fb643af..8722648 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -19,7 +19,7 @@ permissions: jobs: generate: name: Helmfile - uses: openads-project/openads-helm/.github/workflows/helmfile-oci.yml@feature/helmfile # TODO: Change to main branch when merged + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@feature/helmfile # TODO: Change to main branch when merged with: compose-file: docker-compose.yml env-file: .env diff --git a/deployment/README.md b/deployment/README.md index cdd24b5..6cfaf2f 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -1,6 +1,6 @@ # Helmfile deployment -This directory contains the OpenADSim-specific inputs and manually maintained additions for the generic [Helmfile generator](https://github.com/openads-project/openads-helm/tree/main/utils/helmfile-generator). +This directory contains the OpenADSim-specific inputs and manually maintained additions for the generic [Helmfile generator](https://github.com/openads-project/openads-helm/tree/main/utils/generate_helmfile_from_compose). ## Layout @@ -22,7 +22,7 @@ Use a sibling checkout of `openads-helm`, or point `OPENADS_HELM_DIR` at another ```sh export OPENADS_HELM_DIR=../openads-helm -python3 "${OPENADS_HELM_DIR}/utils/helmfile-generator/helmfile_generator.py" \ +python3 "${OPENADS_HELM_DIR}/utils/generate_helmfile_from_compose/scripts/generate_helmfile_from_compose.py" \ docker-compose.yml \ --env-file .env \ --chart-map deployment/chart-map.yaml \ @@ -46,6 +46,7 @@ helmfile --file deployment/helmfile.yaml template --concurrency 1 ```sh export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server +export TRITON_HOST=sim1-triton-server helmfile --file deployment/helmfile.yaml sync ``` diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 99bcc57..3fd6c80 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -1,4 +1,4 @@ -# Chart map for the Helmfile generator (openads-helm/utils/helmfile-generator). +# Chart map for the Helmfile generator (openads-helm/utils/generate_helmfile_from_compose). # # Only what cannot be derived from docker-compose.yml belongs here. By default # the image ghcr.io//:v is deployed with the release chart @@ -33,7 +33,6 @@ volume_policies: # Per-service settings, keyed by full Compose service name. # chart, version Explicit chart; replaces the default derivation. # values Merged over the generated chart values. -# param_replacements find/replace in the mounted ROS parameter file. services: # Third-party images; charts are maintained in openads-helm. zenoh-router: @@ -79,10 +78,6 @@ services: # Temporary, see below: no release chart for v3.0.0. chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection version: 3.0.0-main - # Triton's service name carries the deployment prefix in Kubernetes. - param_replacements: - - find: 'triton-server:8001' - replace: '{{ include "openadservice.prefixedHost" (dict "host" "triton-server" "namePrefix" .Values.namePrefix) }}:8001' # --- TODO: default-branch charts until releases use openadservice >= 1.2.0 --- # The release charts of these images are missing or built on openadservice From 053419d3995e7fe3e503e46edee55bcd8a2bc9da Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 20:27:37 +0200 Subject: [PATCH 51/80] temporary modify pcod service --- .../docker-compose.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/openadstack/perception/point_cloud_object_detection/docker-compose.yml b/openadstack/perception/point_cloud_object_detection/docker-compose.yml index e3087ad..6d907a8 100644 --- a/openadstack/perception/point_cloud_object_detection/docker-compose.yml +++ b/openadstack/perception/point_cloud_object_detection/docker-compose.yml @@ -4,12 +4,39 @@ services: extends: file: ../../openadstack/perception/point_cloud_object_detection/docker-compose.yml service: perception.point-cloud-object-detection + # TODO: temporary feature branch image and command with triton_server_url, + # remove once a release of point_cloud_object_detection includes it. + image: ghcr.io/openads-project/point_cloud_object_detection:latest-slim_update-launch-args_ci profiles: - perception depends_on: - triton-server environment: PARAMS: /params.yml + ROS_TRACING: ${ROS_TRACING:-false} + TRITON_SERVER_URL: ${TRITON_HOST:-triton-server}:8001 + command: + - /bin/bash + - -ic + - | + ros2 launch point_cloud_object_detection point_cloud_object_detection.launch.py \ + namespace:=$${NAMESPACE} \ + name:=$${NAME} \ + log_level:=$${LOG_LEVEL} \ + use_sim_time:=$${USE_SIM_TIME} \ + params:=$${PARAMS} \ + ros_tracing:=$${ROS_TRACING} \ + triton_server_url:=$${TRITON_SERVER_URL} \ + point_cloud_topic:=$${POINT_CLOUD_TOPIC} \ + object_list_topic:=$${OBJECT_LIST_TOPIC} \ + no_detection_zone_topic:=$${NO_DETECTION_ZONE_TOPIC} \ + no_detection_zone_points_topic:=$${NO_DETECTION_ZONE_POINTS_TOPIC} \ + detection_area_topic:=$${DETECTION_AREA_TOPIC} \ + model_bounds_topic:=$${MODEL_BOUNDS_TOPIC} \ + density_grid_map_topic:=$${DENSITY_GRID_MAP_TOPIC} \ + dynamic_grid_map_topic:=$${DYNAMIC_GRID_MAP_TOPIC} \ + combined_grid_map_topic:=$${COMBINED_GRID_MAP_TOPIC} \ + static_grid_map_topic:=$${STATIC_GRID_MAP_TOPIC} volumes: - ./params.yml:/params.yml - type: image From bbf21bcdee0213904ac9fe5f97bf830e853bb972 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 19 Oct 2026 20:46:53 +0200 Subject: [PATCH 52/80] fix gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0bca46..63bf67c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ include: - - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/helmfile/templates/helmfile-oci.yml # TODO: Change to main branch when merged + - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/helmfile/.gitlab-ci/reusable-helmfile-oci.yml # TODO: Change to main branch when merged inputs: compose-file: docker-compose.yml env-file: .env From b669d9ecc140512061ea6f58bae1cb1416ea0218 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 20 Oct 2026 11:01:54 +0200 Subject: [PATCH 53/80] update ci helmfiles --- .github/workflows/helmfile.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 8722648..91f4ecb 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -19,7 +19,7 @@ permissions: jobs: generate: name: Helmfile - uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@feature/helmfile # TODO: Change to main branch when merged + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main with: compose-file: docker-compose.yml env-file: .env diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63bf67c..03d5e9e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ include: - - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/helmfile/.gitlab-ci/reusable-helmfile-oci.yml # TODO: Change to main branch when merged + - remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml inputs: compose-file: docker-compose.yml env-file: .env From cdece292a003c26127c75a1f0def8e10fb000c27 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Tue, 20 Oct 2026 11:20:36 +0200 Subject: [PATCH 54/80] fix gitlab pipeline --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03d5e9e..93aab4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,6 @@ include: helmfile-entrypoint: deployment/helmfile.yaml bundle-dir: deployment artifact-name: openadsim-helmfile - openads-helm-ref: feature/helmfile # TODO: Change to main branch when merged - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/distributed-testing/openadscale@openads inputs: scenario-search-pattern: scenario.generator/**/*.xosc From da8b8db4b88928e05f8b863cc09578c694566130 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 26 Oct 2026 12:12:07 +0100 Subject: [PATCH 55/80] cleanup --- deployment/README.md | 44 +++++------- deployment/addons/helmfile.yaml | 8 +++ deployment/chart-map.yaml | 70 +++---------------- openadstack/monitoring/docker-compose.yml | 1 - .../docker-compose.yml | 28 +------- .../docker-compose.yml | 3 +- 6 files changed, 38 insertions(+), 116 deletions(-) diff --git a/deployment/README.md b/deployment/README.md index 6cfaf2f..e34fedc 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -1,58 +1,48 @@ # Helmfile deployment -This directory contains the OpenADSim-specific inputs and manually maintained additions for the generic [Helmfile generator](https://github.com/openads-project/openads-helm/tree/main/utils/generate_helmfile_from_compose). +This directory contains the OpenADSim-specific inputs and manual additions for the [openads-helm generator](https://github.com/openads-project/openads-helm/tree/main/utils/generate_helmfile_from_compose), which converts `docker-compose.yml` into a Helmfile setup. ## Layout -- `helmfile.yaml` is the entrypoint. It loads the manual add-ons before the generated services. -- `addons/` contains the middleware bridge NetworkPolicy and is never overwritten by the generator. -- `chart-map.yaml` contains OpenADSim-specific chart references and conversion rules. -- `generated/` is replaceable generator output. It is ignored by Git and must not be committed. +- `helmfile.yaml` is the entrypoint. It loads the add-ons and the generated services. +- `chart-map.yaml` contains chart references and conversion rules that cannot be derived from Compose. +- `addons/` contains manually maintained releases: a NetworkPolicy that isolates the middleware bridge per stack, deployed with the `carla` profile. +- `generated/` is the generator output. It is ignored by Git and must not be committed. ## CI -The [`Helmfile` workflow](../.github/workflows/helmfile.yml) calls the reusable workflow from `openads-helm`. It generates `deployment/generated`, validates the root Helmfile with `helmfile build` and `helmfile template`, copies the repository-root `.env` into the ephemeral bundle, and packages the complete `deployment` directory. The source tree keeps only the root `.env`; the copy exists only in the CI artifact. +The [GitHub workflow](../.github/workflows/helmfile.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundle (kept as a CI artifact for seven days). Builds from the default branch and version tags are additionally published as an OCI artifact. -Successful runs provide a seven-day Actions artifact. Builds from the default branch and semantic-version tags are additionally published as an OCI artifact. +## Local usage -## Local generation and validation - -Use a sibling checkout of `openads-helm`, or point `OPENADS_HELM_DIR` at another checkout: +Generate the Helmfile with a sibling checkout of `openads-helm`: ```sh -export OPENADS_HELM_DIR=../openads-helm - -python3 "${OPENADS_HELM_DIR}/utils/generate_helmfile_from_compose/scripts/generate_helmfile_from_compose.py" \ +python3 ../openads-helm/utils/generate_helmfile_from_compose/scripts/generate_helmfile_from_compose.py \ docker-compose.yml \ --env-file .env \ --chart-map deployment/chart-map.yaml \ --output-dir deployment/generated ``` -Load the runtime environment before validating or deploying. In an extracted CI bundle, source the `.env` included at the archive root. `PROJECT_PATH` is required by services that use Kubernetes `hostPath` volumes. For deployment, it must point to the absolute checkout path on the selected Kubernetes node. +Load the runtime environment, then validate and deploy. `COMPOSE_PROFILES` selects the services as in Compose. `PROJECT_PATH` must be the absolute checkout path on the Kubernetes node, as it is used for `hostPath` volumes. ```sh -set -a -. ./.env -set +a +set -a; . ./.env; set +a export PROJECT_PATH="$(pwd)" -helmfile --file deployment/helmfile.yaml build helmfile --file deployment/helmfile.yaml template --concurrency 1 +helmfile --file deployment/helmfile.yaml sync ``` -`DEPLOYMENT_PREFIX` is optional for a single stack. Set it when multiple stacks share a namespace: +## Optional settings + +`NODE` pins all services to one node in a multi-node cluster. + +`DEPLOYMENT_PREFIX` separates several stacks in one namespace. The hosts of the prefixed services must then be set as well: ```sh export DEPLOYMENT_PREFIX=sim1 export CARLA_HOST=sim1-carla-server export TRITON_HOST=sim1-triton-server -helmfile --file deployment/helmfile.yaml sync -``` - -`NODE` is optional for a single-node cluster. Set it when using a multi-node cluster: - -```sh -export NODE=i2200043.ika.rwth-aachen.de -helmfile --file deployment/helmfile.yaml sync ``` diff --git a/deployment/addons/helmfile.yaml b/deployment/addons/helmfile.yaml index 19a971a..17a785c 100644 --- a/deployment/addons/helmfile.yaml +++ b/deployment/addons/helmfile.yaml @@ -1,5 +1,13 @@ +# Service selection from the generated Compose profiles. +environments: + default: + values: + - ../generated/environments/services.yaml.gotmpl +--- releases: - name: '{{ printf "%s-middleware-bridge-policy" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: charts/middleware-bridge-network-policy + # Deployed together with the ros-middleware-bridge (Compose profile carla). + condition: serviceEnabled.ros-middleware-bridge.enabled values: - values.yaml.gotmpl diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 3fd6c80..2717451 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -66,71 +66,23 @@ services: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.10.0-1.1.1 - # Nested image path carla-scenario-runner/ros. - carla-scenario-runner-ros-manual-testing: - chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.1-filter-waypoints - carla-scenario-runner-ros-automated-testing: - chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.1-filter-waypoints - - perception.point-cloud-object-detection: - # Temporary, see below: no release chart for v3.0.0. - chart: oci://ghcr.io/openads-project/point_cloud_object_detection/helm/point-cloud-object-detection - version: 3.0.0-main - - # --- TODO: default-branch charts until releases use openadservice >= 1.2.0 --- - # The release charts of these images are missing or built on openadservice - # < 1.2.0, which lacks namePrefix, nodeSelector and rmw. Remove an entry once - # the image is bumped to a release whose chart uses openadservice >= 1.2.0. - robot-state-publisher: &monitoring-main - chart: oci://ghcr.io/openads-project/monitoring/helm/monitoring - version: 26.9.4-main - monitoring.bag-recorder: *monitoring-main - monitoring.rviz-carla: *monitoring-main - carla-control-active-bridge: *monitoring-main # One carla-ros-bridge image with one chart per ROS node. carla-ros-bridge: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge - version: 0.10.0-1.1.1-carla-ros-bridge-main + version: 0.10.0-1.2.0-carla-ros-bridge carla-spawn-objects: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects - version: 0.10.0-1.1.1-carla-spawn-objects-main + version: 0.10.0-1.2.0-carla-spawn-objects carla-ackermann-control: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control - version: 0.10.0-1.1.1-carla-ackermann-control-main + version: 0.10.0-1.2.0-carla-ackermann-control carla-manual-control: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control - version: 0.10.0-1.1.1-carla-manual-control-main - carla.carla-converter: - chart: oci://ghcr.io/openads-project/carla_converter/helm/carla-converter - version: 1.3.2-main - carla.simulation-adapter: - chart: oci://ghcr.io/openads-project/simulation_adapter/helm/simulation-adapter - version: 1.4.2-main - ros-middleware-bridge: - chart: oci://ghcr.io/openads-project/ros_middleware_bridge/helm/ros-middleware-bridge - version: 1.2.1-main - localization.lanelet2-map-server: - chart: oci://ghcr.io/openads-project/lanelet2_map_server/helm/lanelet2-map-server - version: 1.2.3-main # 1.2.2-main still uses openadservice 1.0.0 - planning.simple-planner: - chart: oci://ghcr.io/openads-project/simple_planner/helm/simple-planner - version: 1.4.0-main - planning.trajectory-optimization: - chart: oci://ghcr.io/openads-project/trajectory_optimization/helm/trajectory-optimization - version: 1.4.0-main - understanding.lanelet2-object-list-prediction-no-perception: &object-list-prediction-main - chart: oci://ghcr.io/openads-project/lanelet2_object_list_prediction/helm/lanelet2-object-list-prediction - version: 1.0.3-main # 1.0.2-main still uses openadservice 1.1.0 - understanding.lanelet2-object-list-prediction-perception: *object-list-prediction-main - # Only the default-branch chart of a newer version uses openadservice 1.2.0 - # (1.4.0-main: 1.1.0, 1.5.0: 1.1.0). - perception.point-cloud-fusion: - chart: oci://ghcr.io/openads-project/point_cloud_fusion/helm/point-cloud-fusion - version: 1.5.0-main - # Only the default-branch chart of a newer version uses openadservice 1.2.0 - # (1.2.0-main: 1.0.0, 2.0.0: 1.1.0). - planning.lanelet2-route-planning: - chart: oci://ghcr.io/openads-project/lanelet2_route_planning/helm/lanelet2-route-planning - version: 2.0.0-main + version: 0.10.0-1.2.0-carla-manual-control + + # Nested image path carla-scenario-runner/ros. No release chart for + # 0.10.0-1.1.2 yet, so the default-branch chart is used. + carla-scenario-runner-ros-manual-testing: &scenario-runner + chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros + version: 0.10.0-1.1.2-main + carla-scenario-runner-ros-automated-testing: *scenario-runner diff --git a/openadstack/monitoring/docker-compose.yml b/openadstack/monitoring/docker-compose.yml index 5eee109..533aa41 100644 --- a/openadstack/monitoring/docker-compose.yml +++ b/openadstack/monitoring/docker-compose.yml @@ -6,7 +6,6 @@ services: extends: file: ../openadstack/monitoring/monitoring/docker-compose.yml service: monitoring.monitoring - image: ghcr.io/openads-project/monitoring:v26.9.4 command: bash -ic "rviz2 -d /conf.rviz --ros-args -p use_sim_time:=true" volumes: - ./volume:/docker-ros/ws/monitoring-volume diff --git a/openadstack/perception/point_cloud_object_detection/docker-compose.yml b/openadstack/perception/point_cloud_object_detection/docker-compose.yml index 6d907a8..ab3fc96 100644 --- a/openadstack/perception/point_cloud_object_detection/docker-compose.yml +++ b/openadstack/perception/point_cloud_object_detection/docker-compose.yml @@ -4,39 +4,13 @@ services: extends: file: ../../openadstack/perception/point_cloud_object_detection/docker-compose.yml service: perception.point-cloud-object-detection - # TODO: temporary feature branch image and command with triton_server_url, - # remove once a release of point_cloud_object_detection includes it. - image: ghcr.io/openads-project/point_cloud_object_detection:latest-slim_update-launch-args_ci profiles: - perception - depends_on: + depends_on: - triton-server environment: PARAMS: /params.yml - ROS_TRACING: ${ROS_TRACING:-false} TRITON_SERVER_URL: ${TRITON_HOST:-triton-server}:8001 - command: - - /bin/bash - - -ic - - | - ros2 launch point_cloud_object_detection point_cloud_object_detection.launch.py \ - namespace:=$${NAMESPACE} \ - name:=$${NAME} \ - log_level:=$${LOG_LEVEL} \ - use_sim_time:=$${USE_SIM_TIME} \ - params:=$${PARAMS} \ - ros_tracing:=$${ROS_TRACING} \ - triton_server_url:=$${TRITON_SERVER_URL} \ - point_cloud_topic:=$${POINT_CLOUD_TOPIC} \ - object_list_topic:=$${OBJECT_LIST_TOPIC} \ - no_detection_zone_topic:=$${NO_DETECTION_ZONE_TOPIC} \ - no_detection_zone_points_topic:=$${NO_DETECTION_ZONE_POINTS_TOPIC} \ - detection_area_topic:=$${DETECTION_AREA_TOPIC} \ - model_bounds_topic:=$${MODEL_BOUNDS_TOPIC} \ - density_grid_map_topic:=$${DENSITY_GRID_MAP_TOPIC} \ - dynamic_grid_map_topic:=$${DYNAMIC_GRID_MAP_TOPIC} \ - combined_grid_map_topic:=$${COMBINED_GRID_MAP_TOPIC} \ - static_grid_map_topic:=$${STATIC_GRID_MAP_TOPIC} volumes: - ./params.yml:/params.yml - type: image diff --git a/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml b/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml index 11a7a12..94fd616 100644 --- a/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml +++ b/openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml @@ -5,5 +5,4 @@ services: - perception extends: file: ../../openadstack/understanding/autoware_multi_object_tracker/docker-compose.yml - service: understanding.autoware-multi-object-tracker - image: ghcr.io/thinking-cars/autoware_multi_object_tracker:v1.1.1 \ No newline at end of file + service: understanding.autoware-multi-object-tracker \ No newline at end of file From 275d4e6240e3779674f2033c49609c33cc40b70d Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 26 Oct 2026 13:15:09 +0100 Subject: [PATCH 56/80] cleanup --- deployment/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/README.md b/deployment/README.md index e34fedc..5dfb25a 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -11,7 +11,7 @@ This directory contains the OpenADSim-specific inputs and manual additions for t ## CI -The [GitHub workflow](../.github/workflows/helmfile.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundle (kept as a CI artifact for seven days). Builds from the default branch and version tags are additionally published as an OCI artifact. +The [GitHub workflow](../.github/workflows/helmfile.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundled CI artifact. Builds from the default branch and version tags are additionally published as an OCI artifact. ## Local usage From 6ba45b6168ba1a8c4d07b56b67549b01a635a202 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 11:14:52 +0100 Subject: [PATCH 57/80] move volume policies to services --- deployment/chart-map.yaml | 52 ++++++++++++++------------------------- 1 file changed, 18 insertions(+), 34 deletions(-) diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 2717451..e91cdf9 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -11,28 +11,19 @@ excluded_profiles: - sumo # no Helm charts available yet - donotuse # Compose templates and disabled services -# Deployment of bind mounts with a fixed source, per service and mount target. -# copy (default) The generator copies the file or directory into the bundle -# (small text files become a ConfigMap), so the deployment -# does not depend on a checkout on the node. -# bind The pod mounts ${PROJECT_PATH}/ from the node. -# Required when the container writes to the mount or several -# services must see the same files, since copies are per service. -# Sources built from variables (CUSTOM_OPENDRIVE, CUSTOM_LANELET, BAG_DIRECTORY) -# always stay hostPath and need no entry. -volume_policies: - # Writable scenario directory shared with the host. - carla-scenario-runner-ros-manual-testing: - /scenarios: bind - carla-scenario-runner-ros-automated-testing: - /scenarios: bind - # Shared with monitoring.bag-recorder, which writes its bags there. - monitoring.rviz-carla: - /docker-ros/ws/monitoring-volume: bind - # Per-service settings, keyed by full Compose service name. # chart, version Explicit chart; replaces the default derivation. # values Merged over the generated chart values. +# port_policies Per published Compose port: hostPort (default) or nodePort. +# volume_policies Per mount target of a bind mount with a fixed source: +# copy (default) The generator copies the file or directory into the bundle +# (small text files become a ConfigMap), so the deployment +# does not depend on a checkout on the node. +# bind The pod mounts ${PROJECT_PATH}/ from the node. +# Required when the container writes to the mount or several +# services must see the same files, since copies are per service. +# Sources built from variables (CUSTOM_OPENDRIVE, CUSTOM_LANELET, +# BAG_DIRECTORY) always stay hostPath and need no entry. services: # Third-party images; charts are maintained in openads-helm. zenoh-router: @@ -47,21 +38,6 @@ services: carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server version: 0.10.0-1.1.1 - values: - # Compose publishes the port on the host. In Kubernetes the ClusterIP - # service is sufficient and must not get a fixed NodePort. - ports: [] - # CARLA uses the fixed port 2000 and the two following ports. - expose: - - port: 2000 - targetPort: 2000 - protocol: TCP - - port: 2001 - targetPort: 2001 - protocol: TCP - - port: 2002 - targetPort: 2002 - protocol: TCP carla-client: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.10.0-1.1.1 @@ -85,4 +61,12 @@ services: carla-scenario-runner-ros-manual-testing: &scenario-runner chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros version: 0.10.0-1.1.2-main + volume_policies: + # Writable scenario directory shared with the host. + /scenarios: bind carla-scenario-runner-ros-automated-testing: *scenario-runner + + monitoring.rviz-carla: + volume_policies: + # Shared with monitoring.bag-recorder, which writes its bags there. + /docker-ros/ws/monitoring-volume: bind From 6b3b21e2a3d9909b7c5962419c19085922cf5f1f Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 11:18:17 +0100 Subject: [PATCH 58/80] Update .github/workflows/helmfile.yml Co-authored-by: Lennart Reiher --- .github/workflows/helmfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 91f4ecb..0061fb2 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -1,4 +1,4 @@ -name: Helmfile +name: helmfile-oci on: push: From d873269d422b96267ff6eea103fcdad475d9e0b6 Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 11:19:49 +0100 Subject: [PATCH 59/80] Update .github/workflows/helmfile.yml Co-authored-by: Lennart Reiher --- .github/workflows/helmfile.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile.yml index 0061fb2..45d095c 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile.yml @@ -17,8 +17,7 @@ permissions: packages: write jobs: - generate: - name: Helmfile + helmfile-oci: uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main with: compose-file: docker-compose.yml From 17a6e8ca07f1111f39df17675b5ff14b07eca11f Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 11:20:47 +0100 Subject: [PATCH 60/80] Update deployment/addons/helmfile.yaml Co-authored-by: Lennart Reiher --- deployment/addons/helmfile.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment/addons/helmfile.yaml b/deployment/addons/helmfile.yaml index 17a785c..e073c4c 100644 --- a/deployment/addons/helmfile.yaml +++ b/deployment/addons/helmfile.yaml @@ -1,13 +1,12 @@ -# Service selection from the generated Compose profiles. environments: default: values: - ../generated/environments/services.yaml.gotmpl --- releases: + # NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments - name: '{{ printf "%s-middleware-bridge-policy" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' chart: charts/middleware-bridge-network-policy - # Deployed together with the ros-middleware-bridge (Compose profile carla). condition: serviceEnabled.ros-middleware-bridge.enabled values: - values.yaml.gotmpl From 37ecb7a174a065e0d0ad92301ccb2beabb00ce50 Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 11:21:18 +0100 Subject: [PATCH 61/80] Update deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml Co-authored-by: Lennart Reiher --- .../addons/charts/middleware-bridge-network-policy/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml b/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml index 69ed7d7..2456860 100644 --- a/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml +++ b/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: middleware-bridge-network-policy -description: Isolate one middleware bridge from other simulation stacks +description: NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments type: application version: 0.1.0 From 3453e94d1a1a1bf66891f71bf29eedd84bf05222 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 11:27:54 +0100 Subject: [PATCH 62/80] cleanup helfile --- .github/workflows/{helmfile.yml => helmfile-oci.yml} | 3 --- .gitlab-ci.yml | 3 --- deployment/README.md | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) rename .github/workflows/{helmfile.yml => helmfile-oci.yml} (88%) diff --git a/.github/workflows/helmfile.yml b/.github/workflows/helmfile-oci.yml similarity index 88% rename from .github/workflows/helmfile.yml rename to .github/workflows/helmfile-oci.yml index 45d095c..01b1399 100644 --- a/.github/workflows/helmfile.yml +++ b/.github/workflows/helmfile-oci.yml @@ -21,12 +21,9 @@ jobs: uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main with: compose-file: docker-compose.yml - env-file: .env include-env-file-in-bundle: true chart-map: deployment/chart-map.yaml profiles: carla,traffic,automated-testing,no-perception,planning - active-profiles-only: false output-dir: deployment/generated helmfile-entrypoint: deployment/helmfile.yaml bundle-dir: deployment - artifact-name: openadsim-helmfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 93aab4d..9a32db2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,15 +2,12 @@ include: - remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml inputs: compose-file: docker-compose.yml - env-file: .env include-env-file-in-bundle: true chart-map: deployment/chart-map.yaml profiles: carla,traffic,automated-testing,no-perception,planning - active-profiles-only: false output-dir: deployment/generated helmfile-entrypoint: deployment/helmfile.yaml bundle-dir: deployment - artifact-name: openadsim-helmfile - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/distributed-testing/openadscale@openads inputs: scenario-search-pattern: scenario.generator/**/*.xosc diff --git a/deployment/README.md b/deployment/README.md index 5dfb25a..b69cfeb 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -11,7 +11,7 @@ This directory contains the OpenADSim-specific inputs and manual additions for t ## CI -The [GitHub workflow](../.github/workflows/helmfile.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundled CI artifact. Builds from the default branch and version tags are additionally published as an OCI artifact. +The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundled CI artifact. Builds from the default branch and version tags are additionally published as an OCI artifact. ## Local usage From ac5c380e1281941c271a2ae7ecfe8094d419a0c5 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 11:29:34 +0100 Subject: [PATCH 63/80] rename middleware bridge network policy --- .../Chart.yaml | 2 +- .../templates/networkpolicy.yaml | 0 .../values.yaml | 0 deployment/addons/helmfile.yaml | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename deployment/addons/charts/{middleware-bridge-network-policy => ros-middleware-bridge-network-policy}/Chart.yaml (75%) rename deployment/addons/charts/{middleware-bridge-network-policy => ros-middleware-bridge-network-policy}/templates/networkpolicy.yaml (100%) rename deployment/addons/charts/{middleware-bridge-network-policy => ros-middleware-bridge-network-policy}/values.yaml (100%) diff --git a/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml b/deployment/addons/charts/ros-middleware-bridge-network-policy/Chart.yaml similarity index 75% rename from deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml rename to deployment/addons/charts/ros-middleware-bridge-network-policy/Chart.yaml index 2456860..c06dd69 100644 --- a/deployment/addons/charts/middleware-bridge-network-policy/Chart.yaml +++ b/deployment/addons/charts/ros-middleware-bridge-network-policy/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: middleware-bridge-network-policy +name: ros-middleware-bridge-network-policy description: NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments type: application version: 0.1.0 diff --git a/deployment/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml b/deployment/addons/charts/ros-middleware-bridge-network-policy/templates/networkpolicy.yaml similarity index 100% rename from deployment/addons/charts/middleware-bridge-network-policy/templates/networkpolicy.yaml rename to deployment/addons/charts/ros-middleware-bridge-network-policy/templates/networkpolicy.yaml diff --git a/deployment/addons/charts/middleware-bridge-network-policy/values.yaml b/deployment/addons/charts/ros-middleware-bridge-network-policy/values.yaml similarity index 100% rename from deployment/addons/charts/middleware-bridge-network-policy/values.yaml rename to deployment/addons/charts/ros-middleware-bridge-network-policy/values.yaml diff --git a/deployment/addons/helmfile.yaml b/deployment/addons/helmfile.yaml index e073c4c..6b5ec1a 100644 --- a/deployment/addons/helmfile.yaml +++ b/deployment/addons/helmfile.yaml @@ -6,7 +6,7 @@ environments: releases: # NetworkPolicy to isolate ros-middleware-bridges in concurrent deployments - name: '{{ printf "%s-middleware-bridge-policy" (env "DEPLOYMENT_PREFIX") | trimPrefix "-" }}' - chart: charts/middleware-bridge-network-policy + chart: charts/ros-middleware-bridge-network-policy condition: serviceEnabled.ros-middleware-bridge.enabled values: - values.yaml.gotmpl From a8432a4276d5afa80db063561e8ee4af296d89b8 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 11:29:59 +0100 Subject: [PATCH 64/80] move stage definition to top --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a32db2..d525144 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +stages: + - build + - testing + include: - remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml inputs: @@ -11,7 +15,3 @@ include: - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/distributed-testing/openadscale@openads inputs: scenario-search-pattern: scenario.generator/**/*.xosc - -stages: - - build - - testing From 97d9f5d39956c66a1c38ad3c25dc3855215b952a Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 11:50:18 +0100 Subject: [PATCH 65/80] cleanup scenario runner command --- .../carla_scenario_runner/.docker-compose.oci-overrides.yml | 2 -- carla-simulation/carla_scenario_runner/docker-compose.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml index b19683c..46d041c 100644 --- a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml @@ -47,9 +47,7 @@ services: use_sim_time:=$${USE_SIM_TIME} \ host:=$${CARLA_HOST} \ port:=$${CARLA_PORT} \ - role_name:=$${ROLE_NAME} \ scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ - wait_for_ego:=$${WAIT_FOR_EGO} \ scenarios_dir:=$${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: diff --git a/carla-simulation/carla_scenario_runner/docker-compose.yml b/carla-simulation/carla_scenario_runner/docker-compose.yml index 0a1c4a2..0766ffb 100644 --- a/carla-simulation/carla_scenario_runner/docker-compose.yml +++ b/carla-simulation/carla_scenario_runner/docker-compose.yml @@ -67,9 +67,7 @@ services: use_sim_time:=$${USE_SIM_TIME} \ host:=$${CARLA_HOST} \ port:=$${CARLA_PORT} \ - role_name:=$${ROLE_NAME} \ scenario_runner_path:=$${SCENARIO_RUNNER_PATH} \ - wait_for_ego:=$${WAIT_FOR_EGO} \ scenarios_dir:=$${SCENARIOS_DIR} carla-scenario-runner-ros-automated-testing: From 24abfcd2d12b485983c6cb48e298d7f3704d0a39 Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:46:31 +0100 Subject: [PATCH 66/80] Update deployment/helmfile.yaml Co-authored-by: Lennart Reiher --- deployment/helmfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/helmfile.yaml b/deployment/helmfile.yaml index e4067cd..51f32da 100644 --- a/deployment/helmfile.yaml +++ b/deployment/helmfile.yaml @@ -1,3 +1,3 @@ helmfiles: - path: addons/helmfile.yaml - - path: generated/helmfile.yaml + - path: generated/helmfile.yaml # auto-generated by openads-helm From 99fab4429e96c4d560faf3ec33c9c914ad6693d8 Mon Sep 17 00:00:00 2001 From: Christian Geller <88664444+cgeller@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:49:07 +0100 Subject: [PATCH 67/80] Update deployment/README.md Co-authored-by: Lennart Reiher --- deployment/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/README.md b/deployment/README.md index b69cfeb..8e31961 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -18,6 +18,8 @@ The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pip Generate the Helmfile with a sibling checkout of `openads-helm`: ```sh +# openadsim$ +git clone https://github.com/openads-project/openads-helm ../openads-helm python3 ../openads-helm/utils/generate_helmfile_from_compose/scripts/generate_helmfile_from_compose.py \ docker-compose.yml \ --env-file .env \ From 90c6606c3c8f933e7e3144c2dc480e2284562c1e Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 14:48:37 +0100 Subject: [PATCH 68/80] cleanup deployment folder --- .gitignore | 1 - deployment/addons/{helmfile.yaml => helmfile.yaml.gotmpl} | 2 +- deployment/addons/values.yaml.gotmpl | 1 - deployment/generated/.gitignore | 2 ++ 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 .gitignore rename deployment/addons/{helmfile.yaml => helmfile.yaml.gotmpl} (87%) delete mode 100644 deployment/addons/values.yaml.gotmpl create mode 100644 deployment/generated/.gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 976968d..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -deployment/generated/ diff --git a/deployment/addons/helmfile.yaml b/deployment/addons/helmfile.yaml.gotmpl similarity index 87% rename from deployment/addons/helmfile.yaml rename to deployment/addons/helmfile.yaml.gotmpl index 6b5ec1a..089e803 100644 --- a/deployment/addons/helmfile.yaml +++ b/deployment/addons/helmfile.yaml.gotmpl @@ -9,4 +9,4 @@ releases: chart: charts/ros-middleware-bridge-network-policy condition: serviceEnabled.ros-middleware-bridge.enabled values: - - values.yaml.gotmpl + - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} diff --git a/deployment/addons/values.yaml.gotmpl b/deployment/addons/values.yaml.gotmpl deleted file mode 100644 index 81d376f..0000000 --- a/deployment/addons/values.yaml.gotmpl +++ /dev/null @@ -1 +0,0 @@ -namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} diff --git a/deployment/generated/.gitignore b/deployment/generated/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/deployment/generated/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore From 0a842f34ecaa33c783534bdd891852290dfd6311 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 14:53:18 +0100 Subject: [PATCH 69/80] readded values file --- deployment/addons/{helmfile.yaml.gotmpl => helmfile.yaml} | 2 +- deployment/addons/values.yaml.gotmpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename deployment/addons/{helmfile.yaml.gotmpl => helmfile.yaml} (87%) create mode 100644 deployment/addons/values.yaml.gotmpl diff --git a/deployment/addons/helmfile.yaml.gotmpl b/deployment/addons/helmfile.yaml similarity index 87% rename from deployment/addons/helmfile.yaml.gotmpl rename to deployment/addons/helmfile.yaml index 089e803..6b5ec1a 100644 --- a/deployment/addons/helmfile.yaml.gotmpl +++ b/deployment/addons/helmfile.yaml @@ -9,4 +9,4 @@ releases: chart: charts/ros-middleware-bridge-network-policy condition: serviceEnabled.ros-middleware-bridge.enabled values: - - namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} + - values.yaml.gotmpl diff --git a/deployment/addons/values.yaml.gotmpl b/deployment/addons/values.yaml.gotmpl new file mode 100644 index 0000000..81d376f --- /dev/null +++ b/deployment/addons/values.yaml.gotmpl @@ -0,0 +1 @@ +namePrefix: {{ env "DEPLOYMENT_PREFIX" | quote }} From 6a28d03182f74d8c8226353a7bd0422a418a6632 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 14:59:53 +0100 Subject: [PATCH 70/80] update chart map --- deployment/README.md | 2 +- deployment/chart-map.yaml | 63 +++++++++++---------------------------- 2 files changed, 18 insertions(+), 47 deletions(-) diff --git a/deployment/README.md b/deployment/README.md index 8e31961..ea25611 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -34,7 +34,7 @@ set -a; . ./.env; set +a export PROJECT_PATH="$(pwd)" helmfile --file deployment/helmfile.yaml template --concurrency 1 -helmfile --file deployment/helmfile.yaml sync +helmfile --file deployment/helmfile.yaml apply ``` ## Optional settings diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index e91cdf9..76a4466 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -1,72 +1,43 @@ -# Chart map for the Helmfile generator (openads-helm/utils/generate_helmfile_from_compose). -# -# Only what cannot be derived from docker-compose.yml belongs here. By default -# the image ghcr.io//:v is deployed with the release chart -# oci://ghcr.io///helm/ at version . An image tagged -# latest (or latest-slim, ...) uses the newest -main chart instead. - -# Services in these Compose profiles are not exported. excluded_profiles: - - gui # local desktop GUI - - sumo # no Helm charts available yet - - donotuse # Compose templates and disabled services - -# Per-service settings, keyed by full Compose service name. -# chart, version Explicit chart; replaces the default derivation. -# values Merged over the generated chart values. -# port_policies Per published Compose port: hostPort (default) or nodePort. -# volume_policies Per mount target of a bind mount with a fixed source: -# copy (default) The generator copies the file or directory into the bundle -# (small text files become a ConfigMap), so the deployment -# does not depend on a checkout on the node. -# bind The pod mounts ${PROJECT_PATH}/ from the node. -# Required when the container writes to the mount or several -# services must see the same files, since copies are per service. -# Sources built from variables (CUSTOM_OPENDRIVE, CUSTOM_LANELET, -# BAG_DIRECTORY) always stay hostPath and need no entry. + - donotuse + - gui + - sumo services: - # Third-party images; charts are maintained in openads-helm. + # charts centrally maintained in https://github.com/openads-project/openads-helm/tree/main/charts zenoh-router: chart: oci://ghcr.io/openads-project/openads-helm/zenoh-router version: 0.2.10 triton-server: chart: oci://ghcr.io/openads-project/openads-helm/triton-server version: "26.05" - - # One carla-simulator image repository with variant tags (server-slim_v…, - # client_v…) and one chart per variant. + # nested charts in https://github.com/openads-project/carla-simulator/tree/main/deployment/helm carla-server: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-server version: 0.10.0-1.1.1 carla-client: chart: oci://ghcr.io/openads-project/carla-simulator/helm/carla-client version: 0.10.0-1.1.1 - - # One carla-ros-bridge image with one chart per ROS node. - carla-ros-bridge: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge - version: 0.10.0-1.2.0-carla-ros-bridge - carla-spawn-objects: - chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects - version: 0.10.0-1.2.0-carla-spawn-objects + # nested charts in https://github.com/openads-project/carla-ros-bridge/tree/main/deployment/helm carla-ackermann-control: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ackermann-control version: 0.10.0-1.2.0-carla-ackermann-control carla-manual-control: chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-manual-control version: 0.10.0-1.2.0-carla-manual-control - - # Nested image path carla-scenario-runner/ros. No release chart for - # 0.10.0-1.1.2 yet, so the default-branch chart is used. - carla-scenario-runner-ros-manual-testing: &scenario-runner + carla-ros-bridge: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-ros-bridge + version: 0.10.0-1.2.0-carla-ros-bridge + carla-spawn-objects: + chart: oci://ghcr.io/openads-project/carla-ros-bridge/helm/carla-spawn-objects + version: 0.10.0-1.2.0-carla-spawn-objects + # nested chart in https://github.com/openads-project/carla-scenario-runner/tree/main/deployment/helm + carla-scenario-runner-ros-automated-testing: &scenario-runner chart: oci://ghcr.io/openads-project/carla-scenario-runner/helm/carla-scenario-runner-ros - version: 0.10.0-1.1.2-main + version: 0.10.0-1.1.2 volume_policies: - # Writable scenario directory shared with the host. /scenarios: bind - carla-scenario-runner-ros-automated-testing: *scenario-runner - + carla-scenario-runner-ros-manual-testing: *scenario-runner + # default chart, volume shared with monitoring.bag-recorder monitoring.rviz-carla: volume_policies: - # Shared with monitoring.bag-recorder, which writes its bags there. /docker-ros/ws/monitoring-volume: bind From 4daaa419ea5342a0fb481504a26a8ca27a634314 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 15:24:58 +0100 Subject: [PATCH 71/80] add node documentation --- deployment/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deployment/README.md b/deployment/README.md index ea25611..a6a814e 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -39,7 +39,12 @@ helmfile --file deployment/helmfile.yaml apply ## Optional settings -`NODE` pins all services to one node in a multi-node cluster. +To run all services on one node of a multi-node cluster, e.g. the node with the checkout at `PROJECT_PATH`, export its hostname as `NODE`: + +```sh +kubectl get nodes -L kubernetes.io/hostname +export NODE=worker-1 +``` `DEPLOYMENT_PREFIX` separates several stacks in one namespace. The hosts of the prefixed services must then be set as well: From 2041e04da6fcb611ee032a53451df2af055e1208 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 16:13:41 +0100 Subject: [PATCH 72/80] do not expose CARLA_SERVER and TRITON_HOST anymore --- carla-simulation/carla_client/docker-compose.yml | 3 +-- carla-simulation/carla_ros_bridge/docker-compose.yml | 3 +-- carla-simulation/carla_scenario_runner/docker-compose.yml | 3 +-- deployment/README.md | 4 +--- .../point_cloud_object_detection/docker-compose.yml | 2 +- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/carla-simulation/carla_client/docker-compose.yml b/carla-simulation/carla_client/docker-compose.yml index 8706820..92b8415 100644 --- a/carla-simulation/carla_client/docker-compose.yml +++ b/carla-simulation/carla_client/docker-compose.yml @@ -17,8 +17,7 @@ services: service: gpu-x11-service image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 environment: - # CARLA_HOST: carla-server - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} # command: diff --git a/carla-simulation/carla_ros_bridge/docker-compose.yml b/carla-simulation/carla_ros_bridge/docker-compose.yml index b3f68a0..cf8cd3f 100644 --- a/carla-simulation/carla_ros_bridge/docker-compose.yml +++ b/carla-simulation/carla_ros_bridge/docker-compose.yml @@ -23,8 +23,7 @@ services: # --- other ----- LOG_LEVEL: ${LOG_LEVEL:-info} USE_SIM_TIME: ${USE_SIM_TIME:-true} - # CARLA_HOST: carla-server - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} TIMEOUT: 5000 diff --git a/carla-simulation/carla_scenario_runner/docker-compose.yml b/carla-simulation/carla_scenario_runner/docker-compose.yml index 0766ffb..08a1b3c 100644 --- a/carla-simulation/carla_scenario_runner/docker-compose.yml +++ b/carla-simulation/carla_scenario_runner/docker-compose.yml @@ -18,8 +18,7 @@ services: image: ghcr.io/openads-project/carla-scenario-runner/ros:v0.10.0-1.1.2 environment: USE_SIM_TIME: ${USE_SIM_TIME:-true} - # CARLA_HOST: carla-server - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server # CARLA_PORT: 2000 CARLA_PORT: ${CARLA_PORT:-2000} ROLE_NAME: ego_vehicle diff --git a/deployment/README.md b/deployment/README.md index a6a814e..e4b3114 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -46,10 +46,8 @@ kubectl get nodes -L kubernetes.io/hostname export NODE=worker-1 ``` -`DEPLOYMENT_PREFIX` separates several stacks in one namespace. The hosts of the prefixed services must then be set as well: +`DEPLOYMENT_PREFIX` separates several stacks in one namespace. References to other services of the stack are prefixed automatically, e.g. `CARLA_HOST: carla-server` becomes `sim1-carla-server`: ```sh export DEPLOYMENT_PREFIX=sim1 -export CARLA_HOST=sim1-carla-server -export TRITON_HOST=sim1-triton-server ``` diff --git a/openadstack/perception/point_cloud_object_detection/docker-compose.yml b/openadstack/perception/point_cloud_object_detection/docker-compose.yml index ab3fc96..73b84e8 100644 --- a/openadstack/perception/point_cloud_object_detection/docker-compose.yml +++ b/openadstack/perception/point_cloud_object_detection/docker-compose.yml @@ -10,7 +10,7 @@ services: - triton-server environment: PARAMS: /params.yml - TRITON_SERVER_URL: ${TRITON_HOST:-triton-server}:8001 + TRITON_SERVER_URL: triton-server:8001 volumes: - ./params.yml:/params.yml - type: image From edc43d8ccc677c1a70257d1a6246be4a2742e48d Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 20:07:40 +0100 Subject: [PATCH 73/80] drop temporary k8s trigger and add ghcr cleanup --- .github/workflows/ghcr-cleanup.yml | 33 ++++++++++++++++++++++++++++++ .github/workflows/helmfile-oci.yml | 1 - deployment/README.md | 4 +++- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ghcr-cleanup.yml diff --git a/.github/workflows/ghcr-cleanup.yml b/.github/workflows/ghcr-cleanup.yml new file mode 100644 index 0000000..c880af1 --- /dev/null +++ b/.github/workflows/ghcr-cleanup.yml @@ -0,0 +1,33 @@ +name: ghcr-cleanup + +on: + schedule: + - cron: "0 0 * * *" # every day at 00:00 + workflow_dispatch: + +permissions: + packages: write + +jobs: + helmfile: + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@main + + gui: + name: Cleanup gui + runs-on: ubuntu-latest + steps: + - name: Cleanup ${{ github.event.repository.name }}/gui + uses: dataaxiom/ghcr-cleanup-action@v1.2.2 + with: + packages: ${{ github.event.repository.name }}/gui + dry-run: false + use-regex: true + skip-regex-checks: true + older-than: 1 month + exclude-tags: '^(v[0-9]+\.[0-9]+\.[0-9]+|latest)$' # v1.2.3, latest + delete-tags: ".*" + delete-untagged: true + delete-ghost-images: true + delete-partial-images: true + delete-orphaned-images: true + validate: true diff --git a/.github/workflows/helmfile-oci.yml b/.github/workflows/helmfile-oci.yml index 01b1399..a14d397 100644 --- a/.github/workflows/helmfile-oci.yml +++ b/.github/workflows/helmfile-oci.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - k8s # TODO: Remove when k8s branch is merged into main tags: - 'v[0-9]+.[0-9]+.[0-9]+' pull_request: diff --git a/deployment/README.md b/deployment/README.md index e4b3114..b83a2f3 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -11,7 +11,9 @@ This directory contains the OpenADSim-specific inputs and manual additions for t ## CI -The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and package the `deployment` directory together with the root `.env` as a bundled CI artifact. Builds from the default branch and version tags are additionally published as an OCI artifact. +The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and publish the `deployment` directory together with the root `.env` as OCI bundle `//helmfile`, tagged with the branch or tag name and `sha-`. Pull requests publish under their source branch name. + +The scheduled [cleanup workflow](../.github/workflows/ghcr-cleanup.yml) deletes bundles older than one month except `main` and `vX.Y.Z`. On GitLab, the container registry cleanup policy of the project applies the same rule. ## Local usage From c323d9942507f5b22c7bf9f214d020b0c4ba5ddb Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 20:34:52 +0100 Subject: [PATCH 74/80] temporarily use openads-helm feature branch for helmfile oci --- .github/workflows/ghcr-cleanup.yml | 2 +- .github/workflows/helmfile-oci.yml | 2 +- .gitlab-ci.yml | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ghcr-cleanup.yml b/.github/workflows/ghcr-cleanup.yml index c880af1..8637543 100644 --- a/.github/workflows/ghcr-cleanup.yml +++ b/.github/workflows/ghcr-cleanup.yml @@ -10,7 +10,7 @@ permissions: jobs: helmfile: - uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@main + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@feature/always-publish-helmfile-oci # TODO: Switch back to main when merged gui: name: Cleanup gui diff --git a/.github/workflows/helmfile-oci.yml b/.github/workflows/helmfile-oci.yml index a14d397..8c7b696 100644 --- a/.github/workflows/helmfile-oci.yml +++ b/.github/workflows/helmfile-oci.yml @@ -17,7 +17,7 @@ permissions: jobs: helmfile-oci: - uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@feature/always-publish-helmfile-oci # TODO: Switch back to main when merged with: compose-file: docker-compose.yml include-env-file-in-bundle: true diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d525144..9aa545b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,8 +3,10 @@ stages: - testing include: - - remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml + # TODO: Switch back to main when feature/always-publish-helmfile-oci of openads-helm is merged + - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/always-publish-helmfile-oci/.gitlab-ci/reusable-helmfile-oci.yml inputs: + openads-helm-ref: feature/always-publish-helmfile-oci # TODO: Remove when merged into main compose-file: docker-compose.yml include-env-file-in-bundle: true chart-map: deployment/chart-map.yaml From c1531992e25a46728640d2dd9b63f0309f1b4366 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 20:59:33 +0100 Subject: [PATCH 75/80] drop sha tags of gui image --- .github/workflows/gui-image.yml | 1 - deployment/README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gui-image.yml b/.github/workflows/gui-image.yml index 7c39342..45e6b40 100644 --- a/.github/workflows/gui-image.yml +++ b/.github/workflows/gui-image.yml @@ -52,7 +52,6 @@ jobs: type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} type=ref,event=tag - type=sha - name: Build and push image uses: docker/build-push-action@v6 diff --git a/deployment/README.md b/deployment/README.md index b83a2f3..9be3d91 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -11,7 +11,7 @@ This directory contains the OpenADSim-specific inputs and manual additions for t ## CI -The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and publish the `deployment` directory together with the root `.env` as OCI bundle `//helmfile`, tagged with the branch or tag name and `sha-`. Pull requests publish under their source branch name. +The [GitHub workflow](../.github/workflows/helmfile-oci.yml) and the [GitLab pipeline](../.gitlab-ci.yml) use the reusable templates from `openads-helm`. They generate `deployment/generated`, validate it with `helmfile`, and publish the `deployment` directory together with the root `.env` as OCI bundle `//helmfile`, tagged with the branch or tag name. Pull requests publish under their source branch name. The scheduled [cleanup workflow](../.github/workflows/ghcr-cleanup.yml) deletes bundles older than one month except `main` and `vX.Y.Z`. On GitLab, the container registry cleanup policy of the project applies the same rule. From 1b5a40290ca060d6a0a98fe1c840441d6303a366 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 21:17:15 +0100 Subject: [PATCH 76/80] Revert "temporarily use openads-helm feature branch for helmfile oci" This reverts commit c323d9942507f5b22c7bf9f214d020b0c4ba5ddb. --- .github/workflows/ghcr-cleanup.yml | 2 +- .github/workflows/helmfile-oci.yml | 2 +- .gitlab-ci.yml | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ghcr-cleanup.yml b/.github/workflows/ghcr-cleanup.yml index 8637543..c880af1 100644 --- a/.github/workflows/ghcr-cleanup.yml +++ b/.github/workflows/ghcr-cleanup.yml @@ -10,7 +10,7 @@ permissions: jobs: helmfile: - uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@feature/always-publish-helmfile-oci # TODO: Switch back to main when merged + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-cleanup.yml@main gui: name: Cleanup gui diff --git a/.github/workflows/helmfile-oci.yml b/.github/workflows/helmfile-oci.yml index 8c7b696..a14d397 100644 --- a/.github/workflows/helmfile-oci.yml +++ b/.github/workflows/helmfile-oci.yml @@ -17,7 +17,7 @@ permissions: jobs: helmfile-oci: - uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@feature/always-publish-helmfile-oci # TODO: Switch back to main when merged + uses: openads-project/openads-helm/.github/workflows/reusable-helmfile-oci.yml@main with: compose-file: docker-compose.yml include-env-file-in-bundle: true diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9aa545b..d525144 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,10 +3,8 @@ stages: - testing include: - # TODO: Switch back to main when feature/always-publish-helmfile-oci of openads-helm is merged - - remote: https://raw.githubusercontent.com/openads-project/openads-helm/feature/always-publish-helmfile-oci/.gitlab-ci/reusable-helmfile-oci.yml + - remote: https://raw.githubusercontent.com/openads-project/openads-helm/main/.gitlab-ci/reusable-helmfile-oci.yml inputs: - openads-helm-ref: feature/always-publish-helmfile-oci # TODO: Remove when merged into main compose-file: docker-compose.yml include-env-file-in-bundle: true chart-map: deployment/chart-map.yaml From 199f36e2b86a0cad48a4052670c78fbe8ccebd06 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 21:32:35 +0100 Subject: [PATCH 77/80] do not expose CARLA_HOST in compose overrides --- carla-simulation/carla_client/.docker-compose.oci-overrides.yml | 2 +- .../carla_ros_bridge/.docker-compose.oci-overrides.yml | 2 +- .../carla_scenario_runner/.docker-compose.oci-overrides.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml index d859024..9a51e7d 100644 --- a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml @@ -16,7 +16,7 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: gpu-x11-service environment: - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server CARLA_PORT: ${CARLA_PORT:-2000} command: - /bin/bash diff --git a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml index fcc906c..960e199 100644 --- a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml @@ -16,7 +16,7 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: ros2-x11-service environment: - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server CARLA_PORT: ${CARLA_PORT:-2000} TOWN: ${MAP:-/opendrive.xodr} IGNORE_ALTITUDE: "True" diff --git a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml index 46d041c..994ae1a 100644 --- a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml @@ -16,7 +16,7 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: ros2-x11-service environment: - CARLA_HOST: ${CARLA_HOST:-carla-server} + CARLA_HOST: carla-server CARLA_PORT: ${CARLA_PORT:-2000} MAP: ${MAP:-} CUSTOM_OPENDRIVE: ${CUSTOM_OPENDRIVE:-} From 70e5f32ae6770976e1f6b58f509421ad27b8c75a Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Fri, 30 Oct 2026 21:45:37 +0100 Subject: [PATCH 78/80] update to openadscale --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d525144..0706f8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,6 @@ include: output-dir: deployment/generated helmfile-entrypoint: deployment/helmfile.yaml bundle-dir: deployment - - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/distributed-testing/openadscale@openads + - component: gitlab.ika.rwth-aachen.de/fb-fi/ops/openadscale/openadscale@main inputs: scenario-search-pattern: scenario.generator/**/*.xosc From 7433b65cb1a0502eac88fa5d860a8ff95b4e7139 Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sat, 31 Oct 2026 11:08:09 +0100 Subject: [PATCH 79/80] cleanup chart map --- deployment/chart-map.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/chart-map.yaml b/deployment/chart-map.yaml index 76a4466..a84f753 100644 --- a/deployment/chart-map.yaml +++ b/deployment/chart-map.yaml @@ -37,7 +37,7 @@ services: volume_policies: /scenarios: bind carla-scenario-runner-ros-manual-testing: *scenario-runner - # default chart, volume shared with monitoring.bag-recorder + # chart derived from image, writable volume mounted from host monitoring.rviz-carla: volume_policies: /docker-ros/ws/monitoring-volume: bind From b4daee33ca8f12b7ad3d8fde6e59a3575ceb8bce Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Sat, 31 Oct 2026 11:18:31 +0100 Subject: [PATCH 80/80] cleanup carla environment variables --- .../carla_client/.docker-compose.oci-overrides.yml | 3 --- carla-simulation/carla_client/docker-compose.yml | 3 +-- .../carla_ros_bridge/.docker-compose.oci-overrides.yml | 2 -- carla-simulation/carla_ros_bridge/docker-compose.yml | 3 +-- .../carla_scenario_runner/.docker-compose.oci-overrides.yml | 2 -- carla-simulation/carla_scenario_runner/docker-compose.yml | 3 +-- .../carla_server/.docker-compose.oci-overrides.yml | 2 -- carla-simulation/carla_server/docker-compose.yml | 3 +-- 8 files changed, 4 insertions(+), 17 deletions(-) diff --git a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml index 9a51e7d..4bc85c1 100644 --- a/carla-simulation/carla_client/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_client/.docker-compose.oci-overrides.yml @@ -15,9 +15,6 @@ services: extends: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: gpu-x11-service - environment: - CARLA_HOST: carla-server - CARLA_PORT: ${CARLA_PORT:-2000} command: - /bin/bash - -ic diff --git a/carla-simulation/carla_client/docker-compose.yml b/carla-simulation/carla_client/docker-compose.yml index 92b8415..516a096 100644 --- a/carla-simulation/carla_client/docker-compose.yml +++ b/carla-simulation/carla_client/docker-compose.yml @@ -18,8 +18,7 @@ services: image: ghcr.io/openads-project/carla-simulator:client_v0.10.0-1.1.1 environment: CARLA_HOST: carla-server - # CARLA_PORT: 2000 - CARLA_PORT: ${CARLA_PORT:-2000} + CARLA_PORT: 2000 # command: # - sleep # - infinity diff --git a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml index 960e199..5b44c5d 100644 --- a/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_ros_bridge/.docker-compose.oci-overrides.yml @@ -16,8 +16,6 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: ros2-x11-service environment: - CARLA_HOST: carla-server - CARLA_PORT: ${CARLA_PORT:-2000} TOWN: ${MAP:-/opendrive.xodr} IGNORE_ALTITUDE: "True" volumes: diff --git a/carla-simulation/carla_ros_bridge/docker-compose.yml b/carla-simulation/carla_ros_bridge/docker-compose.yml index cf8cd3f..0937043 100644 --- a/carla-simulation/carla_ros_bridge/docker-compose.yml +++ b/carla-simulation/carla_ros_bridge/docker-compose.yml @@ -24,8 +24,7 @@ services: LOG_LEVEL: ${LOG_LEVEL:-info} USE_SIM_TIME: ${USE_SIM_TIME:-true} CARLA_HOST: carla-server - # CARLA_PORT: 2000 - CARLA_PORT: ${CARLA_PORT:-2000} + CARLA_PORT: 2000 TIMEOUT: 5000 PASSIVE: false PUBLISH_CLOCK: true diff --git a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml index 994ae1a..c395755 100644 --- a/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_scenario_runner/.docker-compose.oci-overrides.yml @@ -16,8 +16,6 @@ services: file: ../../openadstack/openadstack/utils/compose/docker-compose.template.yml service: ros2-x11-service environment: - CARLA_HOST: carla-server - CARLA_PORT: ${CARLA_PORT:-2000} MAP: ${MAP:-} CUSTOM_OPENDRIVE: ${CUSTOM_OPENDRIVE:-} CUSTOM_LANELET: ${CUSTOM_LANELET:-} diff --git a/carla-simulation/carla_scenario_runner/docker-compose.yml b/carla-simulation/carla_scenario_runner/docker-compose.yml index 08a1b3c..a74d4e9 100644 --- a/carla-simulation/carla_scenario_runner/docker-compose.yml +++ b/carla-simulation/carla_scenario_runner/docker-compose.yml @@ -19,8 +19,7 @@ services: environment: USE_SIM_TIME: ${USE_SIM_TIME:-true} CARLA_HOST: carla-server - # CARLA_PORT: 2000 - CARLA_PORT: ${CARLA_PORT:-2000} + CARLA_PORT: 2000 ROLE_NAME: ego_vehicle SCENARIO_RUNNER_PATH: /docker-ros/additional-files WAIT_FOR_EGO: true diff --git a/carla-simulation/carla_server/.docker-compose.oci-overrides.yml b/carla-simulation/carla_server/.docker-compose.oci-overrides.yml index f829c39..5718dec 100644 --- a/carla-simulation/carla_server/.docker-compose.oci-overrides.yml +++ b/carla-simulation/carla_server/.docker-compose.oci-overrides.yml @@ -21,8 +21,6 @@ services: -RenderOffScreen \ --ros2 \ -carla-rpc-port=$${CARLA_PORT} - environment: - CARLA_PORT: ${CARLA_PORT:-2000} ipc: service:zenoh-router volumes: - ./DefaultEngine.ini:/workspace/Linux/CarlaUnreal/Config/DefaultEngine.ini diff --git a/carla-simulation/carla_server/docker-compose.yml b/carla-simulation/carla_server/docker-compose.yml index 318a328..e53a41e 100644 --- a/carla-simulation/carla_server/docker-compose.yml +++ b/carla-simulation/carla_server/docker-compose.yml @@ -21,8 +21,7 @@ services: retries: 3 image: ghcr.io/openads-project/carla-simulator:server-slim_v0.10.0-1.1.1 environment: - # CARLA_PORT: 2000 - CARLA_PORT: ${CARLA_PORT:-2000} + CARLA_PORT: 2000 # command: # - /bin/bash # - -ic