Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
evaluator.vehicle_adapter.VehicleAdapter Class Reference
Inheritance diagram for evaluator.vehicle_adapter.VehicleAdapter:
Inheritance graph
Collaboration diagram for evaluator.vehicle_adapter.VehicleAdapter:
Collaboration graph

Public Member Functions

 __init__ (self, rclpy.node.Node node)
 
 state_estimation_callback (self, ConeArray map)
 
 perception_callback (self, ConeArray perception)
 
 g_truth_callback (self, MarkerArray g_truth)
 
 state_ground_truth_callback (self, MarkerArray state_ground_truth)
 Callback function to process ground truth map messages.
 

Public Attributes

 state_ground_truth_callback
 
 g_truth_callback
 
 perception_callback
 
 state_estimation_callback
 

Protected Attributes

 _state_ground_truth
 
 _g_truth
 
 _perception_sync_
 

Detailed Description

Adapater class to manage the use of the vehicle.

Definition at line 12 of file vehicle_adapter.py.

Constructor & Destructor Documentation

◆ __init__()

evaluator.vehicle_adapter.VehicleAdapter.__init__ (   self,
rclpy.node.Node  node 
)
Initializes the VehicleAdapter class.
Args:
    node (rclpy.node.Node): The ROS2 node object.

Reimplemented from evaluator.adapter.Adapter.

Definition at line 15 of file vehicle_adapter.py.

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

Member Function Documentation

◆ g_truth_callback()

evaluator.vehicle_adapter.VehicleAdapter.g_truth_callback (   self,
MarkerArray  g_truth 
)
Callback function for ground truth data.
Args:
    g_truth (MarkerArray): The ground truth marker array.
Returns:
    None

Definition at line 95 of file vehicle_adapter.py.

◆ perception_callback()

evaluator.vehicle_adapter.VehicleAdapter.perception_callback (   self,
ConeArray  perception 
)
Callback function for perception data.
Args:
    perception (ConeArray): The perception output received.
Returns:
    None

Definition at line 83 of file vehicle_adapter.py.

◆ state_estimation_callback()

evaluator.vehicle_adapter.VehicleAdapter.state_estimation_callback (   self,
ConeArray  map 
)
Callback function for state estimation data.

Args:
    map (ConeArray): The state estimation output received.
Returns: None

Definition at line 59 of file vehicle_adapter.py.

◆ state_ground_truth_callback()

evaluator.vehicle_adapter.VehicleAdapter.state_ground_truth_callback (   self,
MarkerArray  state_ground_truth 
)

Callback function to process ground truth map messages.

Args: state_ground_truth (MarkerArray): Ground truth map data.

Definition at line 107 of file vehicle_adapter.py.

Member Data Documentation

◆ _g_truth

evaluator.vehicle_adapter.VehicleAdapter._g_truth
protected

Definition at line 40 of file vehicle_adapter.py.

◆ _perception_sync_

evaluator.vehicle_adapter.VehicleAdapter._perception_sync_
protected

Definition at line 42 of file vehicle_adapter.py.

◆ _state_ground_truth

evaluator.vehicle_adapter.VehicleAdapter._state_ground_truth
protected

Definition at line 24 of file vehicle_adapter.py.

◆ g_truth_callback

evaluator.vehicle_adapter.VehicleAdapter.g_truth_callback

Definition at line 36 of file vehicle_adapter.py.

◆ perception_callback

evaluator.vehicle_adapter.VehicleAdapter.perception_callback

Definition at line 50 of file vehicle_adapter.py.

◆ state_estimation_callback

evaluator.vehicle_adapter.VehicleAdapter.state_estimation_callback

Definition at line 55 of file vehicle_adapter.py.

◆ state_ground_truth_callback

evaluator.vehicle_adapter.VehicleAdapter.state_ground_truth_callback

Definition at line 29 of file vehicle_adapter.py.


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