|
Formula Student Autonomous Systems
The code for the main driverless system
|
#include <base_decoupled_controller.hpp>


Public Member Functions | |
| void | path_callback (const custom_interfaces::msg::PathPointArray &msg) override |
| Called when a new path is sent by Path Planning. | |
| void | vehicle_state_callback (const custom_interfaces::msg::Velocities &msg) override |
| Called when the car state (currently just velocity) is updated. | |
| void | vehicle_pose_callback (const custom_interfaces::msg::Pose &msg) override |
| Called when the car pose is updated by SLAM. | |
| common_lib::structures::ControlCommand | get_control_command () override |
| Returns the control command calculated by the solver. | |
| void | publish_solver_data (std::shared_ptr< rclcpp::Node > node, std::map< std::string, std::shared_ptr< rclcpp::PublisherBase > > &publisher_map) override |
| Publishes solver specific data using the provided ControlNode. | |
| DecoupledController (const ControlParameters ¶ms) | |
| virtual | ~DecoupledController ()=default |
Public Member Functions inherited from ControlSolver | |
| ControlSolver (const ControlParameters ¶ms) | |
| virtual | ~ControlSolver ()=default |
Private Attributes | |
| std::shared_ptr< LateralController > | lateral_controller_ |
| std::shared_ptr< LongitudinalController > | longitudinal_controller_ |
Additional Inherited Members | |
Protected Attributes inherited from ControlSolver | |
| std::shared_ptr< ControlParameters > | params_ |
Definition at line 7 of file base_decoupled_controller.hpp.
| DecoupledController::DecoupledController | ( | const ControlParameters & | params | ) |
Definition at line 3 of file base_decoupled_controller.cpp.
|
virtualdefault |
|
overridevirtual |
Returns the control command calculated by the solver.
Implements ControlSolver.
Definition at line 22 of file base_decoupled_controller.cpp.
|
overridevirtual |
Called when a new path is sent by Path Planning.
Implements ControlSolver.
Definition at line 7 of file base_decoupled_controller.cpp.

|
overridevirtual |
Publishes solver specific data using the provided ControlNode.
| node | shared pointer to the ControlNode |
| publisher_map | map of topic names to publisher pointers |
Implements ControlSolver.
Definition at line 28 of file base_decoupled_controller.cpp.
|
overridevirtual |
Called when the car pose is updated by SLAM.
Implements ControlSolver.
Definition at line 17 of file base_decoupled_controller.cpp.
|
overridevirtual |
Called when the car state (currently just velocity) is updated.
Implements ControlSolver.
Definition at line 12 of file base_decoupled_controller.cpp.
|
private |
Definition at line 9 of file base_decoupled_controller.hpp.
|
private |
Definition at line 11 of file base_decoupled_controller.hpp.