Drake
Drake C++ Documentation
gray_code.h File Reference
#include <Eigen/Core>
#include "drake/common/drake_assert.h"
Include dependency graph for gray_code.h:

Classes

struct  GrayCodesMatrix< NumDigits >
 GrayCodesMatrix::type returns an Eigen matrix of integers. More...
 

Namespaces

 drake
 
 drake::math
 

Functions

template<int NumDigits = Eigen::Dynamic>
GrayCodesMatrix< NumDigits >::type CalculateReflectedGrayCodes (int num_digits=NumDigits)
 Returns a matrix whose i'th row is the Gray code for integer i. More...
 
int GrayCodeToInteger (const Eigen::Ref< const Eigen::VectorXi > &gray_code)
 Converts the Gray code to an integer. More...