RobotecAI / RGLGazeboPlugin

Other
61 stars 11 forks source link

Check entity is not ignored before trying to add laser retro #44

Closed Roboterbastler closed 4 months ago

Roboterbastler commented 4 months ago

I found an issue when we have a <laser_retro> tag in one of the links that are ignored by RGL. The plugin would just crash with std::out_of_range since the entity is not in entitiesInRgl. The plugin should tolerate this laser retro value even if it's for an ignored entity.

To allow this case we just return in case the entity is ignored, also I added a more informative error message for the case we reach this point and the entity is not loaded yet.

msz-rai commented 4 months ago

@Roboterbastler Could you backport this bugfix to fortress branch also?