C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
add_two_ints_server.cpp File Reference
#include <chrono>
#include <cinttypes>
#include <memory>
#include "example_interfaces/srv/add_two_ints.hpp"
#include "rclcpp/rclcpp.hpp"
Include dependency graph for add_two_ints_server.cpp:

Classes

class  ServerNode
 A ROS 2 service server node for adding two integers. More...
 

Functions

int main (int argc, char *argv[])
 Main entry point for the ServerNode application.
 

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Main entry point for the ServerNode application.

Initializes the ROS 2 node, spins it to handle incoming service requests, and shuts down gracefully when done.

Parameters
argcNumber of command-line arguments.
argvArray of command-line arguments.
Returns
Exit status.