diff --git a/cpp/scenario/gazebo/src/Model.cpp b/cpp/scenario/gazebo/src/Model.cpp index e2b65d94c..4e5d58946 100644 --- a/cpp/scenario/gazebo/src/Model.cpp +++ b/cpp/scenario/gazebo/src/Model.cpp @@ -1002,14 +1002,13 @@ Model::depthCamera(const std::string& name) const throw std::runtime_error("Failed to find depth camera '" + name + "'"); } + // TODO: cache the object auto depthCamera = std::make_shared(); - sError << "initializing" << std::endl; if (!depthCamera->initialize(depthCameraEntity, m_ecm, m_eventManager)) { throw std::runtime_error("Failed to initialize depth camera '" + name + "'"); } - sError << "post initializing" << std::endl; return depthCamera; }