Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDM cars break in multilane #9193

Closed
agalbachicar opened this issue Jul 27, 2018 · 2 comments
Closed

IDM cars break in multilane #9193

agalbachicar opened this issue Jul 27, 2018 · 2 comments
Assignees
Labels
unused team: automotive This team is no longer active within this repository.

Comments

@agalbachicar
Copy link
Contributor

Description

In PR #9173, where multilane is added to automotive_demo, adding IDM cars to multilane_onramp_merge scenario makes the simulation end with:

abort: Failure at bazel-out/k8-dbg/bin/systems/analysis/_virtual_includes/simulator/drake/systems/analysis/simulator.h:613 in StepTo(): condition 'next_sample_time >= step_start_time' failed.

A similar issue was reported in #8045 .

Reproduction

To reproduce, IDM cars should be added to automotive_demo with multilane_onramp_merge scenario.

To run it:

bazel run //automotive:demo -- --visualizer --with_multilane_onramp --multilane_num_lanes=3 --num_idm_controlled_maliput_railcar=1 

Debug Information

  • What operating system are you running Drake on?

Ubuntu 16.04 from docker.

  • Is this an issue with (a) C++, (b) Python, or (c) the distributed tools
    (e.g. drake-visualizer)?

(a) C++

  • Are you (a) building drake from source, or (b) from a binary release?

(a) source

@agalbachicar agalbachicar added the unused team: automotive This team is no longer active within this repository. label Jul 27, 2018
@sherm1
Copy link
Member

sherm1 commented Jul 28, 2018

Some extra info, not sure if it's helpful:
That error message comes from this sequence in Simulator::StepTo():

    const T step_start_time = context_->get_time();
    // ...
    // How far can we go before we have to take a sampling break?
    const T next_sample_time =
        system_.CalcNextUpdateTime(*context_, timed_events.get());
    DRAKE_DEMAND(next_sample_time >= step_start_time);

This indicates that CalcNextUpdateTime() returned a value earlier than the time that was passed in via the context. Or, possibly, one of the values here is NaN likely due to an earlier problem.

@edrumwri may have some further thoughts on how to debug this.

@jwnimmer-tri
Copy link
Collaborator

Per #11603, the automotive folder is deprecated, so I'll close this issue as "won't fix"; @jadecastro if this issue is still important to you, please re-open it in a different issue tracker.

\CC @liangfok FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unused team: automotive This team is no longer active within this repository.
Projects
None yet
Development

No branches or pull requests

4 participants