mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
Integrated DepthAI (gen2) (#696)
* Added OAK-D camera support (DepthAI) * Fixed build without DepthAI dependency * Added minimum version 2 for depthai * fixed trusty build
This commit is contained in:
@@ -233,7 +233,7 @@ bool CameraModel::load(const std::string & filePath)
|
||||
n = fs["camera_name"];
|
||||
if(n.type() != cv::FileNode::NONE)
|
||||
{
|
||||
name_ = (int)n;
|
||||
name_ = (std::string)n;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -766,7 +766,7 @@ bool CameraModel::inFrame(int u, int v) const
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const CameraModel& model)
|
||||
{
|
||||
os << "Name: " << model.name() << std::endl
|
||||
os << "Name: " << model.name().c_str() << std::endl
|
||||
<< "Size: " << model.imageWidth() << "x" << model.imageHeight() << std::endl
|
||||
<< "K= " << model.K_raw() << std::endl
|
||||
<< "D= " << model.D_raw() << std::endl
|
||||
|
||||
Reference in New Issue
Block a user