chenyx09 / belief-planning

60 stars 23 forks source link

Error when running merge scenario #1

Closed rufoliveira closed 3 years ago

rufoliveira commented 3 years ago

Hi! I am trying to reproduce the results in Chen, Yuxiao, et al. "Interactive multi-modal motion planning with Branch Model Predictive Control." arXiv preprint arXiv:2109.05128 (2021).

When running main_branch.py with the following code,

`if name== "main":

# sim_overtake()
sim_merge()

`

I get the following error:

Traceback (most recent call last): File "belief-planning\main_branch.py", line 92, in sim_merge() File "belief-planning\main_branch.py", line 84, in sim_merge Highway_env_branch.sim_merge(mpc,pred_model,N_lane,merge_lane,merge_s,merge_R,merge_side) File "belief-planning\Highway_env_branch.py", line 666, in sim_merge state_rec,input_rec,backup_rec,backup_choice_rec,xPred_rec,zPred_rec,collision = Highway_sim(env,6) ValueError: too many values to unpack (expected 7)

Is this repository being maintained? Do you plan to fix this error?

Thanks!

chenyx09 commented 3 years ago

Sorry it's a small bug, should be fixed now.

On Tue, Oct 26, 2021 at 4:13 PM rufoliveira @.***> wrote:

Hi! I am trying to reproduce the results in Chen, Yuxiao, et al. "Interactive multi-modal motion planning with Branch Model Predictive Control." arXiv preprint arXiv:2109.05128 (2021).

When running main_branch.py with the following code,

`if name== "main":

sim_overtake()

sim_merge()

`

I get the following error:

Traceback (most recent call last): File "belief-planning\main_branch.py", line 92, in sim_merge() File "belief-planning\main_branch.py", line 84, in sim_merge

Highway_env_branch.sim_merge(mpc,pred_model,N_lane,merge_lane,merge_s,merge_R,merge_side) File "belief-planning\Highway_env_branch.py", line 666, in sim_merge state_rec,input_rec,backup_rec,backup_choice_rec,xPred_rec,zPred_rec,collision = Highway_sim(env,6) ValueError: too many values to unpack (expected 7)

Is this repository being maintained? Do you plan to fix this error?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chenyx09/belief-planning/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5LEZXIGVWCD2OEMX2LYQDUI4YYVANCNFSM5GY6L2NQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Yuxiao Chen Postdoc fellow AMBER Lab California Institute of Technology

rufoliveira commented 3 years ago

Yes, it is fixed with commit 266e792a83f1e1cada4c32e82e96befe4dd39ca0. I am able to run the sim_merge() now. Thanks!