SolversLib Docs
QuickstartGitHubContact
0.2.3
0.2.3
  • Welcome
  • Installation
  • Javadocs
  • Features
    • Hardware
      • Motors
      • SolversHardware
    • Gamepad
    • Drivebases
    • Geometry
    • Controllers
    • Utility Functions
  • Pedro Pathing
    • Pedro Commands
      • FollowPathCommand
      • FollowPathChainCommand
      • HoldPointCommand
  • Vision
    • EasyOpenCV
  • Kinematics
    • Odometry
    • WPILib Kinematics
      • Differential Drive Kinematics
      • Differential Drive Odometry
      • Swerve Drive Kinematics
      • Swerve Drive Odometry
      • Mecanum Drive Kinematics
      • Mecanum Drive Odometry
  • Pathing
    • Pure Pursuit
    • Trajectory
      • Trajectory Generation
      • Trajectory Constraints
      • Manipulating Trajectories
      • Transforming Trajectories
      • Ramsete Controller
  • Command Base
    • Command System
      • Subsystems
      • Command
      • Command Groups
      • Command Scheduler
      • Binding Commands to Triggers
      • Robot and CommandOpMode
      • Convenience Features
    • Old Commands
  • Support SolversLib
  • Additional Reading
Powered by GitBook
On this page
Export as PDF
  1. Pedro Pathing
  2. Pedro Commands

FollowPathCommand

import com.seattlesolvers.solverslib.pedroCommand.FollowPathCommand;

PreviousPedro CommandsNextFollowPathChainCommand

This command allows you to easily follow a Path or PathChain .

If a Path is supplied, it will simply convert it to a PatchChain first, and then follow that.

It has two mandatory parameters:

  • Pedro Pathing's Follower (which controls the robot movement)

  • The Path or PathChain to follow

  • An optional boolean parameter called holdEnd that decides whether or not the robot should hold its position at the end of the Path (default value is true if not supplied)

new FollowPathCommand(follower, pathChain)

If you are using an ArrayList of PathChains/Paths, you can simply get the desired PathChain/Path that you want:

new FollowPathCommand(follower, path.get(0))

To see how you can use both this command in a full Autonomous Program, look at this .

Follower.followPath(PathChain pathChain)
example