You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Entity::init initializes the id_to_ent_map_ for sensor, motion_model, and controller plugins:
sensor->set_id_to_ent_map(id_to_ent_map);
motion_model_->set_id_to_ent_map(id_to_ent_map);
controller->set_id_to_ent_map(id_to_ent_map);
But it does not do the same for autonomy plugins (nor is it done in make_autonomy). I was able to fix the problem by adding the following change at line 424:
if (autonomy) {
(*autonomy)->set_id_to_ent_map(id_to_ent_map); // ADD THIS LINE
autonomies_.push_back(*autonomy);
}
This looks like a bug that creeped in when the Entity.cpp class was refactored. The id_to_ent_map should be added as an argument to the make_autonomy function that is defined in EntityPluginHelper.h. In the make_autonomy function, the id_to_ent_map should be set.
The text was updated successfully, but these errors were encountered:
Entity::init initializes the
id_to_ent_map_
for sensor, motion_model, and controller plugins:sensor->set_id_to_ent_map(id_to_ent_map);
motion_model_->set_id_to_ent_map(id_to_ent_map);
controller->set_id_to_ent_map(id_to_ent_map);
But it does not do the same for autonomy plugins (nor is it done in make_autonomy). I was able to fix the problem by adding the following change at line 424:
According to @SyllogismRXS:
The text was updated successfully, but these errors were encountered: