|
SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
This is the class of gait recorder python gui application. More...
Public Member Functions | |
| def | __init__ |
| Constructor. More... | |
| def | initUI |
| Initializes the UI of the current python app. More... | |
| def | CloseWindow |
| Callback for close button. More... | |
| def | InitialFrame |
| Initializaed the section, don't be fooled by the name. More... | |
| def | AskOpenFile |
| Callback of Open Configuration button. More... | |
| def | ReadInConfiguration |
| Parse the configuration file and build the configuration tree. More... | |
| def | SendLoadConfigurationMessage |
| Creates a open configuration request and publish to worldplugin. More... | |
| def | UpdateJoint |
| Callback of Select Model Combobox. More... | |
| def | GetModuleByName |
| Get module object by specifying the name. More... | |
| def | RefreshDependencyList |
| Refresh the dependency list. More... | |
| def | StringToTuple |
| Convert a string that has multiple values to tuple. More... | |
| def | StringToList |
| Convert a string that has multiple values to list. More... | |
| def | AddGaitEntry |
| Callback for Add Command Button. More... | |
| def | AddGaitToCurrentFrame |
| Add gait to current section and display them in the Manage Gait Table tag. More... | |
| def | DisconnectSend |
| Send disconnect message to worldplugin. More... | |
| def | ConnectSend |
| Send connect message to worldplugin. More... | |
| def | DeleteAllWidgetsOnHisWindow |
| Delets all the widgets on the second tag page. More... | |
| def | ResizePanelSize |
| Click the button on the top to resize the panel size It doesn't work. More... | |
| def | GaitObjToStr |
| Converts gait object to string. More... | |
| def | SaveFrame |
| Saves current section, save section button callback. More... | |
| def | UpdateFrameBox |
| Updates the section selction ComboBox. More... | |
| def | Reset |
| Resets the current simulation world to the begin of the section. More... | |
| def | PlayFrame |
| Plays the current section. More... | |
| def | SaveCurrentPose |
| Generates and publish save current section command to worldplugin. More... | |
| def | UpdateFrameWindows |
| Updates the panel window after selecting a section. More... | |
| def | ModifyHistory |
| Callback when you click a gait entry in the third tag ("Gait Records") More... | |
| def | UpdateSingleGaitEntry |
| Update a GaitEntry object when you finish editing Callback of the Update button in the third tag ("Gait Records") More... | |
| def | DeleteSingleGait |
| Delete a GaitEntry object after you hit the delete button Callback of the Delete button in the third tag ("Gait Records") More... | |
| def | FindGaitEntryBasedOnIdx |
| Finds the GaitEntry object by index for update and delete gait in the Gait Records window. More... | |
| def | PublishMessage |
| Publish common command message Control joint position, speed or torque. More... | |
| def | PublishMessageSpecial |
| Publish special command messgae Send connection and disconnection message. More... | |
| def | SaveGaitTable |
| Write recorded gait table to file. More... | |
| def | OpenGaitFile |
| Open and read in a gait file. More... | |
| def | InterpretGaitString |
| Convert a gait string to a GaitEntry object. More... | |
| def | DynamicUpdate |
| Callback function of the scale bar moving event Update the joint angle in simulator when slide the scale bar. More... | |
| def | UpdateFromValueBox |
| Callback function binded to the entry box next to scale with enter key. More... | |
| def | CheckTheExistingCommand |
| Check whether there is a command of the same model in a command list. More... | |
| def | InterpretCorrelation |
| Convert a correlation boolean value to number that can be used in calculation. More... | |
| def | ResetAssociateWindow |
| Clear the association window. More... | |
| def | RefreshAssociates |
| Refresh association window. More... | |
| def | DeleteAnAssociate |
| Delete an association. More... | |
| def | SelectSavePath |
| Select gaitfile save path. More... | |
| def | AddAssociates |
| Open an add association window. More... | |
| def | UpdateJointValue |
| Update joint value on the scale bar and entry next to it. More... | |
| def | SelectCommonCommand |
| Callback of common command select radiobutton. More... | |
| def | DisableCommonCommand |
| Disable common command. More... | |
| def | EnableCommonCommand |
| Enable common command. More... | |
| def | SelectConnection |
| Callback of select connection radiobutton. More... | |
| def | SelectSecondModule |
| Select the second module which the current module connect to or disconnect to. More... | |
| def | SelectNode1 |
| Select the node of the first module. More... | |
| def | UpdateConnectableNodes |
| Update the available nodes of the other module the current module connect to. More... | |
| def | ResetSpecialComand |
| Reset the module and nodes selection in the special command section. More... | |
| def | SelectDisconnection |
| Callback of select disconnection radiobutton. More... | |
| def | DisableSpecialCommand |
| Disable special command section. More... | |
| def | EnableSpecialCommand |
| Enable special command section. More... | |
Public Attributes | |
| parent | |
| Parent of the App class, which is a tk root. | |
| modelname | |
| Variable stores name string in the wedget. | |
| jointSelection | |
| commandType | |
| typeSelection | |
| associatedJointsList | |
| nodeSelect1 | |
| nodeSelect2 | |
| module2Select | |
| jointAngleDifferenceTracking | |
| valueInBox | |
| Variable records the entered value right next to scroll bar. | |
| condition | |
| dependency | |
| elapstime | |
| elapsedTimeType | |
| savepath | |
| selectedcommand | |
| selectedkeyFrame | |
| savePath | |
| frontWheelAssociates | |
| lftWheelAssociates | |
| rgtWheelAssociates | |
| centralBendAssociates | |
| currentAssociates | |
| commandhis | |
| frameListForGaitRecord | |
| frameButtonList | |
| frameListList | |
| keyFrames | |
| keyFrameList | |
| modulenames | |
| CurrentFrameRec | |
| CurrentFrameHis | |
| DependencyList | |
| ModuleList | |
| ConnectionList | |
| ConnectableModules | |
| DisconnectableModules | |
| initflag | |
| file_opt | |
| rungzserver | |
| communicator | |
| name | |
| selectCommonCommand | |
| bend_joint | |
| left_joint | |
| right_joint | |
| front_joint | |
| modeAngle | |
| modeSpeed | |
| modeTorque | |
| valueSetting | |
| valueSettingBox | |
| associatedJoints | |
| ascModify | |
| ascDelete | |
| connectionCommand | |
| disconnectionCommand | |
| node1Selection | |
| module2Selection | |
| node2Selection | |
| Dependency | |
| keyFrame | |
| panedWindow | |
| scollForCommands | |
| CommandHis | |
| CommandUpdateBtn | |
| CommandDeleteBtn | |
| FrameDelete | |
| OpenGait | |
| saveButton | |
| saveButton2 | |
| Playframe | |
| Resetframe | |
| Addframe | |
| Addcommand | |
| currentFrame | |
| allCommands | |
| tree | |
| rungzclient | |
| frameListVars | |
| historyidx | |
| associateIdx | |
| DisconnectableNodes | |
This is the class of gait recorder python gui application.
| def GaitRecorder.GaitRecorder.__init__ | ( | self, | |
| parent, | |||
| flag | |||
| ) |
Constructor.
| self | Object pointer |
| parent | Parent of this app, which is tk root |
| flag | Specifies the state of the this python program, 0 for normal mode, 1 for gui debug mode, 2 for python only mode |
| def GaitRecorder.GaitRecorder.AddAssociates | ( | self | ) |
Open an add association window.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.AddGaitEntry | ( | self | ) |
Callback for Add Command Button.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.AddGaitToCurrentFrame | ( | self, | |
| gait_obj | |||
| ) |
Add gait to current section and display them in the Manage Gait Table tag.
| self | Object pointer |
| gait_obj | A gait object |
| def GaitRecorder.GaitRecorder.AskOpenFile | ( | self | ) |
Callback of Open Configuration button.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.CheckTheExistingCommand | ( | self, | |
| model_name, | |||
| command_queue | |||
| ) |
Check whether there is a command of the same model in a command list.
| self | Object pointer |
| model_name | Name string of the model |
| command_queue | A command list |
| def GaitRecorder.GaitRecorder.CloseWindow | ( | self | ) |
Callback for close button.
| self | object pointer |
| def GaitRecorder.GaitRecorder.ConnectSend | ( | self, | |
| time_interval | |||
| ) |
Send connect message to worldplugin.
| self | Object pointer |
| time_interval | How long this command will be executed |
| def GaitRecorder.GaitRecorder.DeleteAllWidgetsOnHisWindow | ( | self | ) |
Delets all the widgets on the second tag page.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.DeleteAnAssociate | ( | self | ) |
Delete an association.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.DeleteSingleGait | ( | self | ) |
Delete a GaitEntry object after you hit the delete button Callback of the Delete button in the third tag ("Gait Records")
| self | Object pointer |
| def GaitRecorder.GaitRecorder.DisableCommonCommand | ( | self | ) |
Disable common command.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.DisableSpecialCommand | ( | self | ) |
Disable special command section.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.DisconnectSend | ( | self, | |
| time_interval | |||
| ) |
Send disconnect message to worldplugin.
| self | Object pointer |
| time_interval | How long this command will be executed |
| def GaitRecorder.GaitRecorder.DynamicUpdate | ( | self, | |
| args | |||
| ) |
Callback function of the scale bar moving event Update the joint angle in simulator when slide the scale bar.
| self | Object pointer Other arguements |
| def GaitRecorder.GaitRecorder.EnableCommonCommand | ( | self | ) |
Enable common command.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.EnableSpecialCommand | ( | self | ) |
Enable special command section.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.FindGaitEntryBasedOnIdx | ( | self, | |
| gait_idx | |||
| ) |
| def GaitRecorder.GaitRecorder.GaitObjToStr | ( | self, | |
| gaittableobj | |||
| ) |
Converts gait object to string.
| self | Object pointer |
| gaittableobj | A GaitEntry object |
| def GaitRecorder.GaitRecorder.GetModuleByName | ( | self, | |
| modelname | |||
| ) |
Get module object by specifying the name.
| self | Object pointer |
| modelname | String: Name of the model |
| def GaitRecorder.GaitRecorder.InitialFrame | ( | self | ) |
Initializaed the section, don't be fooled by the name.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.initUI | ( | self | ) |
Initializes the UI of the current python app.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.InterpretCorrelation | ( | self, | |
| corr | |||
| ) |
Convert a correlation boolean value to number that can be used in calculation.
| self | Object pointer |
| corr | Bool value stored in AssociateJ?oint object |
| def GaitRecorder.GaitRecorder.InterpretGaitString | ( | self, | |
| gaitstring | |||
| ) |
| def GaitRecorder.GaitRecorder.ModifyHistory | ( | self, | |
| args | |||
| ) |
Callback when you click a gait entry in the third tag ("Gait Records")
| self | Object pointer |
| args | Other variables |
| def GaitRecorder.GaitRecorder.OpenGaitFile | ( | self | ) |
Open and read in a gait file.
| self | Object Pointer |
| def GaitRecorder.GaitRecorder.PlayFrame | ( | self | ) |
Plays the current section.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.PublishMessage | ( | self, | |
| eachgaittable, | |||
| playstate | |||
| ) |
Publish common command message Control joint position, speed or torque.
| self | Object Pointer |
| eachgaittable | A GaitEntry object |
| playstate | Bool, True: for playmode, update model state using gait string; False: update model state immediately |
| def GaitRecorder.GaitRecorder.PublishMessageSpecial | ( | self, | |
| eachgaittable, | |||
| playstate | |||
| ) |
Publish special command messgae Send connection and disconnection message.
| self | Object Pointer |
| eachgaittable | A GaitEntry object |
| playstate | Bool, True: for playmode, update model state using gait string; False: update model state immediately |
| def GaitRecorder.GaitRecorder.ReadInConfiguration | ( | self, | |
| filename | |||
| ) |
Parse the configuration file and build the configuration tree.
| self | Objetc pointer |
| filename | Name of the configuration file |
| def GaitRecorder.GaitRecorder.RefreshAssociates | ( | self | ) |
Refresh association window.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.RefreshDependencyList | ( | self | ) |
Refresh the dependency list.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.Reset | ( | self | ) |
Resets the current simulation world to the begin of the section.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.ResetAssociateWindow | ( | self | ) |
Clear the association window.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.ResetSpecialComand | ( | self | ) |
Reset the module and nodes selection in the special command section.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.ResizePanelSize | ( | self, | |
| button_idx | |||
| ) |
Click the button on the top to resize the panel size It doesn't work.
| self | Object pointer |
| button_idx | Integer: index of the panel |
| def GaitRecorder.GaitRecorder.SaveCurrentPose | ( | self | ) |
Generates and publish save current section command to worldplugin.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SaveFrame | ( | self | ) |
Saves current section, save section button callback.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SaveGaitTable | ( | self | ) |
Write recorded gait table to file.
| self | Object Pointer |
| def GaitRecorder.GaitRecorder.SelectCommonCommand | ( | self | ) |
Callback of common command select radiobutton.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SelectConnection | ( | self | ) |
Callback of select connection radiobutton.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SelectDisconnection | ( | self | ) |
Callback of select disconnection radiobutton.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SelectNode1 | ( | self, | |
| args | |||
| ) |
Select the node of the first module.
| self | Object pointer |
| args | Other arguments |
| def GaitRecorder.GaitRecorder.SelectSavePath | ( | self | ) |
Select gaitfile save path.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.SelectSecondModule | ( | self, | |
| args | |||
| ) |
Select the second module which the current module connect to or disconnect to.
| self | Object pointer |
| args | Other arguments |
| def GaitRecorder.GaitRecorder.SendLoadConfigurationMessage | ( | self, | |
| configure_path | |||
| ) |
Creates a open configuration request and publish to worldplugin.
| self | Object pointer |
| configure_path | Path of the configuration file |
| def GaitRecorder.GaitRecorder.StringToList | ( | self, | |
| anglestring | |||
| ) |
Convert a string that has multiple values to list.
| self | Object pointer |
| anglestring | A string that has values separated by spaces |
| def GaitRecorder.GaitRecorder.StringToTuple | ( | self, | |
| anglestring | |||
| ) |
Convert a string that has multiple values to tuple.
| self | Object pointer |
| anglestring | A string that has values separated by spaces |
| def GaitRecorder.GaitRecorder.UpdateConnectableNodes | ( | self, | |
| module_name | |||
| ) |
Update the available nodes of the other module the current module connect to.
| self | Object pointer |
| module_name | Name string of the other module |
| def GaitRecorder.GaitRecorder.UpdateFrameBox | ( | self | ) |
Updates the section selction ComboBox.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.UpdateFrameWindows | ( | self, | |
| args | |||
| ) |
Updates the panel window after selecting a section.
| self | Object pointer |
| args | Other variables |
| def GaitRecorder.GaitRecorder.UpdateFromValueBox | ( | self, | |
| args | |||
| ) |
Callback function binded to the entry box next to scale with enter key.
| self | Object pointer |
| args | Other arguements |
| def GaitRecorder.GaitRecorder.UpdateJoint | ( | self, | |
| args | |||
| ) |
Callback of Select Model Combobox.
| self | Object pointer |
| args | Other arguments |
| def GaitRecorder.GaitRecorder.UpdateJointValue | ( | self | ) |
Update joint value on the scale bar and entry next to it.
| self | Object pointer |
| def GaitRecorder.GaitRecorder.UpdateSingleGaitEntry | ( | self | ) |
Update a GaitEntry object when you finish editing Callback of the Update button in the third tag ("Gait Records")
| self | Object pointer |