-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export render and depth tensors #78
Conversation
@@ -70,7 +70,7 @@ target_link_libraries(gpudrive PRIVATE | |||
if (TARGET madrona_viz) | |||
add_executable(viewer viewer.cpp) | |||
target_link_libraries(viewer PRIVATE | |||
madrona_mw_core gpudrive_mgr madrona_viz) | |||
madrona_mw_core gpudrive_mgr madrona_viz nlohmann_json::nlohmann_json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SamanKazemkhani I vaguely remember a comment about this elsewhere too?
src/level_gen.cpp
Outdated
@@ -81,7 +81,7 @@ static inline Entity createAgent(Engine &ctx, const MapObject &agentInit) { | |||
{ | |||
trajectory.positions[i] = Vector2{.x = agentInit.position[i].x - ctx.data().mean.x + length, .y = agentInit.position[i].y - ctx.data().mean.y + width}; | |||
trajectory.velocities[i] = Vector2{.x = agentInit.velocity[i].x, .y = agentInit.velocity[i].y}; | |||
trajectory.headings[i] = toRadians(agentInit.heading[i]); | |||
trajectory.headings[i] = toRadians(agentInit.heading[i]) - M_PI_2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big thing. Why do we think this is right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change crept in :) Will remove that.
@@ -88,11 +128,27 @@ int main(int argc, char *argv[]) | |||
(math::Quat::angleAxis(0, math::up) * | |||
math::Quat::angleAxis(-math::pi / 2.f, math::right)).normalize(); | |||
|
|||
std::string path = "/home/aarav/gpudrive/nocturne_data"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid hardcoding if possible. Maybe we can assume a relative path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am approving but I would prefer we not merge until we address the two comments
This PR fixes the rendering using madrona.
mgr::step()
function.PS - This is rebased over #80 as without that fix, the sim just segfaults.