3 double wrap(
double num,
double range,
double offset)
5 return offset + std::fmod(num - offset, range);
8 drake::symbolic::Expression
drake_or(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
10 return b1 + b2 - b1*b2;
13 drake::symbolic::Expression
drake_and(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
18 drake::symbolic::Expression
drake_nor(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
20 return 1 + b1*b2 - b1 - b2;
23 drake::symbolic::Expression
drake_nand(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)
30 Eigen::Matrix<double, 5, 2> res;
42 Eigen::Matrix<double, 5, 2> res;
Eigen::MatrixXd get_cos_coeffs()
double wrap(double num, double range, double offset)
Eigen::MatrixXd get_sin_coeffs()
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)
drake::symbolic::Expression drake_or(drake::symbolic::Variable &b1, drake::symbolic::Variable &b2)