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()