safety_user_plugin/scripts/restrictions.py

8 lines
258 B
Python
Raw Permalink Normal View History

2021-08-13 14:43:56 +02:00
#!/usr/bin/env python
class Restrictions:
def __init__(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