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;
16 double alt;
17};
18
19/* @brief Euler angles to represent orientation. Rotation ordering is XYZ extrinsic
20 * rotations.
21 *
22 * @see https://en.wikipedia.org/wiki/Euler_angles#Tait%E2%80%93Bryan_angles
23 */
25 double roll;
26 double pitch;
27 double yaw;
28};
29
30using pose_t = Eigen::Vector3d; // Robot pose: x, y, theta
31using transform_t = Eigen::Matrix3d; // a pose in matrix form; see toPose below
32using trajectory_t = std::vector<transform_t>;
33
34template <int rows, int cols>
36
37template <int dim>
38using Vectord = Eigen::Matrix<double, dim, 1>;
39
40template <int dim, int dim2 = 1>
42
43using point_t =
44 Eigen::Vector3d; // x, y, 1 (or 0, 0, 0 to represent "no data")
45 // The 1 at the end makes calculating affine transforms easier.
46using points_t = std::vector<point_t>;
47
48} // namespace navtypes
Definition navtypes.h:24
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 alt
the altitude of the gps coordinate, in meters
Definition navtypes.h:16
double lon
the longitude of the gps coordinate, in degrees
Definition navtypes.h:14