mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 09:49:06 +08:00
simulator_ignition_bridge: fix double promotions
This commit is contained in:
parent
085ec0e8ef
commit
eaa9eae472
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user