Commits

German Larrain committed 31c30e1

changed header of all files so as to have creation and modification date and author in comments, and use triple quotes for descriptions

  • Participants
  • Parent commits 5852ce9
  • Branches default

Comments (0)

Files changed (19)

File ars/app/__init__.py

-'''
-Created on 2011.10.14
-Last modified on 2011.11.16
 
-@author: german
-TODO: attribute the code sections that were copied from somewhere else
-'''
+# Created on 2011.10.14
+# Last modified on 2011.11.16
+#
+# @author: german
+# TODO: attribute the code sections that were copied from somewhere else
 
 import sys
 from abc import abstractmethod

File ars/exceptions.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german
 
-from __builtin__ import Exception
+#from __builtin__ import Exception
 
 class PhysicsEngineException(Exception):
 	def __init__(self):

File ars/graphics/__init__.py

-'''
-Created on 2011.08.09
-Last modified on 2011.11.14
 
-@author: german
-
-TODO: attribute the code sections that were copied from somewhere else
-'''
+# Created on 2011.08.09
+# Last modified on 2011.11.14
+#
+# @author: german
+#
+# TODO: attribute the code sections that were copied from somewhere else
 
 from abc import ABCMeta, abstractmethod
 

File ars/graphics/adapters.py

-'''
-Created on 2011.11.01
-Last modified on 2011.11.14
 
-@author: german
-'''
+# Created on 2011.11.01
+# Last modified on 2011.11.14
+#
+# @author: german
 
 import vtk
 

File ars/gui/__init__.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german

File ars/model/__init__.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german

File ars/model/contrib/caster.py

-#
+
 # Created on Nov 2011.11.23
 # Last modified on 2011.11.23
 #
 # @author: german
-#
 
 class Caster:
 	'''

File ars/model/contrib/ragdoll.py

-'''
-Created on 2011.10.31
-Last modified on 2011.11.01
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.11.01
+#
+# @author: german
+
 
 import ode
 

File ars/model/geometry/__init__.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german
+
 
 # put here auxiliar class and functions, such as tensor matrix and Orientation

File ars/model/geometry/shapes.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german
+
 from abc import ABCMeta, abstractmethod
 
 import ode

File ars/model/robot/__init__.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german

File ars/model/robot/actuators.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german
 
 from abc import ABCMeta, abstractmethod
 

File ars/model/robot/joints.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german
 
 from abc import ABCMeta, abstractmethod
 

File ars/model/robot/sensors.py

-'''
-Created on 2011.10.31
-Last modified on 2011.10.31
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.10.31
+#
+# @author: german

File ars/model/simulator/__init__.py

-'''
-Created on 2011.10.17
-Last modified on 2011.11.16
 
-@author: german
-TODO: attribute the code sections that were copied from somewhere else
-TODO: delete the calls body.setPosition() and body.setRotation() in the createXXX() methods
-'''
+# Created on 2011.10.17
+# Last modified on 2011.11.16
+#
+# @author: german
+# TODO: attribute the code sections that were copied from somewhere else
+# TODO: delete the calls body.setPosition() and body.setRotation() in the createXXX() methods
 
 import random, time
 

File ars/model/simulator/collision.py

-'''
-Created on 2011.10.31
-Last modified on 2011.11.01
 
-@author: german
-'''
+# Created on 2011.10.31
+# Last modified on 2011.11.01
+#
+# @author: german
+
 #from abc import ABCMeta, abstractmethod
 
 import ode

File ars/model/simulator/physics.py

-'''
-Created on 2011.08.09
-Last modified on 2011.11.01
-@author: german
 
-TODO: attribute the code sections that were copied from somewhere else
-'''
+# Created on 2011.08.09
+# Last modified on 2011.11.01
+# @author: german
+#
+# TODO: attribute the code sections that were copied from somewhere else
 
 from abc import ABCMeta, abstractmethod
 

File ars/utilities/generic.py

+
+# Created on 2011.08.23
+# Last modified on 2011.10.17
+#
+# @author: german
+
 '''
-Created on 2011.08.23
-Last modified on 2011.10.17
-
-@author: german
+Generic utility functions to write variables and tuples to file; 
+write and read setting from a file; modify and create tuples.
 '''
 
 import ConfigParser as cp

File ars/utilities/mathematical.py

+
+# Created on 2011.08.09
+# Last modified on 2011.10.25
+#
+# @author: german
+#
+# TODO: attribute the code sections that were copied from somewhere else
+
 '''
-Created on 2011.08.09
-Last modified on 2011.10.25
-
-@author: german
-
-TODO: attribute the code sections that were copied from somewhere else
+Functions to perform operations over vectors and matrices; 
+deal with homogeneous transforms; convert angles and other structures. 
 '''
 
 import math
 	"""Returns the unit length 3-vector parallel to 3-vector vector."""
 	#TODO: convert it so it can handle vector of any dimension
 	l = length3(vector)
-	if (l > 0.0): return (vector[0] / l, vector[1] / l, vector[2] / l)
-	else: return (0.0, 0.0, 0.0)
+	if (l > 0.0):
+		return (vector[0] / l, vector[1] / l, vector[2] / l)
+	else:
+		return (0.0, 0.0, 0.0)
 
 def dot_product3(vector1, vector2):
 	"""Returns the dot product of 3-vectors vector1 and vector2."""
 
 def cross_product(vector1, vector2):
 	"""Returns the cross_product product of 3-vectors vector1 and vector2."""
-	return (vector1[1] * vector2[2] - vector1[2] * vector2[1], vector1[2] * vector2[0] - vector1[0] * vector2[2],
+	return (vector1[1] * vector2[2] - vector1[2] * vector2[1], 
+		vector1[2] * vector2[0] - vector1[0] * vector2[2],
 		vector1[0] * vector2[1] - vector1[1] * vector2[0])
 
 def project3(vector, unit_vector):
 def transpose3(matrix):
 	"""Returns the inversion (transpose) of 3x3 rotation matrix matrix."""
 	#TODO: convert it so it can handle vector of any dimension
-	return (matrix[0], matrix[3], matrix[6], matrix[1], matrix[4], matrix[7], matrix[2], matrix[5], matrix[8])
+	return (matrix[0], matrix[3], matrix[6], 
+		matrix[1], matrix[4], matrix[7], 
+		matrix[2], matrix[5], matrix[8])
 
 def z_axis(rot_matrix):
 	"""Returns the z-axis vector from 3x3 (row major) rotation matrix rot_matrix."""