Skip to content

Commit 80cf7e8

Browse files
authored
Check RGBD camera sensor connection (#1513)
Signed-off-by: Ian Chen <[email protected]>
1 parent b26a573 commit 80cf7e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/systems/sensors/Sensors.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,11 @@ bool SensorsPrivate::HasConnections(sensors::RenderingSensor *_sensor) const
841841

842842
// \todo(iche033) Remove this function once a virtual
843843
// sensors::RenderingSensor::HasConnections function is available
844+
{
845+
auto s = dynamic_cast<sensors::RgbdCameraSensor *>(_sensor);
846+
if (s)
847+
return s->HasConnections();
848+
}
844849
{
845850
auto s = dynamic_cast<sensors::DepthCameraSensor *>(_sensor);
846851
if (s)

0 commit comments

Comments
 (0)