ekf2_test: use motion_planning for dynamic yaw emergency test

This commit is contained in:
bresch
2021-10-21 15:07:40 +02:00
committed by Daniel Agar
parent 340a2caa8e
commit f4c21cedd9
3 changed files with 15 additions and 12 deletions
@@ -366,6 +366,13 @@ void SensorSimulator::setSensorDataFromTrajectory()
-vel_body(0) * flow_sample.dt / distance_to_ground);
_flow.setData(flow_sample);
}
if (_gps.isRunning()) {
/* _gps.setAltitude(); */
/* _gps.setLatitude(); */
/* _gps.setLongitude(); */
_gps.setVelocity(vel_world);
}
}
void SensorSimulator::setGpsLatitude(const double latitude)
@@ -113,6 +113,8 @@ public:
void setImuBias(Vector3f accel_bias, Vector3f gyro_bias);
void simulateOrientation(Quatf orientation);
void setOrientation(const Quatf &orientation) { _R_body_to_world = Dcmf(orientation); }
void setOrientation(const Dcmf &orientation) { _R_body_to_world = orientation; }
void loadSensorDataFromFile(std::string filename);