Troubleshooting & FAQ
Encountering an issue with the Visualizer? Here are some of the most common problems and their solutions.
Installation & Startup
Section titled “Installation & Startup”macOS: “App is damaged and can’t be opened. You should move it to the Trash.”
Section titled “macOS: “App is damaged and can’t be opened. You should move it to the Trash.””This is a common issue caused by Apple’s Gatekeeper quarantining apps not distributed through the Mac App Store.
Solution:
- Move the app to your
Applicationsfolder. - Open the Terminal app.
- Run the following command:
Terminal window sudo xattr -rd com.apple.quarantine "/Applications/Pedro Pathing Plus Visualizer.app" - Enter your password when prompted and try opening the app again.
The app opens to a blank screen or fails to load.
Section titled “The app opens to a blank screen or fails to load.”This usually happens if the configuration file gets corrupted.
Solution:
- Use the Reset Keybinds or Reset Settings options in the Command Palette (
Ctrl+P/Cmd+P). - Alternatively, you can clear the local storage. Open the developer tools (
Ctrl+Shift+I/Cmd+Shift+I), go to the Application tab, and clear Local Storage.
Live View Connectivity
Section titled “Live View Connectivity”The Visualizer cannot connect to the robot (Live View).
Section titled “The Visualizer cannot connect to the robot (Live View).”The Live View server operates over TCP on port 8888.
Checklist:
- Network Connection: Ensure your computer is connected to the same Wi-Fi network as the Robot Controller (e.g., the Control Hub’s Wi-Fi network).
- OpMode Running: The
PedroPathingLiveView.getInstance().start()method must be actively running in your initialized OpMode. - Firewall: Ensure your computer’s firewall is not blocking outbound connections to port 8888.
Path Optimization
Section titled “Path Optimization”The optimizer crashes or fails to find a valid path.
Section titled “The optimizer crashes or fails to find a valid path.”The Path Optimizer relies on a clear understanding of your robot’s size and field obstacles.
Solutions:
- Check Robot Dimensions: Go to Settings > Robot and ensure your robot length and width are realistic (e.g., 18 inches).
- Check Obstacles: Make sure you haven’t placed obstacles in a way that creates an impossible path (e.g., boxing in the start point).
- Increase Iterations: If the path is complex, increase the Optimization Iterations in Settings to give the algorithm more time to solve it.
Code Export
Section titled “Code Export”The exported Java code has red errors regarding missing packages.
Section titled “The exported Java code has red errors regarding missing packages.”When you export Java code, the visualizer uses a default package name, which likely doesn’t match your team’s project structure.
Solution:
- In the Export dialog, enter your team’s specific package name in the Package Name field before copying the code (e.g.,
org.firstinspires.ftc.teamcode.autonomous). - Ensure you have properly installed the PedroPathingPlus libraries in your Gradle project (see the Installation Guide).
My robot doesn’t follow the exported path smoothly.
Section titled “My robot doesn’t follow the exported path smoothly.”If the simulation looks smooth but the real robot struggles:
Solutions:
- Tuning: Ensure your Pedro Pathing PID constants (Translational, Heading, Centripetal) are correctly tuned for your specific drivetrain. The visualizer assumes a perfectly tuned robot.
- Constraints Match: Double-check that the max velocity and acceleration settings in the Visualizer’s Motion settings match the
Constants.javaon your robot. If the visualizer allows unrealistic speeds, the real robot will fail to follow the geometry.