|
ME 405 Romi
|
Collects data from shares. More...
Public Member Functions | |
| __init__ (self, testing_flg, position, velocity, times, position_l, velocity_l, position_r, velocity_r, velocity2) | |
| Data Collector Initialization. | |
| run (self) | |
| Runs the various tasks Data Collector. | |
Public Attributes | |
| testing_flg = testing_flg | |
| position = position | |
| velocity = velocity | |
| times = times | |
| position_l = position_l | |
| velocity_l = velocity_l | |
| position_r = position_r | |
| velocity_r = velocity_r | |
| velocity2 = velocity2 | |
| int | state = 1 |
Collects data from shares.
This task class which contains a generator finite state machine that collects data from shares and puts them into ques to be read
This class runs continuously
Definition at line 6 of file data_collector.py.
| data_collector.data_collector.__init__ | ( | self, | |
| testing_flg, | |||
| position, | |||
| velocity, | |||
| times, | |||
| position_l, | |||
| velocity_l, | |||
| position_r, | |||
| velocity_r, | |||
| velocity2 ) |
Data Collector Initialization.
| P1 | Testing Flag |
| P2 | Position |
| P3 | Velocity |
| P4 | Times |
| P5 | Left Motor Position |
| P6 | Left Motor Velocity |
| P7 | Right Motor Position |
| P8 | Right Motor Velocity |
| P9 | Velocity 2 |
Definition at line 18 of file data_collector.py.
| data_collector.data_collector.run | ( | self | ) |
Runs the various tasks Data Collector.
State 1 Wait for data collection call
State 2 Load the Queue for left motor velocity
State 3 Load the Queue for right motor velocity
State 4 Load the Queue for left motor position
State 5 Load the Queue for right motor position
State 6 Load the Queue for both motor velocities
Definition at line 42 of file data_collector.py.
| data_collector.data_collector.position = position |
Definition at line 20 of file data_collector.py.
| data_collector.data_collector.position_l = position_l |
Definition at line 23 of file data_collector.py.
| data_collector.data_collector.position_r = position_r |
Definition at line 25 of file data_collector.py.
| int data_collector.data_collector.state = 1 |
Definition at line 28 of file data_collector.py.
| data_collector.data_collector.testing_flg = testing_flg |
Definition at line 19 of file data_collector.py.
| data_collector.data_collector.times = times |
Definition at line 22 of file data_collector.py.
| data_collector.data_collector.velocity = velocity |
Definition at line 21 of file data_collector.py.
| data_collector.data_collector.velocity2 = velocity2 |
Definition at line 27 of file data_collector.py.
| data_collector.data_collector.velocity_l = velocity_l |
Definition at line 24 of file data_collector.py.
| data_collector.data_collector.velocity_r = velocity_r |
Definition at line 26 of file data_collector.py.