ME 405 Romi
Loading...
Searching...
No Matches
data_collector.data_collector Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

data_collector.data_collector.__init__ ( self,
testing_flg,
position,
velocity,
times,
position_l,
velocity_l,
position_r,
velocity_r,
velocity2 )

Data Collector Initialization.

Parameters
P1Testing Flag
P2Position
P3Velocity
P4Times
P5Left Motor Position
P6Left Motor Velocity
P7Right Motor Position
P8Right Motor Velocity
P9Velocity 2

Definition at line 18 of file data_collector.py.

Member Function Documentation

◆ run()

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.

Member Data Documentation

◆ position

data_collector.data_collector.position = position

Definition at line 20 of file data_collector.py.

◆ position_l

data_collector.data_collector.position_l = position_l

Definition at line 23 of file data_collector.py.

◆ position_r

data_collector.data_collector.position_r = position_r

Definition at line 25 of file data_collector.py.

◆ state

int data_collector.data_collector.state = 1

Definition at line 28 of file data_collector.py.

◆ testing_flg

data_collector.data_collector.testing_flg = testing_flg

Definition at line 19 of file data_collector.py.

◆ times

data_collector.data_collector.times = times

Definition at line 22 of file data_collector.py.

◆ velocity

data_collector.data_collector.velocity = velocity

Definition at line 21 of file data_collector.py.

◆ velocity2

data_collector.data_collector.velocity2 = velocity2

Definition at line 27 of file data_collector.py.

◆ velocity_l

data_collector.data_collector.velocity_l = velocity_l

Definition at line 24 of file data_collector.py.

◆ velocity_r

data_collector.data_collector.velocity_r = velocity_r

Definition at line 26 of file data_collector.py.


The documentation for this class was generated from the following file: