SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Module.Module Class Reference

This is the class that stores all the information about a module. More...

Public Member Functions

def __init__
 Constructor. More...
 
def connection
 Connect on one node. More...
 
def disconnect
 Disconnect on one node. More...
 
def __init__
 Constructor. More...
 
def connection
 Connect on one node. More...
 
def disconnect
 Disconnect on one node. More...
 

Public Attributes

 ModelName
 Module name strong.
 
 Position
 Module position tuple. More...
 
 JointAngle
 Module joint angle list. More...
 
 nodes
 Module node dictionary Keys are the node indecies and values are pointer to the Connection object.
 
 Path
 Path of the module sdf file.
 
 Quaternion
 Flag of whether the orientation of the module stored in quaternion format.
 
 Speeds
 Speed of the joints TODO: haven't really implement this part.
 

Detailed Description

This is the class that stores all the information about a module.

Constructor & Destructor Documentation

def Module.Module.__init__ (   self,
  modelname,
  position,
  jointangle,
  path,
  quapos = False 
)

Constructor.

Parameters
selfObject pointer
modelnameModel name string
positionTuple of the initial position of the module
jointangleList of the joint angles of the module
pathPath of the model sdf file Whether the orientation of the module stored in quaternion True: stored in quaternion; False: stored in Eular angles; Default: False
def Module.Module.__init__ (   self,
  modelname,
  jointangle,
  position 
)

Constructor.

Parameters
selfObject pointer
modelnameModel name string
jointangleList of the joint angles of the module
positionTuple of the initial position of the module

Member Function Documentation

def Module.Module.connection (   self,
  node,
  connection 
)

Connect on one node.

Parameters
selfObject pointer
nodeA node index
connectionA Connection object
def Module.Module.connection (   self,
  node,
  connection 
)

Connect on one node.

Parameters
selfObject pointer
nodeA node index
connectionA Connection object
def Module.Module.disconnect (   self,
  node 
)

Disconnect on one node.

Parameters
selfObject pointer
nodeA node index
def Module.Module.disconnect (   self,
  node 
)

Disconnect on one node.

Parameters
selfObject pointer
nodeA node index

Member Data Documentation

Module.Module.JointAngle

Module joint angle list.

Module position tuple.

Module.Module.Position

Module position tuple.

Module joint angle tuple.


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