parent
1014bff8b2
commit
6458ac46f8
|
@ -8,20 +8,20 @@ class Feature2D
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
gtsam::Point2 m_p;
|
gtsam::Point2 m_p;
|
||||||
int m_idCamera; // id of the camera pose that makes this measurement
|
int m_idCamera; // id of the camera pose that makes this measurement
|
||||||
int m_idLandmark; // id of the 3D landmark that it is associated with
|
int m_idLandmark; // id of the 3D landmark that it is associated with
|
||||||
public:
|
public:
|
||||||
Feature2D(int idCamera, int idLandmark, gtsam::Point2 p)
|
Feature2D(int idCamera, int idLandmark, gtsam::Point2 p)
|
||||||
:m_idCamera(idCamera),
|
:m_idCamera(idCamera),
|
||||||
m_idLandmark(idLandmark),
|
m_idLandmark(idLandmark),
|
||||||
m_p(p)
|
m_p(p)
|
||||||
{};
|
{};
|
||||||
|
|
||||||
void print(const std::string& s = "") const
|
void print(const std::string& s = "") const
|
||||||
{
|
{
|
||||||
std::cout << s << std::endl;
|
std::cout << s << std::endl;
|
||||||
std::cout << "Pose id: " << m_idCamera << " -- Landmark id: " << m_idLandmark << std::endl;
|
std::cout << "Pose id: " << m_idCamera << " -- Landmark id: " << m_idLandmark << std::endl;
|
||||||
m_p.print("\tMeasurement: ");
|
m_p.print("\tMeasurement: ");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,13 @@ sources =
|
||||||
check_PROGRAMS =
|
check_PROGRAMS =
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
noinst_PROGRAMS = vSLAMexample
|
noinst_PROGRAMS = vSFMexample
|
||||||
vSLAMexample_includedir = .
|
vSFMexample_includedir = .
|
||||||
vSLAMexample_SOURCES = vSLAMexample.cpp Feature2D.cpp landmarkUtils.cpp
|
vSFMexample_SOURCES = vSFMexample.cpp Feature2D.cpp vSLAMutils.cpp
|
||||||
|
|
||||||
|
noinst_PROGRAMS += vISAMexample
|
||||||
|
vISAMexample_includedir = .
|
||||||
|
vISAMexample_SOURCES = vISAMexample.cpp Feature2D.cpp vSLAMutils.cpp
|
||||||
#----------------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------------
|
||||||
# rules to build local programs
|
# rules to build local programs
|
||||||
#----------------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* @author Michael Kaess
|
* @author Michael Kaess
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/assign/std/list.hpp> // for operator +=
|
#include <boost/assign/std/list.hpp> // for operator +=
|
||||||
using namespace boost::assign;
|
using namespace boost::assign;
|
||||||
|
|
Loading…
Reference in New Issue