-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathobstacle.py
47 lines (35 loc) · 852 Bytes
/
obstacle.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 8 16:31:21 2023
@author: oscar
"""
class Obstacle(object):
def __init__(self):
self.s = None
self.l = None
self.yaw = None
self.v = None
def setS(self, s):
self.s = s
def getS(self):
return self.relative_s
def setL(self, l):
self.l = l
def getL(self):
return self.l
def setYaw(self, yaw):
self.yaw = yaw
def getYaw(self):
return self.yaw
def setV(self, v):
self.v = v
def getV(self):
return self.v
def setProperty(self, s, l, yaw, v):
self.s = s
self.l = l
self.yaw = yaw
self.v = v
def getProperty(self):
return self.s, self.l, self.yaw, self.v