LaserConfig::LaserConfig() { setLaserType(UMKNOWN_PROXIMITY_SENSOR); setStartAngle(-0.5*M_PI); setFOV(M_PI); setAngularResolution(carmen_degrees_to_radians(1.0)); setMaximumRange(81.9); setAccuracy(0.01); setRemissionMode(REMISSION_NONE); }
bool IrSensor::setSlotMaximumRange(const base::Number* const msg) { double value = 0.0; const auto d = dynamic_cast<const base::Distance*>(msg); if (d != nullptr) { base::Meters m; value = static_cast<double>(m.convert(*d)); } else if (msg != nullptr) { value = msg->getReal(); } setMaximumRange(value); return true; }
int QtMultiSlider::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QProgressBar::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: maximumExceeded((*reinterpret_cast< bool(*)>(_a[1]))); break; case 1: minimumExceeded((*reinterpret_cast< bool(*)>(_a[1]))); break; case 2: setMaximumRange((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: setMinimumRange((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: setValue((*reinterpret_cast< int(*)>(_a[1]))); break; case 5: checkMinimumRange((*reinterpret_cast< int(*)>(_a[1]))); break; case 6: checkMaximumRange((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 7; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QString*>(_v) = skin(); break; } _id -= 1; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setSkin(*reinterpret_cast< QString*>(_v)); break; } _id -= 1; } else if (_c == QMetaObject::ResetProperty) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 1; } #endif // QT_NO_PROPERTIES return _id; }