Fun with PWM  0.32
TkMotionManager.TkMotionManager Class Reference

UI for motions and chains. More...

Inheritance diagram for TkMotionManager.TkMotionManager:
TkBlock.TkPage TkBlock.TkBlock

Public Member Functions

def __init__ (self, parent, gui, options)
 
def setup (self)
 
def serviceManager (self)
 
def listMotions (self)
 
def editMotion (self)
 
def deleteMotion (self)
 
def editKeyFrames (self)
 
def getActiveKeyframe (self, time)
 
def activeKeyFrame (self, time)
 
def moveKeyFrame (self)
 
def cloneKeyFrame (self)
 
def deleteKeyFrame (self)
 
def listChains (self)
 
def editChain (self)
 
def deleteChain (self)
 
def listChainMotions (self)
 
def editChainMotion (self)
 
def deleteChainMotion (self)
 
def OnStartClick (self)
 
def OnStopClick (self)
 
def OnToggleAutostartClick (self)
 
def OnRelaxClick (self)
 
def OnDefaultClick (self)
 
def OnListMotionsClick (self)
 
def OnAddMotionClick (self)
 
def OnRefreshClick (self)
 
def OnPlayMotionClick (self, index=None)
 
def OnPlaySlowMotionClick (self, index=None)
 
def OnSaveMotionClick (self)
 
def OnEditMotionClick (self, index)
 
def OnEditKeyFramesClick (self)
 
def OnDeleteMotionClick (self)
 
def OnCancelDeleteClick (self)
 
def OnDeleteMotionConfirmClick (self)
 
def OnAddTimeClick (self)
 
def OnTrimTimeClick (self)
 
def OnMoveKeyFrameClick (self)
 
def OnMoveKeyFrameConfirmClick (self)
 
def OnCloneKeyFrameClick (self)
 
def OnCloneKeyFrameConfirmClick (self)
 
def OnUpdateKeyFrameClick (self)
 
def OnDeleteKeyFrameClick (self)
 
def OnDeleteKeyFrameConfirmClick (self)
 
def OnCancelKeyFrameClick (self)
 
def OnUpdateAngles (self, event)
 
def OnListChainsClick (self)
 
def OnAddChainClick (self)
 
def OnEditChainClick (self, index=None)
 
def OnSaveChainClick (self)
 
def OnDeleteChainClick (self, index=None)
 
def OnDeleteChainConfirmClick (self)
 
def OnCancelDeleteChainClick (self)
 
def OnPlayChainClick (self, index)
 
def OnListChainMotionsClick (self, index=None)
 
def OnAddChainMotionClick (self)
 
def OnEditChainMotionClick (self, index=None)
 
def OnSaveChainMotionClick (self)
 
def OnDeleteChainMotionClick (self, index=None)
 
def OnDeleteChainMotionConfirmClick (self)
 
def OnCancelDeleteChainMotionClick (self)
 
def getMotionNames (self)
 
def getMotionFromName (self, name)
 
def getMotionFromId (self, id)
 
def refreshMotions (self)
 
- Public Member Functions inherited from TkBlock.TkPage
def __init__ (self, parent, gui, options)
 
def open (self)
 
- Public Member Functions inherited from TkBlock.TkBlock
def __init__ (self, parent, gui, options)
 
def setup (self)
 
def initWidget (self)
 
def addMenu (self, menu, label="-")
 
def open (self)
 
def close (self)
 
def genericView (self, parent, value)
 
def numberView (self, parent, value)
 
def stringView (self, parent, value)
 
def dictView (self, parent, value)
 
def iterView (self, parent, value)
 

Public Attributes

 specification
 
 servos
 
 channelindex
 
 gridrow
 
 variables
 
 duration
 
 time
 
 lastmotion
 
 autostart
 
 motion
 
 keyframes
 
 currentTime
 
 chains
 
 chain
 
 chainmotion
 
 motions
 
- Public Attributes inherited from TkBlock.TkBlock
 gui
 
 parent
 
 height
 
 variables
 
 notifier
 
 colours
 
 fonts
 
 images
 
 wrap
 
 canvas
 
 widget
 
 yScroller
 
 xScroller
 
 widgets
 
 gridrow
 

Detailed Description

UI for motions and chains.

Constructor & Destructor Documentation

§ __init__()

def TkMotionManager.TkMotionManager.__init__ (   self,
  parent,
  gui,
  options 
)
Initializes TkMotionManager object

@param parent
@param gui
@param options

Member Function Documentation

