Giter Site home page Giter Site logo

Comments (8)

mossr avatar mossr commented on June 25, 2024

This seems to be an issue with Scene not being sampleable, where initialstate(mdp) returns a Scene and the history recorder will try to sample an initial state.

A quick fix would be to add the following to the top of the "ped_crosswalk_with_blindspot.jl" file:

using Random
Base.rand(rng::AbstractRNG, s::Scene) = rand(rng, s.entities)

or

using Random
Base.rand(rng::AbstractRNG, s::Scene) = s

if it shouldn't sample an entity, but deterministically return the Scene (semi-hack at the moment).

But @ancorso should comment on whether this is a fix that should live in AdversarialDriving.jl or AutomotiveSimulator.jl.

from adversarialdriving.jl.

AizazSharif avatar AizazSharif commented on June 25, 2024
using Random
Base.rand(rng::AbstractRNG, s::Scene) = s

This was only working as one of the fixes you have mentioned above. The output is now:

output

I wanted to ask if there is any other script to run for visualization of the crosswalk scenario.

from adversarialdriving.jl.

mossr avatar mossr commented on June 25, 2024

I think running that file creates a "blindspot.gif" file, no?

from adversarialdriving.jl.

AizazSharif avatar AizazSharif commented on June 25, 2024

Yes, it does (my bad).

Thanks a lot for the help. Looking forward to contributing to this great work :)

from adversarialdriving.jl.

mossr avatar mossr commented on June 25, 2024

No worries! Happy to help :)

from adversarialdriving.jl.

mossr avatar mossr commented on June 25, 2024

I'll leave it open so we can resolve it for everyone else

from adversarialdriving.jl.

ancorso avatar ancorso commented on June 25, 2024

Thanks for tracking the issue down @mossr.

It looks like this new requirement stems from a POMDPs.jl v0.9, where initialstate(mdp) should return a distribution. I'll make the needed change.

from adversarialdriving.jl.

ancorso avatar ancorso commented on June 25, 2024

Fixed by #6

from adversarialdriving.jl.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.