From 811da8f9d0b34068ee45bb7e2a06a8be0aec0d7e Mon Sep 17 00:00:00 2001 From: Emiliano Borghi Date: Fri, 16 Apr 2021 21:48:53 -0300 Subject: [PATCH] Remove warning message in verbose mode when using gpu rays or depth cameras (#2972) --- gazebo/msgs/msgs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazebo/msgs/msgs.cc b/gazebo/msgs/msgs.cc index 8ab2b8a4ec..ce12d7da48 100644 --- a/gazebo/msgs/msgs.cc +++ b/gazebo/msgs/msgs.cc @@ -1817,12 +1817,12 @@ namespace gazebo if (_sdf->HasElement("topic")) result.set_topic(_sdf->Get("topic")); - if (type == "camera") + if (type == "camera" || type == "depth") { result.mutable_camera()->CopyFrom( msgs::CameraSensorFromSDF(_sdf->GetElement("camera"))); } - else if (type == "ray") + else if (type == "ray" || type == "gpu_ray") { result.mutable_ray()->CopyFrom(msgs::RaySensorFromSDF( _sdf->GetElement("ray")));