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

Fixing the load and reload button #675

Open
ArthurWANGZHE opened this issue Mar 23, 2024 · 2 comments
Open

Fixing the load and reload button #675

ArthurWANGZHE opened this issue Mar 23, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@ArthurWANGZHE
Copy link

I fond that the load and reload buttons in the ui intereface are currently not working. I plan to fix this issue

@sergiopaniego
Copy link
Member

I've assigned this issue to you and updated the label.
To give you more context, these buttons work when the simulator is Gazebo since that was the primary simulator at the beginning of this project. It is no longer the primary simulator and we do the majority of development using CARLA since it is the standard simulator for autonomous driving.
The functionality for each of these buttons is slightly different so if you fix any of them you may generate the PR for that specific one.
Reload -> Restore all the components in the simulation. The optimal way would be to restore the positions of each element without reloading the simulator completely.
Load -> For this case, we need to reload the simulator client completely.

@ArthurWANGZHE
Copy link
Author

Hi! I have made some progress. Now I can reload swicth the brain between "brain_deep_learning" and "brain_slow_and_turn" using reload button. However, I have encountered some trouble while trying to reload other brains. The errors are as follows:

20: Reloading brain... /home/arthur/BehaviorMetrics/behavior_metrics/brains/CARLA/brain_carla_segmentation_based_imitation_learning.py
Waiting for vehicle with role_name 'ego_vehicle'
Waiting for vehicle with role_name 'ego_vehicle'

20: Reloading brain... /home/arthur/BehaviorMetrics/behavior_metrics/brains/CARLA/brain_carla_autopilot.py
Brain could not be loaded!
vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants