Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
navtypes.h
1#pragma once
2
3#include <vector>
4
5#include <Eigen/Core>
6
7namespace navtypes {
8
12 double lat;
14 double lon;
15};
16
17/* @brief Euler angles to represent orientation. Rotation ordering is XYZ extrinsic
18 * rotations.
19 *
20 * @see https://en.wikipedia.org/wiki/Euler_angles#Tait%E2%80%93Bryan_angles
21 */
23 double roll;
24 double pitch;
25 double yaw;
26};
27
28using pose_t = Eigen::Vector3d; // Robot pose: x, y, theta
29using transform_t = Eigen::Matrix3d; // a pose in matrix form; see toPose below
30using trajectory_t = std::vector<transform_t>;
31
32template <int rows, int cols> using Matrixd = Eigen::Matrix<double, rows, cols>;
33
34template <int dim> using Vectord = Eigen::Matrix<double, dim, 1>;
35
36template <int dim, int dim2 = 1> using Arrayd = Eigen::Array<double, dim, dim2>;
37
38using point_t =
39 Eigen::Vector3d; // x, y, 1 (or 0, 0, 0 to represent "no data")
40 // The 1 at the end makes calculating affine transforms easier.
41using points_t = std::vector<point_t>;
42
43} // namespace navtypes
Definition navtypes.h:22
Represents a GPS coordinate in degrees.
Definition navtypes.h:10
double lat
the latitude of the gps coordinate, in degrees
Definition navtypes.h:12
double lon
the longitude of the gps coordinate, in degrees
Definition navtypes.h:14