mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-12 12:59:51 +08:00
Updated --version info
This commit is contained in:
@@ -38,6 +38,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include "SimpleIni.h"
|
#include "SimpleIni.h"
|
||||||
|
#include <opencv2/core/version.hpp>
|
||||||
|
#include <pcl/pcl_config.h>
|
||||||
|
#include <vtkVersion.h>
|
||||||
|
|
||||||
namespace rtabmap
|
namespace rtabmap
|
||||||
{
|
{
|
||||||
@@ -565,12 +568,12 @@ ParametersMap Parameters::parseArguments(int argc, char * argv[], bool onlyParam
|
|||||||
|
|
||||||
int spacing = 30;
|
int spacing = 30;
|
||||||
std::cout << str << std::setw(spacing - str.size()) << RTABMAP_VERSION << std::endl;
|
std::cout << str << std::setw(spacing - str.size()) << RTABMAP_VERSION << std::endl;
|
||||||
|
str = "PCL:";
|
||||||
|
std::cout << str << std::setw(spacing - str.size()) << PCL_VERSION_PRETTY << std::endl;
|
||||||
|
str = "VTK:";
|
||||||
|
std::cout << str << std::setw(spacing - str.size()) << vtkVersion::GetVTKVersion() << std::endl;
|
||||||
str = "OpenCV:";
|
str = "OpenCV:";
|
||||||
#ifdef RTABMAP_OPENCV3
|
std::cout << str << std::setw(spacing - str.size()) << CV_VERSION << std::endl;
|
||||||
std::cout << str << std::setw(spacing - str.size()) << "3" << std::endl;
|
|
||||||
#else
|
|
||||||
std::cout << str << std::setw(spacing - str.size()) << "2" << std::endl;
|
|
||||||
#endif
|
|
||||||
str = "With OpenCV nonfree:";
|
str = "With OpenCV nonfree:";
|
||||||
#ifdef RTABMAP_NONFREE
|
#ifdef RTABMAP_NONFREE
|
||||||
std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl;
|
std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl;
|
||||||
@@ -732,6 +735,12 @@ ParametersMap Parameters::parseArguments(int argc, char * argv[], bool onlyParam
|
|||||||
std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl;
|
std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl;
|
||||||
#else
|
#else
|
||||||
std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl;
|
std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl;
|
||||||
|
#endif
|
||||||
|
str = "With VINS-Fusion:";
|
||||||
|
#ifdef RTABMAP_VINS
|
||||||
|
std::cout << str << std::setw(spacing - str.size()) << "true" << std::endl;
|
||||||
|
#else
|
||||||
|
std::cout << str << std::setw(spacing - str.size()) << "false" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user