/** * @file VectorConfig.cpp * @brief Pose2Graph Configuration * @author Frank Dellaert */ #include "Pose2Config.h" #include "LieConfig-inl.h" using namespace std; namespace gtsam { /** Explicit instantiation of templated methods and functions */ template class LieConfig; template size_t dim(const LieConfig& c); template LieConfig expmap(const LieConfig& c, const Vector& delta); template LieConfig expmap(const LieConfig& c, const VectorConfig& delta); /* ************************************************************************* */ // TODO: local version, should probably defined in LieConfig static string symbol(char c, int index) { stringstream ss; ss << c << index; return ss.str(); } /* ************************************************************************* */ Pose2Config pose2Circle(size_t n, double R, char c) { Pose2Config x; double theta = 0, dtheta = 2*M_PI/n; for(size_t i=0;i