5 #ifndef __pinocchio_math_fwd_hpp__ 6 #define __pinocchio_math_fwd_hpp__ 8 #include "pinocchio/fwd.hpp" 10 #include <boost/math/constants/constants.hpp> 11 #include "pinocchio/math/sincos.hpp" 13 #ifdef PINOCCHIO_WITH_CPPAD_SUPPORT 22 template<
typename Scalar>
23 struct constant_pi<
CppAD::AD<Scalar> > : constant_pi<Scalar> {};
25 #if defined(PINOCCHIO_WITH_CPPADCG_SUPPORT) && defined(PINOCCHIO_WITH_CXX11_SUPPORT) 26 template<
typename Scalar>
27 struct constant_pi< CppAD::cg::CG<Scalar> > : constant_pi<Scalar> {};
42 template<
typename Scalar>
44 {
return boost::math::constants::pi<Scalar>(); }
57 #ifdef PINOCCHIO_WITH_CPPAD_SUPPORT 73 #endif //#ifndef __pinocchio_math_fwd_hpp__
const Scalar PI()
Returns the value of PI according to the template parameters Scalar.
Source from #include <cppad/example/cppad_eigen.hpp>
Main pinocchio namespace.