sisl / adversarialdriving.jl Goto Github PK
View Code? Open in Web Editor NEWAdversarial driving simulator for testing safety validation algorithms
License: MIT License
Adversarial driving simulator for testing safety validation algorithms
License: MIT License
when we run simulation like "hist = POMDPSimulators.simulate(HistoryRecorder(), mdp, FunctionPolicy((s) -> null_action))"
Is there any parameter, through which we can detect whether collision or failure has happened or not?
I'm receiving the following stack trace when I try to run any of the examples.
julia> include("examples/ped_crosswalk.jl") ERROR: LoadError: ArgumentError: Sampler for this object is not defined Stacktrace: [1] Random.Sampler(::Type{Random.MersenneTwister}, ::Random.SamplerTrivial{AutomotiveSimulator.Scene{AutomotiveSimulator.Entity{S,AutomotiveSimulator.VehicleDef,Int64} where S},Any}, ::Val{1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:145 [2] Random.Sampler(::Random._GLOBAL_RNG, ::Random.SamplerTrivial{AutomotiveSimulator.Scene{AutomotiveSimulator.Entity{S,AutomotiveSimulator.VehicleDef,Int64} where S},Any}, ::Val{1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:139 [3] rand(::Random._GLOBAL_RNG, ::Random.SamplerTrivial{AutomotiveSimulator.Scene{AutomotiveSimulator.Entity{S,AutomotiveSimulator.VehicleDef,Int64} where S},Any}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:253 (repeats 2 times) [4] simulate(::HistoryRecorder, ::AdversarialDrivingMDP, ::FunctionPolicy{var"#23#24"}) at /Users/BP/.julia/packages/POMDPSimulators/giDMN/src/history_recorder.jl:137 [5] top-level scope at /Users/BP/Repos/AdversarialDriving.jl/examples/ped_crosswalk.jl:13 [6] include(::String) at ./client.jl:439 [7] top-level scope at none:0 in expression starting at /Users/BP/Repos/AdversarialDriving.jl/examples/ped_crosswalk.jl:13
I've tried specifying the max_step to maybe push through the issue in POMDPSimulation but that doesn't seem to work. I'm new to Julia so maybe I'm missing something or need to force a fresh compilation?
Currently, if a vehicle has right of way it will not stop for vehicles in front of it. We should augment the IDM tracker to include vehicles that are not in the same lane and do not have right of way
When I run Tintersection.jl (one of the examples), it seems that just one car is simulated. In the code there are five cars, one of which is the sut; however when I execute the whole script, just one car moves from left to right and other agents are seemed to be ignored.
Here is the gif output file after execution:
It seems that other examples work without problem in my system.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.