§ activeKeyFrame()

def TkMotionManager.TkMotionManager.activeKeyFrame (   self,
  time 
)
util - updates keyframe ui

@param time int

§ cloneKeyFrame()

def TkMotionManager.TkMotionManager.cloneKeyFrame (   self)
view - clone keyframe

§ deleteChain()

def TkMotionManager.TkMotionManager.deleteChain (   self)
view - delete chain

§ deleteChainMotion()

def TkMotionManager.TkMotionManager.deleteChainMotion (   self)
view - delete chain motion

§ deleteKeyFrame()

def TkMotionManager.TkMotionManager.deleteKeyFrame (   self)
view - delete keyframe

§ deleteMotion()

def TkMotionManager.TkMotionManager.deleteMotion (   self)
view - delete motion

§ editChain()

def TkMotionManager.TkMotionManager.editChain (   self)
view - edit chain

§ editChainMotion()

def TkMotionManager.TkMotionManager.editChainMotion (   self)
view - edit chain motion

§ editKeyFrames()

def TkMotionManager.TkMotionManager.editKeyFrames (   self)
view - edit keyframes

§ editMotion()

def TkMotionManager.TkMotionManager.editMotion (   self)
view - edit motion

§ getActiveKeyframe()

def TkMotionManager.TkMotionManager.getActiveKeyframe (   self,
  time 
)
util - gets the current keyframe data

@param time int

@return dict

§ getMotionFromId()

def TkMotionManager.TkMotionManager.getMotionFromId (   self,
  id 
)
util - gets a motion from id

@param id

§ getMotionFromName()

def TkMotionManager.TkMotionManager.getMotionFromName (   self,
  name 
)
util - gets a motion from the name

@param name

@return Motion

§ getMotionNames()

def TkMotionManager.TkMotionManager.getMotionNames (   self)
util - gets a list of motion names

@return tuple

§ listChainMotions()

def TkMotionManager.TkMotionManager.listChainMotions (   self)
view - list chain motions

§ listChains()

def TkMotionManager.TkMotionManager.listChains (   self)
view - list chains

§ listMotions()

def TkMotionManager.TkMotionManager.listMotions (   self)
view - list motions

§ moveKeyFrame()

def TkMotionManager.TkMotionManager.moveKeyFrame (   self)
view - move keyframe

§ OnAddChainClick()

def TkMotionManager.TkMotionManager.OnAddChainClick (   self)
action - display add chain page

§ OnAddChainMotionClick()

def TkMotionManager.TkMotionManager.OnAddChainMotionClick (   self)
action - display add chain page

§ OnAddMotionClick()

def TkMotionManager.TkMotionManager.OnAddMotionClick (   self)
action - display add motion page

§ OnAddTimeClick()

def TkMotionManager.TkMotionManager.OnAddTimeClick (   self)
action - adds a second to 

§ OnCancelDeleteChainClick()

def TkMotionManager.TkMotionManager.OnCancelDeleteChainClick (   self)
action - cancel delete chain

§ OnCancelDeleteChainMotionClick()

def TkMotionManager.TkMotionManager.OnCancelDeleteChainMotionClick (   self)
action - cancel delete chain motion

§ OnCancelDeleteClick()

def TkMotionManager.TkMotionManager.OnCancelDeleteClick (   self)
action - cancel delete motion

§ OnCancelKeyFrameClick()

def TkMotionManager.TkMotionManager.OnCancelKeyFrameClick (   self)
action - cancel keyframe action

§ OnCloneKeyFrameClick()

def TkMotionManager.TkMotionManager.OnCloneKeyFrameClick (   self)
action - display clone keyframe page

§ OnCloneKeyFrameConfirmClick()

def TkMotionManager.TkMotionManager.OnCloneKeyFrameConfirmClick (   self)
action - clone keyframe

§ OnDefaultClick()

def TkMotionManager.TkMotionManager.OnDefaultClick (   self)
action - default all servos

§ OnDeleteChainClick()

def TkMotionManager.TkMotionManager.OnDeleteChainClick (   self,
  index = None 
)
action - display delete chain page

@param index

§ OnDeleteChainConfirmClick()

def TkMotionManager.TkMotionManager.OnDeleteChainConfirmClick (   self)
action - delete chain

§ OnDeleteChainMotionClick()

def TkMotionManager.TkMotionManager.OnDeleteChainMotionClick (   self,
  index = None 
)
action - display delete chain motion

@param index

§ OnDeleteChainMotionConfirmClick()

