Skip to content

Commit

Permalink
Fix improper C++ Choreo event marker parsing (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Mar 26, 2024
1 parent 0eaa710 commit 3642952
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -206,7 +206,7 @@ std::shared_ptr<PathPlannerPath> PathPlannerPath::fromChoreoTrajectory(
units::second_t timestamp { m.at("timestamp").get<double>() };

EventMarker eventMarker = EventMarker(timestamp(),
CommandUtil::commandFromJson(json.at("command"), false));
CommandUtil::commandFromJson(m.at("command"), false));

path->m_eventMarkers.emplace_back(eventMarker);
eventCommands.emplace_back(timestamp, eventMarker.getCommand());
Expand Down

0 comments on commit 3642952

Please sign in to comment.