Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • V vadere
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 119
    • Issues 119
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • vadere
  • vadere
  • Merge requests
  • !91

TraCI and Cache handling update

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Stefan Schuhbaeck requested to merge test_client_stsc into master Nov 14, 2019
  • Overview 0
  • Commits 45
  • Pipelines 3
  • Changes 54

Added

  • TraCI commands:
    • getHash: return Scenario hash for given scenario
    • CompoundObject implementation to allow complex get/set commands (i.e. create pedestrian hat random location during simulation run)
  • osm2vadere converter:
    • it is possible to specify a way with the tag area-of-intrest (AOI). If this is present and the corresponding command line argument is given, only elements within the bounding box of the AOI will be converted.
  • Add INET environment export:
    • create an INET environment xml file based on the current topography. For now only prism shapes are possible with a fixed height of 5m.
  • vadere-console utils subCommand:
    • A miscellaneous collector of simple function operating on a single scenario file.
    • -f (input [required])
    • -o (ouput file or directory depending on method m [optional])
    • -m (name of method.) See subparser help for allowed functions.
    • currently implementd:
      • getHash: Hash value of given scenario. (-o option ignored)
      • binCache: calculate binary cache (-o must be a directory. If missing it will be created)
      • txtCache: calculate text based cache (-o must be a directory. If missing it will be created)

Changed

  • CachePath lookup: The new cache lookup now allows a 'global' lookup. Previously all cache files are saved in a __cache__ folder relative (as sibling) to the currently running scenario file. This works good for local testing and runs. However, if one scenario is duplicated and integrated in other projects the same cache would be created at multiple locations. The current solution would be to enter an absolute path as the cacheDir but this will break interoperatbility between windows and linux as well as sharing scenario files with other users. CacheDir Lookup order:
    1. cacheDir is an absolute path: Use it; and log the path to console.
    2. cacheDir is relative and Vadere.cache.useGlobalCacheBaseDir=false (default): save cache in a __cache__ folder relative (as sibling) to the currently running scenario file
    3. cacheDir is relative and Vadere.cache.useGlobalCacheBaseDir=true: Lookup Vadere.cache.flobalCacheBaseDir and use this as the base path for the relative cacheDir path. Vadere.cache.flobalCacheBaseDir defaults to ${user.home}\.cache\vadere
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: test_client_stsc