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