You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have commands bound to using pathFindThenFollowPath to get the robot lined up at each of the Coral Stations. It seems to work in the simulator until we change alliances. Then we get strange behavior where the robot will make a b-line for the opposite side of the field and then go back. See the attached recording.
Now, if we run the simulator, we can use the bindings to move the robot to the appropriate place. Then, if I 'disconnect' in the simulator GUI, change the alliance color (in the video, we change it from red to blue), then go back to teleop and run the commands, you'll see the robot go way across to the other side of the field before coming back to the blue side.
I also have a question, which may be related. Why is it that there seem to be 2 path finding operations when one is a line to a pose near the start of the path and then there's a curvy line to the start of the path, and then the path. And in the case where it's going across the field, that first part does not respect the navgrid obstacles.
Expected behavior
The robot should go directly towards the path that we've specified without going through obstacles.
Versions: (please complete the following information):
OS: Windows 11
GUI Version: 2025.2.2
PPLib Version: 2025.2.2
PPLib Language: Java
The text was updated successfully, but these errors were encountered:
Try switching from the disconnected state to the disabled state before you switch to the enabled state. I’ve seen the simulator do this before because it doesn’t report the right alliance immediately after going from disconnected to enabled. This isn’t an issue on a real robot.
Unfortunately, that did not seem to help. The robot still does the same weirdness on that first path--going to the other side of the field and not respecting the obstacles.
Describe the bug
We have commands bound to using pathFindThenFollowPath to get the robot lined up at each of the Coral Stations. It seems to work in the simulator until we change alliances. Then we get strange behavior where the robot will make a b-line for the opposite side of the field and then go back. See the attached recording.
Recording 2025-02-11 150723.zip
To Reproduce
Our AutoBuilder is configured like this:
Utils::allianceIsFlipped is defined like this:
The path looks like
and here is its json file:
Path Find - CS Right.zip
Now, if we run the simulator, we can use the bindings to move the robot to the appropriate place. Then, if I 'disconnect' in the simulator GUI, change the alliance color (in the video, we change it from red to blue), then go back to teleop and run the commands, you'll see the robot go way across to the other side of the field before coming back to the blue side.
I also have a question, which may be related. Why is it that there seem to be 2 path finding operations when one is a line to a pose near the start of the path and then there's a curvy line to the start of the path, and then the path. And in the case where it's going across the field, that first part does not respect the navgrid obstacles.
Expected behavior
The robot should go directly towards the path that we've specified without going through obstacles.
Versions: (please complete the following information):
The text was updated successfully, but these errors were encountered: