5 #ifndef PROJECT_IMUSIMULATOR_H 6 #define PROJECT_IMUSIMULATOR_H 22 simSettings.vectornav_imu_gyro_noise),
24 -simSettings.vectornav_imu_accelerometer_noise,
25 simSettings.vectornav_imu_accelerometer_noise),
27 simSettings.vectornav_imu_quat_noise) {
28 if (simSettings.vectornav_imu_quat_noise != 0) {
41 std::uniform_real_distribution<float>& dist,
56 #endif // PROJECT_IMUSIMULATOR_H std::uniform_real_distribution< float > _vectornavQuatDistribution
void updateCheaterState(const FBModelState< T > &robotState, const FBModelStateDerivative< T > &robotStateD, CheaterState< T > &state)
ImuSimulator(SimulatorControlParameters &simSettings, u64 seed=0)
SimulatorControlParameters & _simSettings
bool _vectorNavOrientationNoise
typename Eigen::Matrix< T, 3, 1 > Vec3
void updateVectornav(const FBModelState< T > &robotState, const FBModelStateDerivative< T > &robotStateD, VectorNavData *data)
std::uniform_real_distribution< float > _vectornavGyroDistribution
std::uniform_real_distribution< float > _vectornavAccelerometerDistribution
void computeAcceleration(const FBModelState< T > &robotState, const FBModelStateDerivative< T > &robotStateD, Vec3< float > &acc, std::uniform_real_distribution< float > &dist, const RotMat< float > &R_body)
typename Eigen::Matrix< T, 3, 3 > RotMat
Implementation of Rigid Body Floating Base model data structure.