sisl / automotivepomdps.jl Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
When I run the code in "Urban POMDP tutorial.ipynb", the following problem was encountered:
MethodError: no method matching measure(::PerfectSensor, ::Entity{VehicleState,VehicleDef,Int64}, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::Roadway{Float64}, ::Array{ConvexPolygon,1})
Closest candidates are:
measure(::PerfectSensor, !Matched::AutomotiveSimulator.Entity, !Matched::AutomotiveSimulator.Scene, !Matched::AutomotiveSimulator.Roadway, !Matched::Array{AutomotiveSimulator.ConvexPolygon,1}) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutomotiveSensors\fjrvI\src\perfect_sensor.jl:9
Stacktrace:
[1] measure_gaussian(::UrbanPOMDP, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::UrbanAction, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::MersenneTwister) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutomotivePOMDPs\0vhkx\src\generative_pomdps\urban\generative_model.jl:228
[2] gen(::DDNNode{:o}, ::UrbanPOMDP, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::UrbanAction, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::MersenneTwister) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutomotivePOMDPs\0vhkx\src\generative_pomdps\urban\generative_model.jl:222
[3] macro expansion at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPs\0djkf\src\gen_impl.jl:46 [inlined]
[4] macro expansion at .\none:0 [inlined]
[5] genout(::DDNOut{(:sp, :o, :r)}, ::DDNStructure{NamedTuple{(:s, :a, :sp, :o, :r),Tuple{InputDDNNode,InputDDNNode,DistributionDDNNode{typeof(transition)},DistributionDDNNode{typeof(observation)},FunctionDDNNode{typeof(reward)}}},NamedTuple{(:s, :a, :sp, :o, :r),Tuple{Tuple{},Tuple{},Tuple{DDNNode{:s},DDNNode{:a}},Tuple{DDNNode{:s},DDNNode{:a},DDNNode{:sp}},Tuple{DDNNode{:s},DDNNode{:a},DDNNode{:sp},DDNNode{:o}}}}}, ::UrbanPOMDP, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::UrbanAction, ::MersenneTwister) at .\none:0
[6] macro expansion at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPs\0djkf\src\gen_impl.jl:19 [inlined]
[7] gen(::DDNOut{(:sp, :o, :r)}, ::UrbanPOMDP, ::Frame{Entity{VehicleState,VehicleDef,Int64}}, ::UrbanAction, ::MersenneTwister) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPs\0djkf\src\gen_impl.jl:4
[8] iterate(::POMDPSimulators.POMDPSimIterator{(:s, :a, :sp, :o, :r, :t, :action_info, :b, :bp, :update_info),UrbanPOMDP,FunctionPolicy{var"#5#6"},NothingUpdater,MersenneTwister,Nothing,Frame{Entity{VehicleState,VehicleDef,Int64}}}, ::Tuple{Int64,Frame{Entity{VehicleState,VehicleDef,Int64}},Nothing}) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPSimulators\3WSVG\src\stepthrough.jl:94
[9] iterate at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPSimulators\3WSVG\src\stepthrough.jl:86 [inlined]
[10] _collect(::UnitRange{Int64}, ::POMDPSimulators.POMDPSimIterator{(:s, :a, :sp, :o, :r, :t, :action_info, :b, :bp, :update_info),UrbanPOMDP,FunctionPolicy{var"#5#6"},NothingUpdater,MersenneTwister,Nothing,Frame{Entity{VehicleState,VehicleDef,Int64}}}, ::Base.HasEltype, ::Base.SizeUnknown) at .\array.jl:614
[11] collect at .\array.jl:603 [inlined]
[12] collect_history(::POMDPSimulators.POMDPSimIterator{(:s, :a, :sp, :o, :r, :t, :action_info, :b, :bp, :update_info),UrbanPOMDP,FunctionPolicy{var"#5#6"},NothingUpdater,MersenneTwister,Nothing,Frame{Entity{VehicleState,VehicleDef,Int64}}}, ::Val{false}, ::Nothing) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPSimulators\3WSVG\src\history_recorder.jl:185
[13] simulate(::HistoryRecorder, ::UrbanPOMDP, ::FunctionPolicy{var"#5#6"}, ::NothingUpdater, ::Nothing, ::Frame{Entity{VehicleState,VehicleDef,Int64}}) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\POMDPSimulators\3WSVG\src\history_recorder.jl:109
[14] macro expansion at .\util.jl:175 [inlined]
[15] top-level scope at .\In[5]:6
My package version:
[1385418a] AutoUrban v0.2.4
[82aa6e0c] AutoViz v0.7.10
[99497e54] AutomotiveDrivingModels v0.7.12
[dca8afc0] AutomotivePOMDPs v0.2.1
[9ec66b5e] AutomotiveSensors v0.2.0
AutoViz v0.7.10 works but v0.8 doesn't work.
I followed the installation guide and installed AutomotivePOMDPs after running the following Julia REPL:
using Pkg
Pkg.add("POMDPs")
using POMDPs
POMDPs.add_registry()
Pkg.Registry.add(RegistrySpec(url="https://github.com/sisl/Registry"))
Pkg.add("AutomotivePOMDPs")
I tried to run our tutorial docs/Urban POMDP tutoial.ipynb
and an error occurred in "Visualize simulation" section. This is because v0.8.0 removed incameraframe
parameter in TextOverlay
in AutoViz.
After downgraded AutoViz into v0.7.10, there's no problem to run the tutorial docs/Urban POMDP tutoial.ipynb
.
Fix travis, it is complaining about unregistered dependencies.
Add proper tests
Sorry to tick an issue here, but I come across an annoying problem when I write my own ACC POMDP problem following your code. Here's my address: https://github.com/beamiter/julia-repo/tree/main/acc and I'll be grateful if you could take a look at it. I
construct a model and try to solve it, and fail with following hint:
Got exception outside of a @test
UndefRefError: access to undefined reference
Stacktrace:
[1] getindex
@ ./array.jl:801 [inlined]
[2] iterate
@ ./array.jl:777 [inlined]
[3] iterate
@ ./iterators.jl:159 [inlined]
[4] write(io::IOStream, pomdp::AccPOMDP)
@ POMDPFiles ~/.julia/packages/POMDPFiles/vOfxh/src/write.jl:64
[5] #3
@ ~/.julia/packages/POMDPSolve/LzAMF/src/solver.jl:175 [inlined]
[6] open(::POMDPSolve.var"#3#4"{AccPOMDP}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base ./io.jl:330
[7] open
@ ./io.jl:328 [inlined]
[8] solve(solver::POMDPSolveSolver, pomdp::AccPOMDP)
@ POMDPSolve ~/.julia/packages/POMDPSolve/LzAMF/src/solver.jl:174
[9] macro expansion
@ ~/jl/acc/acc_dev.jl:556 [inlined]
[10] macro expansion
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
[11] top-level scope
@ ~/jl/acc/acc_dev.jl:546
[12] include(mod::Module, _path::String)
@ Base ./Base.jl:386
[13] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:285
[14] _start()
@ Base ./client.jl:485
When I used the tutorial, I meet the problem. I can't solve it. Could you give me some help?
┌ Info: Precompiling AutomotivePOMDPs [dca8afc0-c686-11e8-0934-712707da73aa]
└ @ Base loading.jl:1260
ERROR: LoadError: LoadError: UndefVarError: SceneRecord not defined
Stacktrace:
[1] top-level scope at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutoUrban\27yQZ\src\actions.jl:72
[2] include(::Module, ::String) at .\Base.jl:377
[3] include(::String) at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutoUrban\27yQZ\src\AutoUrban.jl:3
[4] top-level scope at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutoUrban\27yQZ\src\AutoUrban.jl:18
[5] include(::Module, ::String) at .\Base.jl:377
[6] top-level scope at none:2
[7] eval at .\boot.jl:331 [inlined]
[8] eval(::Expr) at .\client.jl:449
[9] top-level scope at .\none:3
in expression starting at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutoUrban\27yQZ\src\actions.jl:72
in expression starting at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutoUrban\27yQZ\src\AutoUrban.jl:18
ERROR: LoadError: Failed to precompile AutoUrban [1385418a-9289-5a49-ab93-843b508de4cb] to C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\compiled\v1.4\AutoUrban\XNcPh_8Tbpi.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[3] _require(::Base.PkgId) at .\loading.jl:1029
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922
[6] include(::Module, ::String) at .\Base.jl:377
[7] top-level scope at none:2
[8] eval at .\boot.jl:331 [inlined]
[9] eval(::Expr) at .\client.jl:449
[10] top-level scope at .\none:3
in expression starting at C:\Users\pilgrim.juliapro\JuliaPro_v1.4.2-1\packages\AutomotivePOMDPs\0vhkx\src\AutomotivePOMDPs.jl:16
When I try to install the Automotive POMDPs package through the registry I get the following error:
julia> POMDPs.add_registry()
ERROR: UndefVarError: add_registry
not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:31
[2] top-level scope
@ REPL[5]:1
In case I try to install by using Pkg, I get the following error:
import Pkg; Pkg.add("AutomotivePOMDPs")
Resolving package versions...
ERROR: cannot find name corresponding to UUID 3065fe53-3878-5aed-aae7-ab641be43734 in a registry
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
[2] deps_graph(env::Pkg.Types.EnvCache, registries::Vector{…}, uuid_to_name::Dict{…}, reqs::Dict{…}, fixed::Dict{…}, julia_version::VersionNumber, installed_only::Bool)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:578
[3] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, julia_version::VersionNumber, installed_only::Bool)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:406
[4] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1360
[5] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, julia_version::VersionNumber, try_all_installed::Bool)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1332
[6] _resolve(io::Base.TTY, env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1370
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1387
[8] add
@ Pkg.Operations ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1376 [inlined]
[9] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@kwargs{…})
@ Pkg.API ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:278
[10] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{})
@ Pkg.API ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
[11] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:148
[12] add
@ Pkg.API ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
[13] add(pkg::String)
@ Pkg.API ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:146
[14] top-level scope
@ REPL[3]:1
Some type information was truncated. Use show(err)
to see complete types.
Could you please tell me a way by which I can resolve the above issues so that I can install the package.
This repository is big and messy.
The AutomotiveDrivingModels helpers (including the collision checker!) should be move somewhere else.
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.