-
Notifications
You must be signed in to change notification settings - Fork 127
Python Example: Custom Logging
Michael Jansen edited this page Dec 7, 2023
·
1 revision
PathPlannerLib provides the ability to set custom logging callbacks that will be called when the built in path following commands are running. You can set these callbacks through the PathPlannerLogging
class.
from pathplannerlib.logging import PathPlannerLogging
# Logging callback for current robot pose
PathPlannerLogging.setLogCurrentPoseCallback(lambda pose: print(pose))
# Logging callback for target robot pose
PathPlannerLogging.setLogTargetPoseCallback(lambda pose: print(pose))
# Logging callback for the active path, this is sent as a list of poses
PathPlannerLogging.setLogActivePathCallback(lambda poses: print(poses))
- Controls & Shortcuts
- Editing Paths & Autos
- Navigation Menu
- Settings
- Project Browser
- Telemetry Page
- Navigation Grid Editor
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding
Advanced Usage
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding
Advanced Usage
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding