mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
fixed some warnings
This commit is contained in:
@@ -130,7 +130,7 @@ bool CameraModel::load(const std::string & filePath)
|
|||||||
|
|
||||||
bool CameraModel::save(const std::string & filePath)
|
bool CameraModel::save(const std::string & filePath)
|
||||||
{
|
{
|
||||||
if(!filePath.empty() && !name_.empty() && !K_.empty() && !D_.empty(), !R_.empty(), !P_.empty())
|
if(!filePath.empty() && !name_.empty() && !K_.empty() && !D_.empty() && !R_.empty() && !P_.empty())
|
||||||
{
|
{
|
||||||
UINFO("Saving calibration to file \"%s\"", filePath.c_str());
|
UINFO("Saving calibration to file \"%s\"", filePath.c_str());
|
||||||
cv::FileStorage fs(filePath, cv::FileStorage::WRITE);
|
cv::FileStorage fs(filePath, cv::FileStorage::WRITE);
|
||||||
|
|||||||
@@ -1032,7 +1032,8 @@ CameraFreenect2::CameraFreenect2(int deviceId, float imageRate, const Transform
|
|||||||
CameraRGBD(imageRate, localTransform),
|
CameraRGBD(imageRate, localTransform),
|
||||||
deviceId_(deviceId),
|
deviceId_(deviceId),
|
||||||
freenect2_(0),
|
freenect2_(0),
|
||||||
dev_(0)
|
dev_(0),
|
||||||
|
listener_(0)
|
||||||
{
|
{
|
||||||
#ifdef WITH_FREENECT2
|
#ifdef WITH_FREENECT2
|
||||||
freenect2_ = new libfreenect2::Freenect2();
|
freenect2_ = new libfreenect2::Freenect2();
|
||||||
|
|||||||
Reference in New Issue
Block a user