#include <chrono>
#include <cinttypes>
#include <memory>
#include "example_interfaces/srv/add_two_ints.hpp"
#include "rclcpp/rclcpp.hpp"
|
int | main (int argc, char *argv[]) |
| Main entry point for the ServerNode application.
|
|
◆ 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
-
argc | Number of command-line arguments. |
argv | Array of command-line arguments. |
- Returns
- Exit status.