Public Member Functions | Public Attributes | List of all members
controller.LinearCascadedPController Class Reference
Inheritance diagram for controller.LinearCascadedPController:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def computeCorrectiveAcceleration (self, odom, correctiveVelocity)
 
def computeCorrectiveVelocity (self, odom)
 
- Public Member Functions inherited from controller.CascadedPController
def disable (self, msg=None)
 
def setTargetPosition (self, targetPosition)
 
def setTargetVelocity (self, targetVelocity)
 
def update (self, odom)
 

Public Attributes

 steadyAccelThresh
 
 steadyVelThresh
 
- Public Attributes inherited from controller.CascadedPController
 maxAccel
 
 maxVelocity
 
 positionP
 
 steady
 
 steadyAccelThresh
 
 steadyVelThresh
 
 targetAcceleration
 
 targetPosition
 
 targetVelocity
 
 velocityP
 

Detailed Description

Definition at line 213 of file controller.py.

Constructor & Destructor Documentation

◆ __init__()

def controller.LinearCascadedPController.__init__ (   self)

Reimplemented from controller.CascadedPController.

Definition at line 215 of file controller.py.

Member Function Documentation

◆ computeCorrectiveAcceleration()

def controller.LinearCascadedPController.computeCorrectiveAcceleration (   self,
  odom,
  correctiveVelocity 
)
Computes a corrective acceleration.
    
If self.targetVelocity is not None, will return a corrective body-frame acceleration that transitions the robot twoards the desired self.targetVelocity. Otherwise returns 0 vector.
    
Parameters:
correctiveVelocity (np.array): Body-frame velocity vector that adds on to the self.targetVelocity. Is used in position correction.
odom (Odometry): The latest odometry message

Returns: 
np.array: 3 dimensional vector representing corrective body-frame acceleration.


Reimplemented from controller.CascadedPController.

Definition at line 230 of file controller.py.

◆ computeCorrectiveVelocity()

def controller.LinearCascadedPController.computeCorrectiveVelocity (   self,
  odom 
)
Computes a corrective velocity.
    
If self.targetPosition is not None, will return a corrective body-frame velocity that moves the robot in the direction of self.targetPosiiton. Otherwise returns 0 vector.
    
Parameters:
odom (Odometry): The latest odometry message

Returns: 
np.array: 3 dimensional vector representing corrective body-frame velocity.


Reimplemented from controller.CascadedPController.

Definition at line 220 of file controller.py.

Member Data Documentation

◆ steadyAccelThresh

controller.LinearCascadedPController.steadyAccelThresh

Definition at line 218 of file controller.py.

◆ steadyVelThresh

controller.LinearCascadedPController.steadyVelThresh

Definition at line 217 of file controller.py.


The documentation for this class was generated from the following file:


riptide_controllers
Author(s): Blaine Miller, Mitchell Sayre
autogenerated on Wed Mar 2 2022 00:50:23