You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/3_sensor_models/3_3_sensors.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,4 +105,20 @@ class FourWheelsVehicle:
105
105
sensors: Sencors object
106
106
show_zoom: Flag for zoom around vehicle
107
107
"""
108
+
```
109
+
110
+
A private function to install sensors is implemented. This function is used to compute the global position coordinate of the sensors based on the current state of the vehicle. The function, install in Sensors class is called.
111
+
```python
112
+
def_install_sensors(self, state):
113
+
"""
114
+
Private function to calculate each sensor's installation position on vehicle
115
+
state: Vehicle's state object
116
+
"""
117
+
118
+
ifself.sensors: self.sensors.install(state)
119
+
```
120
+
The added argument, sensors is stored in a member variable and the above function, _install_sensors() is called in the constructor.
0 commit comments