Class YasminNode

Inheritance Relationships

Base Type

  • public rclcpp::Node

Class Documentation

class YasminNode : public rclcpp::Node

A ROS 2 node for managing and handling YASMIN-based applications.

YasminNode is a singleton class derived from rclcpp::Node and integrates custom functionalities for executing specific tasks in a ROS 2 environment.

Public Functions

explicit YasminNode()

Default constructor. Initializes the node with a unique name.

YasminNode(YasminNode &other) = delete

Deleted copy constructor to prevent copying of the singleton instance.

Parameters:

other – Another instance of YasminNode (unused).

void operator=(const YasminNode&) = delete

Deleted assignment operator to enforce singleton pattern.

Parameters:

other – Another instance of YasminNode (unused).

inline ~YasminNode()

Destructor. Cleans up resources.

Public Static Functions

static inline std::shared_ptr<YasminNode> get_instance()

Provides access to the singleton instance of YasminNode.

This method ensures there is only one instance of YasminNode running.

Returns:

A shared pointer to the singleton instance of YasminNode.