Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed tabs/spaces
  • Loading branch information
Nandan Tumu committed Feb 16, 2018
1 parent 56a21aa commit 818b09e
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions src/publish_vel_dist.py
Expand Up @@ -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



Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 818b09e

Please sign in to comment.