Tetrapod Project
utils.h
Go to the documentation of this file.
1 #ifndef utils_h
2 #define utils_h
3 
4 #include<cmath>
5 #include "drake/common/symbolic.h"
6 #include<Eigen/Core>
7 
8 #define _USE_MATH_DEFINES
9 
10 double wrap(double num, double range=2*M_PI, double offset=-M_PI);
11 
12 drake::symbolic::Expression drake_or(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2);
13 
14 drake::symbolic::Expression drake_and(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2);
15 
16 drake::symbolic::Expression drake_nor(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2);
17 
18 drake::symbolic::Expression drake_nand(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2);
19 
20 Eigen::MatrixXd get_sin_coeffs();
21 
22 Eigen::MatrixXd get_cos_coeffs();
23 #endif
Eigen::MatrixXd get_cos_coeffs()
Definition: utils.cpp:40
double wrap(double num, double range=2 *M_PI, double offset=-M_PI)
Definition: utils.cpp:3
Eigen::MatrixXd get_sin_coeffs()
Definition: utils.cpp:28
drake::symbolic::Expression drake_and(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
Definition: utils.cpp:13
drake::symbolic::Expression drake_nor(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
Definition: utils.cpp:18
drake::symbolic::Expression drake_nand(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
Definition: utils.cpp:23
drake::symbolic::Expression drake_or(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
Definition: utils.cpp:8