def TkMotionManager.TkMotionManager.OnDeleteChainMotionConfirmClick (   self)
action - delete chain motion

§ OnDeleteKeyFrameClick()

def TkMotionManager.TkMotionManager.OnDeleteKeyFrameClick (   self)
action - display delete keyframe page

§ OnDeleteKeyFrameConfirmClick()

def TkMotionManager.TkMotionManager.OnDeleteKeyFrameConfirmClick (   self)
action - delete keyframe

§ OnDeleteMotionClick()

def TkMotionManager.TkMotionManager.OnDeleteMotionClick (   self)
action - display delete motion page

§ OnDeleteMotionConfirmClick()

def TkMotionManager.TkMotionManager.OnDeleteMotionConfirmClick (   self)
action - delete motion

§ OnEditChainClick()

def TkMotionManager.TkMotionManager.OnEditChainClick (   self,
  index = None 
)
action - display edit chain page

@param index

§ OnEditChainMotionClick()

def TkMotionManager.TkMotionManager.OnEditChainMotionClick (   self,
  index = None 
)
action - display edit chain motion page

@param index

§ OnEditKeyFramesClick()

def TkMotionManager.TkMotionManager.OnEditKeyFramesClick (   self)
action - display edit keyframes page

§ OnEditMotionClick()

def TkMotionManager.TkMotionManager.OnEditMotionClick (   self,
  index 
)
action - display edit motion page

@param index str

§ OnListChainMotionsClick()

def TkMotionManager.TkMotionManager.OnListChainMotionsClick (   self,
  index = None 
)
action - display list chain motion page

@param index

§ OnListChainsClick()

def TkMotionManager.TkMotionManager.OnListChainsClick (   self)
action - display chain list page

§ OnListMotionsClick()

def TkMotionManager.TkMotionManager.OnListMotionsClick (   self)
action - display motion list

§ OnMoveKeyFrameClick()

def TkMotionManager.TkMotionManager.OnMoveKeyFrameClick (   self)
action - display move keyframe page

§ OnMoveKeyFrameConfirmClick()

def TkMotionManager.TkMotionManager.OnMoveKeyFrameConfirmClick (   self)
action - move keyframe

§ OnPlayChainClick()

def TkMotionManager.TkMotionManager.OnPlayChainClick (   self,
  index 
)
action - trigger a chain

§ OnPlayMotionClick()

def TkMotionManager.TkMotionManager.OnPlayMotionClick (   self,
  index = None 
)
action - play motion

@param index

§ OnPlaySlowMotionClick()

def TkMotionManager.TkMotionManager.OnPlaySlowMotionClick (   self,
  index = None 
)
action - play slow motion

@param index

§ OnRefreshClick()

def TkMotionManager.TkMotionManager.OnRefreshClick (   self)
action - refresh motion list

§ OnRelaxClick()

def TkMotionManager.TkMotionManager.OnRelaxClick (   self)
action - relax all servos

§ OnSaveChainClick()

def TkMotionManager.TkMotionManager.OnSaveChainClick (   self)
action - save chain

§ OnSaveChainMotionClick()

def TkMotionManager.TkMotionManager.OnSaveChainMotionClick (   self)
action - save chain motion

§ OnSaveMotionClick()

def TkMotionManager.TkMotionManager.OnSaveMotionClick (   self)
action - save motion

§ OnStartClick()

def TkMotionManager.TkMotionManager.OnStartClick (   self)
action - start motion scheduler service

§ OnStopClick()

def TkMotionManager.TkMotionManager.OnStopClick (   self)
action - stop motion scheduler service

§ OnToggleAutostartClick()

def TkMotionManager.TkMotionManager.OnToggleAutostartClick (   self)
action - toggle motion scheduler service autostart

§ OnTrimTimeClick()

def TkMotionManager.TkMotionManager.OnTrimTimeClick (   self)
action - removes time without keyframes

§ OnUpdateAngles()

def TkMotionManager.TkMotionManager.OnUpdateAngles (   self,
  event 
)
action - sync servo angles

@param event

§ OnUpdateKeyFrameClick()

def TkMotionManager.TkMotionManager.OnUpdateKeyFrameClick (   self)
action - update keyframe

§ refreshMotions()

def TkMotionManager.TkMotionManager.refreshMotions (   self)
util - update objects reference to the motion in the specification

§ serviceManager()

def TkMotionManager.TkMotionManager.serviceManager (   self)
view - service manager

§ setup()

def TkMotionManager.TkMotionManager.setup (   self)
setup gui menu

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