osc2-studio Logo

osc2-studio

Web-based OpenScenario2 Editor for Autonomous Driving Simulation

About osc2-studio

A professional OpenScenario2 editor featuring advanced syntax highlighting, intelligent code completion, and real-time error checking to streamline scenario development.

osc2-studio is a specialized web application designed for creating and editing OpenScenario2 files, which are used to define scenarios for autonomous driving simulations. Built with modern web technologies, our editor provides a user-friendly interface for scenario development.

The editor provides a professional coding experience directly in your browser, with an intuitive interface designed for efficient scenario development.

Technology Stack

React 19+ Vite 7+ JavaScript OpenScenario2

Core Features

Professional OpenScenario2(OpenScenario DSL) Editor

A modern, feature-rich editor designed for efficient OpenScenario2 scenario development.

Advanced Syntax Highlighting

Color-coded syntax for OpenScenario2 keywords, variables, comments, and other language elements for improved readability.

Intelligent Code Completion

Context-aware suggestions for OpenScenario2 keywords, parameters, and values to accelerate scenario development.

Real-time Syntax Validation

Instant feedback on syntax errors with clear error messages to help you write valid OpenScenario2 code.

File Management

Upload existing OpenScenario2 files or download your creations for use in simulation environments.

Code Statistics

Track word count and line count of your OpenScenario2 code to monitor development progress.

Theme Support

Choose between dark and light themes to suit your working environment and personal preferences.

Internationalization

Support for multiple languages including English, Chinese, German, and Japanese.

User Authentication

Secure login system to manage your scenarios and access personalized features.

OpenScenario2 Support

osc2-studio provides comprehensive support for the OpenScenario2 language specification, including:

Example Code

# Basic OpenScenario2 Example
scenario ExampleScenario:
    # Actor definitions
    ego: Vehicle
    npc: Vehicle
    
    # Event definitions
    event start
    event end
    
    # Execution sequence
    do serial:
        # Stage 1: Vehicles就位
        setup: parallel(duration: 10s):
            ego.drive with:
                speed(20m/s)
                lane(1)
            npc.drive with:
                speed(15m/s)
                lane(2)
        
        # Stage 2: 触发事件
        trigger_event:
            wait(5s)
            emit(end)
          

Getting Started

To begin using osc2-studio, simply log in or create an account. Once authenticated, you'll have access to the full editor features:

  1. Create a new scenario or upload an existing OpenScenario2 file
  2. Use the editor with syntax highlighting and code completion
  3. Validate your code in real-time
  4. Download your completed scenario for use in simulation tools