Skip to content

Commit d52dbce

Browse files
committed
Merge remote-tracking branch 'upstream/main' into wbk/1026
2 parents a3df2dc + aa48a43 commit d52dbce

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/level_gen.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,13 @@ void createPaddingEntities(Engine &ctx) {
318318
}
319319
auto &self_obs = ctx.get<SelfObservation>(agent_iface);
320320
self_obs = SelfObservation::zero();
321+
322+
auto &abs_self_obs = ctx.get<AbsoluteSelfObservation>(agent_iface);
323+
abs_self_obs.position = Vector3::zero();
324+
abs_self_obs.rotation = AbsoluteRotation{.rotationAsQuat = Quat{1, 0, 0, 0}, .rotationFromAxis = 0};
325+
abs_self_obs.goal = Goal{.position = {0, 0}};
326+
abs_self_obs.vehicle_size = VehicleSize{.length = 0, .width = 0, .height = 0};
327+
abs_self_obs.id = -1.0f;
321328

322329
auto &partner_obs = ctx.get<PartnerObservations>(agent_iface);
323330
for (CountT i = 0; i < consts::kMaxAgentCount-1; i++) {

0 commit comments

Comments
 (0)