Skip to content

Commit

Permalink
fix flipped choreo markers in other languages
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Mar 6, 2024
1 parent 03bb931 commit db1bd38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pathplannerlib-python/pathplannerlib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,8 @@ def flipPath(self) -> PathPlannerPath:

path._allPoints = pathPoints
path._isChoreoPath = True
path._choreoTrajectory = PathPlannerTrajectory(None, None, None, states=mirroredStates)
path._choreoTrajectory = PathPlannerTrajectory(None, None, None, states=mirroredStates,
event_commands=self._choreoTrajectory.getEventCommands())

return path

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,8 @@ std::shared_ptr<PathPlannerPath> PathPlannerPath::flipPath() {

path->m_allPoints = pathPoints;
path->m_isChoreoPath = true;
path->m_choreoTrajectory = PathPlannerTrajectory(mirroredStates);
path->m_choreoTrajectory = PathPlannerTrajectory(mirroredStates,
m_choreoTrajectory.getEventCommands());

return path;
}
Expand Down

0 comments on commit db1bd38

Please sign in to comment.