Skip to content
Snippets Groups Projects
Commit 31ec0412 authored by Davis, Duane T's avatar Davis, Duane T
Browse files

Updated classes to "new" style (inherit from object)

parent 40c38b3c
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import cs4313_utilities.shared_robot_classes as src
import cs4313_utilities.quaternion_math as quat
class SimpleRobot:
class SimpleRobot(object):
''' Class for maintaining state information for a single ground robot. Also
includes the subscription callbacks and publisher methods for interacting
with ROS and the methods required to implement behaviors. The assumed
......
......@@ -22,7 +22,7 @@ LINE_FOLLOWING = 5
WALL_FOLLOWING = 6
class RobotState:
class RobotState(object):
''' Class for maintaining state information for a single ground robot
State includes positional data (x, y, theta) and velocity
(xDot, yDot, thetaDot). This class does not include any member
......@@ -39,7 +39,7 @@ class RobotState:
self.velocity = [ initVelocity[0], initVelocity[1], initVelocity[2] ]
class LaserData:
class LaserData(object):
''' Class for maintaining a single iteration of laser scan data
Scan data includes the minimum and maximum scan angles,
angular increment, and maximum range. Individual range readings
......@@ -150,7 +150,7 @@ class LaserData:
class DirectedLine:
class DirectedLine(object):
''' Container class for a directed line. Contains information about points
on the line (start and end), the direction of the line (theta), and the
parametric (normal form: phi and rho) parameters of the line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment