Commits

Anonymous committed d00c059

setting retro values to models that specify it

Comments (0)

Files changed (1)

gazebo/physics/Collision.cc

 {
   Entity::Load(_sdf);
 
+  float retro;
+  if (this->sdf->HasElement("laser_retro"))
+    {
+      retro = this->sdf->GetElement("laser_retro")->GetValueDouble();
+      this->SetLaserRetro(retro);
+    }
+
   this->SetRelativePose(this->sdf->GetValuePose("pose"));
 
   this->surface->Load(this->sdf->GetElement("surface"));