Tetrapod Project
utils.h File Reference
#include <cmath>
#include "drake/common/symbolic.h"
#include <Eigen/Core>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 

Functions

double wrap (double num, double range=2 *M_PI, double offset=-M_PI)
 
drake::symbolic::Expression drake_or (drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
 
drake::symbolic::Expression drake_and (drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
 
drake::symbolic::Expression drake_nor (drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
 
drake::symbolic::Expression drake_nand (drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
 
Eigen::MatrixXd get_sin_coeffs ()
 
Eigen::MatrixXd get_cos_coeffs ()
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 8 of file utils.h.

Function Documentation

◆ wrap()

double wrap ( double  num,
double  range = 2 *M_PI,
double  offset = -M_PI 
)

Definition at line 3 of file utils.cpp.

◆ drake_or()

drake::symbolic::Expression drake_or ( drake::symbolic::Variable &  b1,
drake::symbolic::Variable &  b2 
)

Definition at line 8 of file utils.cpp.

◆ drake_and()

drake::symbolic::Expression drake_and ( drake::symbolic::Variable &  b1,
drake::symbolic::Variable &  b2 
)

Definition at line 13 of file utils.cpp.

◆ drake_nor()

drake::symbolic::Expression drake_nor ( drake::symbolic::Variable &  b1,
drake::symbolic::Variable &  b2 
)

Definition at line 18 of file utils.cpp.

◆ drake_nand()

drake::symbolic::Expression drake_nand ( drake::symbolic::Variable &  b1,
drake::symbolic::Variable &  b2 
)

Definition at line 23 of file utils.cpp.

◆ get_sin_coeffs()

Eigen::MatrixXd get_sin_coeffs ( )

Definition at line 28 of file utils.cpp.

◆ get_cos_coeffs()

Eigen::MatrixXd get_cos_coeffs ( )

Definition at line 40 of file utils.cpp.