Thread to publish control commands to the robot.
More...
Thread to publish control commands to the robot.
Definition at line 28 of file main.py.
◆ __init__()
| car_keys.main.PublishThread.__init__ |
( |
|
self, |
|
|
|
rate |
|
) |
| |
Constructor for the PublishThread class.
- Parameters
-
| rate | Rate at which to publish control commands |
Definition at line 33 of file main.py.
◆ 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.
◆ update()
| car_keys.main.PublishThread.update |
( |
|
self, |
|
|
float |
acceleration, |
|
|
float |
steering_angle |
|
) |
| |
Update the control commands to be published.
- Parameters
-
| acceleration | Acceleration value |
| steering_angle | Steering angle value |
Definition at line 57 of file main.py.
◆ acceleration
| car_keys.main.PublishThread.acceleration |
◆ condition
| car_keys.main.PublishThread.condition |
◆ control_publisher
| car_keys.main.PublishThread.control_publisher |
◆ done
| car_keys.main.PublishThread.done |
◆ new_command
| car_keys.main.PublishThread.new_command |
◆ node
| car_keys.main.PublishThread.node |
◆ rate
| car_keys.main.PublishThread.rate |
◆ steering_angle
| car_keys.main.PublishThread.steering_angle |
The documentation for this class was generated from the following file: