From 818b09e53462ff692c897ff39d3b34ec97bbdb9a Mon Sep 17 00:00:00 2001 From: Nandan Tumu <10603428+nandantumu@users.noreply.github.com> Date: Fri, 16 Feb 2018 17:00:36 -0500 Subject: [PATCH] Fixed tabs/spaces --- src/publish_vel_dist.py | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/src/publish_vel_dist.py b/src/publish_vel_dist.py index e82f536..ca40a75 100644 --- a/src/publish_vel_dist.py +++ b/src/publish_vel_dist.py @@ -7,34 +7,10 @@ from std_msgs.msg import * import math class VariableMaintainer(): - def __init__(self): - self._time = False + def __init__(self): + self._time = False self._velocity = [0,0,0] self._position = [0,0,0] - - @property - def time(self): - return self._time - - @time.setter - def time(self, value): - self._time = value - - @property - def velocity(self): - return self._velocity - - @velocity.setter - def velocity(self, value): - self._velocity = value - - @property - def position(self): - return self._position - - @position.setter - def position(self, value): - self._position = value @@ -64,7 +40,7 @@ def publishVelDist(msg, vmaint): def main(): # Collect first 50 entries and average them. rospy.init_node("publish_vel_dist") - timemaint = VariableMaintainer() + vmaint = VariableMaintainer() rospy.Subscriber('imu', Imu, publishVelDist, vmaint) rospy.spin()