mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
fixed Windows build
This commit is contained in:
@@ -28,12 +28,14 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef REGISTRATION_H_
|
#ifndef REGISTRATION_H_
|
||||||
#define REGISTRATION_H_
|
#define REGISTRATION_H_
|
||||||
|
|
||||||
|
#include "rtabmap/core/RtabmapExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <rtabmap/core/Parameters.h>
|
#include <rtabmap/core/Parameters.h>
|
||||||
#include <rtabmap/core/Signature.h>
|
#include <rtabmap/core/Signature.h>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
class Registration
|
class RTABMAP_EXP Registration
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~Registration() {}
|
virtual ~Registration() {}
|
||||||
|
|||||||
@@ -28,13 +28,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef REGISTRATIONICP_H_
|
#ifndef REGISTRATIONICP_H_
|
||||||
#define REGISTRATIONICP_H_
|
#define REGISTRATIONICP_H_
|
||||||
|
|
||||||
|
#include "rtabmap/core/RtabmapExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <rtabmap/core/Registration.h>
|
#include <rtabmap/core/Registration.h>
|
||||||
#include <rtabmap/core/Signature.h>
|
#include <rtabmap/core/Signature.h>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
// Geometrical registration
|
// Geometrical registration
|
||||||
class RegistrationIcp : public Registration
|
class RTABMAP_EXP RegistrationIcp : public Registration
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegistrationIcp(const ParametersMap & parameters = ParametersMap());
|
RegistrationIcp(const ParametersMap & parameters = ParametersMap());
|
||||||
|
|||||||
@@ -28,13 +28,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef REGISTRATIONVIS_H_
|
#ifndef REGISTRATIONVIS_H_
|
||||||
#define REGISTRATIONVIS_H_
|
#define REGISTRATIONVIS_H_
|
||||||
|
|
||||||
|
#include "rtabmap/core/RtabmapExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <rtabmap/core/Registration.h>
|
#include <rtabmap/core/Registration.h>
|
||||||
#include <rtabmap/core/Signature.h>
|
#include <rtabmap/core/Signature.h>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
// Visual registration
|
// Visual registration
|
||||||
class RegistrationVis : public Registration
|
class RTABMAP_EXP RegistrationVis : public Registration
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegistrationVis(const ParametersMap & parameters = ParametersMap());
|
RegistrationVis(const ParametersMap & parameters = ParametersMap());
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ std::map<int, cv::Point3f> generateWords3DMono(
|
|||||||
int oi=0;
|
int oi=0;
|
||||||
for(unsigned int i=0; i<indexes.size(); ++i)
|
for(unsigned int i=0; i<indexes.size(); ++i)
|
||||||
{
|
{
|
||||||
std::multimap<int, cv::Point3f>::iterator iter = words3D.find(indexes[i]);
|
std::map<int, cv::Point3f>::iterator iter = words3D.find(indexes[i]);
|
||||||
if(util3d::isFinite(iter->second))
|
if(util3d::isFinite(iter->second))
|
||||||
{
|
{
|
||||||
iter->second.x *= scale;
|
iter->second.x *= scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user