Classes | Functions | Variables
pid_velocity Namespace Reference

Classes

class  PidVelocity

Functions

def __init__
def appendVel
def calcRollingVel
def calcVelocity
def doPid
def spin
 initialize variables
def spinOnce
def targetCallback
def wheelCallback

Variables

tuple cur_vel = (1 / self.ticks_per_meter)
 enc = msg.data
tuple p = array(self.prev_vel)
tuple pid_dt = pid_dt_duration.to_sec()
tuple pid_dt_duration = rospy.Time.now()
tuple pidVelocity = PidVelocity()

Function Documentation

def pid_velocity.__init__ (   self)

Definition at line 38 of file pid_velocity.py.

def pid_velocity.appendVel (   self,
  val 
)

Definition at line 152 of file pid_velocity.py.

Definition at line 158 of file pid_velocity.py.

def pid_velocity.calcVelocity (   self)

Definition at line 118 of file pid_velocity.py.

def pid_velocity.doPid (   self)

Definition at line 164 of file pid_velocity.py.

def pid_velocity.spin (   self)

initialize variables

get parameters #### subscribers/publishers

Definition at line 86 of file pid_velocity.py.

def pid_velocity.spinOnce (   self)

Definition at line 98 of file pid_velocity.py.

def pid_velocity.targetCallback (   self,
  msg 
)

Definition at line 212 of file pid_velocity.py.

def pid_velocity.wheelCallback (   self,
  msg 
)

Definition at line 195 of file pid_velocity.py.


Variable Documentation

tuple pid_velocity::cur_vel = (1 / self.ticks_per_meter)

Definition at line 126 of file pid_velocity.py.

pid_velocity::enc = msg.data

Definition at line 197 of file pid_velocity.py.

tuple pid_velocity::p = array(self.prev_vel)

Definition at line 160 of file pid_velocity.py.

tuple pid_velocity::pid_dt = pid_dt_duration.to_sec()

Definition at line 167 of file pid_velocity.py.

tuple pid_velocity::pid_dt_duration = rospy.Time.now()

Definition at line 166 of file pid_velocity.py.

main 

Definition at line 221 of file pid_velocity.py.



differential_drive
Author(s): Jon Stephan
autogenerated on Sun Jan 5 2014 11:04:42