Guest User

Untitled

a guest
Feb 27th, 2024
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. 23:04:07:880 ERROR : robotpy : The robot program quit unexpectedly. This is usually due to a code error.
  2. The above stacktrace can help determine where the error occurred.
  3. Traceback (most recent call last):
  4. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\wpilib\_impl\start.py", line 160, in start
  5. return self._start(robot_cls)
  6. ^^^^^^^^^^^^^^^^^^^^^^
  7. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\wpilib\_impl\start.py", line 247, in _start
  8. self.robot.startCompetition()
  9. File "C:\Users\caden\Documents\GitHub\2024DumpsterFire\robot.py", line 23, in robotInit
  10. self.container = RobotContainer()
  11. ^^^^^^^^^^^^^^^^
  12. File "C:\Users\caden\Documents\GitHub\2024DumpsterFire\robotcontainer.py", line 62, in __init__
  13. self.auto_chooser.setDefaultOption("2 Note Amp", PathPlannerAuto("2NoteAmp"))
  14. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 494, in __init__
  16. self._autoCommand = AutoBuilder.buildAuto(auto_name)
  17. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 475, in buildAuto
  19. return AutoBuilder.getAutoCommandFromJson(auto_json)
  20. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 455, in getAutoCommandFromJson
  22. autoCommand = CommandUtil.commandFromJson(commandJson, choreoAuto)
  23. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 95, in commandFromJson
  25. return CommandUtil._sequentialGroupFromData(data, load_choreo_paths)
  26. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  27. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 126, in _sequentialGroupFromData
  28. commands = [CommandUtil.commandFromJson(cmd_json, load_choreo_paths) for cmd_json in data_json['commands']]
  29. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  30. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 93, in commandFromJson
  31. return CommandUtil._pathCommandFromData(data, load_choreo_paths)
  32. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  33. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 122, in _pathCommandFromData
  34. return AutoBuilder.followPath(PathPlannerPath.fromPathFile(pathName))
  35. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 393, in followPath
  37. return AutoBuilder._pathFollowingCommandBuilder(path)
  38. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  39. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\auto.py", line 177, in <lambda>
  40. AutoBuilder._pathFollowingCommandBuilder = lambda path: FollowPathHolonomic(
  41. ^^^^^^^^^^^^^^^^^^^^
  42. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\commands.py", line 219, in __init__
  43. super().__init__(path, pose_supplier, speeds_supplier, output_robot_relative, PPHolonomicDriveController(
  44. File "C:\Users\caden\AppData\Local\Programs\Python\Python312\Lib\site-packages\pathplannerlib\commands.py", line 69, in __init__
  45. raise RuntimeError(
  46. RuntimeError: Events that are triggered during path following cannot require the drive subsystem
  47.  
  48.  
  49. Locals at innermost frame:
  50.  
  51. { '__class__': <class 'pathplannerlib.commands.FollowPathCommand'>,
  52. 'controller': <pathplannerlib.controller.PPHolonomicDriveController object at 0x000002784A6FE8D0>,
  53. 'marker': EventMarker(waypointRelativePos=1.0,
  54. command=<commands2.sequentialcommandgroup.SequentialCommandGroup object a...
  55. minimumTriggerDistance=0.5,
  56. markerPos=Translation2d(x=1.828719, y=7.643070),
  57. lastRobotPos=None),
  58. 'output_robot_relative': <function Swerve.__init__.<locals>.<lambda> at 0x000002784A6EE3E0>,
  59. 'path': <pathplannerlib.path.PathPlannerPath object at 0x000002784A6FEC30>,
  60. 'pose_supplier': <function Swerve.__init__.<locals>.<lambda> at 0x000002784A6EE200>,
  61. 'replanning_config': ReplanningConfig(enableInitialReplanning=True,
  62. enableDynamicReplanning=False,
  63. dynamicReplanningTotalErrorThreshold=1.0,
  64. dynamicReplanningErrorSpikeThreshold=0.25),
  65. 'req': <subsystems.intake.Intake object at 0x000002784A69FA70>,
  66. 'reqs': {<subsystems.intake.Intake object at 0x000002784A69FA70>},
  67. 'requirements': (<subsystems.swerve.Swerve object at 0x000002784A69F770>,),
  68. 'self': <pathplannerlib.commands.FollowPathHolonomic object at 0x000002785230AB10>,
  69. 'should_flip_path': <function Swerve.__init__.<locals>.<lambda> at 0x000002784A6EE480>,
  70. 'speeds_supplier': <function Swerve.__init__.<locals>.<lambda> at 0x000002784A6EE340>}
Advertisement
Add Comment
Please, Sign In to add comment