
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 | |
Definition at line 213 of file controller.py.
| def controller.LinearCascadedPController.__init__ | ( | self | ) |
Reimplemented from controller.CascadedPController.
Definition at line 215 of file controller.py.
| 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.
| 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.
| controller.LinearCascadedPController.steadyAccelThresh |
Definition at line 218 of file controller.py.
| controller.LinearCascadedPController.steadyVelThresh |
Definition at line 217 of file controller.py.