We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657b12d commit 44b4be8Copy full SHA for 44b4be8
RGLServerPlugin/src/Scene.cc
@@ -140,6 +140,15 @@ bool RGLServerPluginManager::SetLaserRetroCb(
140
const gz::sim::Entity& entity,
141
const gz::sim::components::LaserRetro* laser_retro)
142
{
143
+ if (entitiesToIgnore.contains(entity)) {
144
+ return true;
145
+ }
146
+
147
+ if (!entitiesInRgl.contains(entity)) {
148
+ gzerr << "Trying to set Laser Retro for entity (" << entity << ") not loaded to RGL!\n";
149
150
151
152
if (!CheckRGL(rgl_entity_set_laser_retro(entitiesInRgl.at(entity).first, laser_retro->Data()))) {
153
gzerr << "Failed to set Laser Retro for entity (" << entity << ").\n";
154
}
0 commit comments