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

HoldPointCommand

package com.seattlesolvers.solverslib.pedropathing

PreviousFollowPathChainCommandNextEasyOpenCV

This command calls Pedro Pathing's , which allows you to easily hold a new Point (the Pose parameter is converted into a Point under the hood).

It has three mandatory parameters:

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

  • The Pose to hold

  • A boolean parameter called isFieldCentric that decides whether the move should be field centric or robot centric (based off the follower's position at the time of scheduling the command)

HoldPointCommand(Follower follower, Pose pose, boolean isFieldCentric)

The following robot centric movements for Pedro Pathing's default coordinate system should be true assuming that the robot is facing forwards to the long side on the submersible's blue alliance side:

  • : -Y is forwards, +Y is backwards

  • : +X is left, -X is right

  • : Heading is in radians, +heading turns left and -heading turns right

Follower.holdPoint(Pose)
Pose.getX()
Pose.getY()
Pose.getHeading()