2018-09-26 15:55:58 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
class Restrictions:
|
|
|
|
|
2018-09-27 11:42:55 +02:00
|
|
|
def __init__(self,distance,angular_velocity,linear_velocity):
|
|
|
|
self.distance = distance
|
|
|
|
self.angular_velocity = angular_velocity
|
|
|
|
self.linear_velocity = linear_velocity
|
|
|
|
|
|
|
|
def update_restrictions(self,restrictions_msg):
|
|
|
|
self.distance = restrictions_msg.distance.data
|
|
|
|
self.linear_velocity = restrictions_msg.linear_velocity.data
|
|
|
|
self.angular_velocity = restrictions_msg.angular_velocity.data
|