26 int main(
int argc,
char** argv) {
35 CmdLine cmd(
"Calculator for yaw to quaternion.",
' ',
"0.1");
40 std::cerr <<
"error: " << e.
error() <<
" for arg " << e.
argId() << std::endl;
42 Eigen::Quaternion<double> q;
43 q = Eigen::AngleAxis<double>(yaw, Eigen::Vector3d::UnitZ());
44 std::cout <<
"Quaternion: [x: " << q.x() <<
" y: " << q.y() <<
" z: " << q.z() <<
" w: " << q.w() <<
"]" << std::endl;
int main(int argc, char **argv)
std::string argId() const
std::string error() const
void parse(int argc, char **argv)