Skip to content

Commit

Permalink
Remove warning message in verbose mode when using gpu rays or depth c…
Browse files Browse the repository at this point in the history
…ameras (#2972)
  • Loading branch information
eborghi10 authored Apr 17, 2021
1 parent 0c8d93b commit 811da8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gazebo/msgs/msgs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1817,12 +1817,12 @@ namespace gazebo
if (_sdf->HasElement("topic"))
result.set_topic(_sdf->Get<std::string>("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")));
Expand Down

0 comments on commit 811da8f

Please sign in to comment.