simulator_ignition_bridge: fix double promotions

This commit is contained in:
Daniel Agar 2022-09-16 11:15:41 -04:00
parent 085ec0e8ef
commit eaa9eae472

View File

@ -76,14 +76,14 @@ int SimulatorIgnitionBridge::init()
if (!_model_pose.empty()) {
PX4_INFO("Requested Model Position: %s", _model_pose.c_str());
std::vector<float> model_pose_v;
std::vector<double> model_pose_v;
std::stringstream ss(_model_pose);
while (ss.good()) {
std::string substr;
std::getline(ss, substr, ',');
model_pose_v.push_back(std::stof(substr));
model_pose_v.push_back(std::stod(substr));
}
while (model_pose_v.size() < 6) {