21 #include "../utility/TableHelper.hpp" 22 #include "../utility/GeometryHelper.hpp" 42 void rotateMarker(
const std::string& sourceFile,
const std::string& targetFile)
45 std::ifstream source(sourceFile, std::fstream::binary);
46 std::ofstream target(targetFile, std::fstream::trunc|std::fstream::binary);
47 target << source.rdbuf();
51 std::cout <<
"Objects count: " << objectsWithDbIds.size() << std::endl;
52 Eigen::Quaterniond eigenQuat;
53 Eigen::Matrix3d A, B, C;
54 for (std::pair<int, ObjectPtr> objectPair : objectsWithDbIds)
57 std::cout << objectPair.first <<
": " <<
object->type << std::endl;
59 A = eigenQuat.toRotationMatrix();
60 B = Eigen::AngleAxisd(0.5 * M_PI, Eigen::Vector3d::UnitX())
61 * Eigen::AngleAxisd(0, Eigen::Vector3d::UnitY())
62 * Eigen::AngleAxisd(0, Eigen::Vector3d::UnitZ());
63 std::cout << B << std::endl;
static Eigen::Quaternion< double > quatToEigenQuat(const QuaternionPtr &q)
const std::vector< std::pair< int, ObjectPtr > > getAllMarkerObjects()
void rotateMarker(const std::string &sourceFile, const std::string &targetFile)
this namespace contains all generally usable classes.
static QuaternionPtr eigenQuatToQuat(const Eigen::Quaternion< double > &q)
boost::shared_ptr< Object > ObjectPtr
int updateObjectQuaternion(int dbId, ObjectPtr object)