Skip to content

Commit

Permalink
sq Model.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 13, 2020
1 parent 4035cba commit e65d2b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/scenario/gazebo/src/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<sensors::DepthCamera>();

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;
}
Expand Down

0 comments on commit e65d2b4

Please sign in to comment.