Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Toggle main menu visibility
Loading...
Searching...
No Matches
src
navtypes.h
1
#pragma once
2
3
#include <
vector
>
4
5
#include <Eigen/Core>
6
7
namespace
navtypes {
8
10
struct
gpscoords_t
{
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
*/
24
struct
eulerangles_t
{
25
double
roll;
26
double
pitch;
27
double
yaw;
28
};
29
30
using
pose_t = Eigen::Vector3d;
// Robot pose: x, y, theta
31
using
transform_t = Eigen::Matrix3d;
// a pose in matrix form; see toPose below
32
using
trajectory_t =
std::vector<transform_t>
;
33
34
template
<
int
rows,
int
cols>
35
using
Matrixd =
Eigen::Matrix<double, rows, cols>
;
36
37
template
<
int
dim>
38
using
Vectord =
Eigen::Matrix<double, dim, 1>
;
39
40
template
<
int
dim,
int
dim2 = 1>
41
using
Arrayd =
Eigen::Array<double, dim, dim2>
;
42
43
using
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.
46
using
points_t =
std::vector<point_t>
;
47
48
}
// namespace navtypes
vector
std::vector
Eigen::Array
Eigen::Matrix
navtypes::eulerangles_t
Definition
navtypes.h:24
navtypes::gpscoords_t
Represents a GPS coordinate in degrees.
Definition
navtypes.h:10
navtypes::gpscoords_t::lat
double lat
the latitude of the gps coordinate, in degrees
Definition
navtypes.h:12
navtypes::gpscoords_t::alt
double alt
the altitude of the gps coordinate, in meters
Definition
navtypes.h:16
navtypes::gpscoords_t::lon
double lon
the longitude of the gps coordinate, in degrees
Definition
navtypes.h:14
Generated by
1.17.0