Orocos math Service

The math_service package is an Orocos service that provides mathematical functions. These functions are taken from the C math library.

It is to be used in scripting. Once built, the package is available in scripting with the following scripting commands :

import("math-service")
.provide math

Then, the math service provides the following functions :

  • Trigonometric functions : cos, sin, tan, acos, asin, atan, atan2
  • Hyperbolic functions : cosh, sinh, tanh
  • Exponential and logarithmic functions : exp, ldexp, log, log10
  • Power functions : pow, sqrt
  • Rounding functions : ceil, fabs, floor, fmod
  • Constant values : HUGE_VAL, M_E , M_PI

A test script is available in 'tests'. From the build directory, you can launch it with the command

'ctest --verbose'