23 #ifndef MESSAGE_VAR_FLOAT20100317H 24 #define MESSAGE_VAR_FLOAT20100317H 26 #include "goby/util/as.h" 28 #include "message_var.h" 30 #include <boost/math/special_functions/fpclassify.hpp> 34 namespace transitional
40 double precision = 0);
42 void set_max(
double max) { max_ = max; }
43 void set_max(
const std::string& s) { set_max(util::as<double>(s)); }
45 void set_min(
double min) { min_ = min; }
46 void set_min(
const std::string& s) { set_min(util::as<double>(s)); }
48 void set_precision(
int precision) { precision_ = precision; }
49 void set_precision(
const std::string& s) { set_precision(util::as<int>(s)); }
51 int precision()
const {
return precision_; }
53 double min()
const {
return min_; }
54 double max()
const {
return max_; }
56 void set_max_delta(
double max_delta) { max_delta_ = max_delta; }
57 void set_max_delta(
const std::string& s) { set_max_delta(util::as<double>(s)); }
63 virtual void initialize_specific();
68 bool is_delta()
const {
return using_delta_differencing() && !is_key_frame_; }
70 bool using_delta_differencing()
const {
return !(boost::math::isnan)(max_delta_); }
DCCLType
Enumeration of DCCL types used for sending messages. dccl_enum and dccl_string primarily map to cpp_s...
The global namespace for the Goby project.