Skip to content

Commit

Permalink
Merge branch 'main' into feat/align_data_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravpandya committed Dec 16, 2024
2 parents 42c6565 + c353cb7 commit 01b2e2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygpudrive/datatypes/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(self, abs_self_obs_tensor: torch.Tensor):
self.pos_x = abs_self_obs_tensor[:, :, 0]
self.pos_y = abs_self_obs_tensor[:, :, 1]
self.pos_z = abs_self_obs_tensor[:, :, 2]
self.rotation_as_quaternion = abs_self_obs_tensor[:, :, 3:6]
self.rotation_as_quaternion = abs_self_obs_tensor[:, :, 3:7]
self.rotation_angle = abs_self_obs_tensor[:, :, 7]
self.goal_x = abs_self_obs_tensor[:, :, 8]
self.goal_y = abs_self_obs_tensor[:, :, 9]
Expand Down
2 changes: 1 addition & 1 deletion src/consts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace gpudrive {

namespace consts {

inline constexpr madrona::CountT kMaxAgentCount = 32;
inline constexpr madrona::CountT kMaxAgentCount = 128;
inline constexpr madrona::CountT kMaxRoadEntityCount = 10000;
inline constexpr madrona::CountT kMaxAgentMapObservationsCount = 128;

Expand Down
1 change: 1 addition & 0 deletions src/sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ inline void collectAbsoluteObservationsSystem(Engine &ctx,
out.rotation.rotationFromAxis = utils::quatToYaw(rotation);
out.goal = goal;
out.vehicle_size = vehicleSize;
out.id = ctx.get<AgentID>(agent_iface.e).id;
}

void setupRestOfTasks(TaskGraphBuilder &builder, const Sim::Config &cfg,
Expand Down

0 comments on commit 01b2e2b

Please sign in to comment.