Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
NodeControllerTrait Class Referenceabstract

Trait class for node control in SLAM solvers. More...

#include <node_controller_trait.hpp>

Inheritance diagram for NodeControllerTrait:
Inheritance graph
Collaboration diagram for NodeControllerTrait:
Collaboration graph

Public Member Functions

virtual void init (std::weak_ptr< rclcpp::Node > node)=0
 Initialize the SLAM solver.
 
virtual ~NodeControllerTrait ()=default
 

Detailed Description

Trait class for node control in SLAM solvers.

This trait provides an interface for SLAM solvers to interact with ROS2 nodes, allowing them to initialize and manage node-related functionalities.

Definition at line 11 of file node_controller_trait.hpp.

Constructor & Destructor Documentation

◆ ~NodeControllerTrait()

virtual NodeControllerTrait::~NodeControllerTrait ( )
virtualdefault

Member Function Documentation

◆ init()

virtual void NodeControllerTrait::init ( std::weak_ptr< rclcpp::Node >  node)
pure virtual

Initialize the SLAM solver.

This method is used to initialize the SLAM solver's aspects that require the node e.g. timer callbacks

Parameters
nodeROS2 node

Implemented in GraphSLAMSolver.


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