Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
car_keys.main.PublishThread Class Reference

Thread to publish control commands to the robot. More...

Inheritance diagram for car_keys.main.PublishThread:
Inheritance graph
Collaboration diagram for car_keys.main.PublishThread:
Collaboration graph

Public Member Functions

 __init__ (self, rate)
 Constructor for the PublishThread class.
 
 update (self, float acceleration, float steering_angle)
 Update the control commands to be published.
 
 stop (self)
 Stop the thread.
 
 run (self)
 Run the thread to publish control commands.
 

Public Attributes

 node
 
 control_publisher
 
 rate
 
 condition
 
 new_command
 
 done
 
 acceleration
 
 steering_angle
 

Detailed Description

Thread to publish control commands to the robot.

Definition at line 28 of file main.py.

Constructor & Destructor Documentation

◆ __init__()

car_keys.main.PublishThread.__init__ (   self,
  rate 
)

Constructor for the PublishThread class.

Parameters
rateRate at which to publish control commands

Definition at line 33 of file main.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ run()

car_keys.main.PublishThread.run (   self)

Run the thread to publish control commands.

Definition at line 79 of file main.py.

◆ stop()

car_keys.main.PublishThread.stop (   self)

Stop the thread.

Definition at line 71 of file main.py.

Here is the call graph for this function:

◆ update()

car_keys.main.PublishThread.update (   self,
float  acceleration,
float  steering_angle 
)

Update the control commands to be published.

Parameters
accelerationAcceleration value
steering_angleSteering angle value

Definition at line 57 of file main.py.

Here is the caller graph for this function:

Member Data Documentation

◆ acceleration

car_keys.main.PublishThread.acceleration

Definition at line 65 of file main.py.

◆ condition

car_keys.main.PublishThread.condition

Definition at line 51 of file main.py.

◆ control_publisher

car_keys.main.PublishThread.control_publisher

Definition at line 41 of file main.py.

◆ done

car_keys.main.PublishThread.done

Definition at line 53 of file main.py.

◆ new_command

car_keys.main.PublishThread.new_command

Definition at line 52 of file main.py.

◆ node

car_keys.main.PublishThread.node

Definition at line 40 of file main.py.

◆ rate

car_keys.main.PublishThread.rate

Definition at line 48 of file main.py.

◆ steering_angle

car_keys.main.PublishThread.steering_angle

Definition at line 66 of file main.py.


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