gz: remove model spawn offset (#24165)

This commit is contained in:
Jacob Dahl
2025-01-21 14:47:25 -09:00
committed by GitHub
parent 918eca8de4
commit a3215419d7

View File

@@ -95,12 +95,6 @@ int GZBridge::init()
model_pose_v.push_back(0.0);
}
// If model position z is less equal than 0, move above floor to prevent floor glitching
if (model_pose_v[2] <= 0.0) {
PX4_INFO("Model position z is less or equal 0.0, moving upwards");
model_pose_v[2] = 0.5;
}
gz::msgs::Pose *p = req.mutable_pose();
gz::msgs::Vector3d *position = p->mutable_position();
position->set_x(model_pose_v[0]);