ROS initialization
The first line of the main function is ros::Init. It has four parameters, and the fourth parameter is usually omitted.
Parameters
| Parameter | Type | Description |
|---|---|---|
| argc | int& | Number of remapping arguments |
| agv | char** | List of remapping arguments |
| name | string& | Node name, must be a base name and cannot contain namespaces |
| options = 0 | uint32_t | [Optional] options for starting the node (a set of bitflags from ros::init_options) |
Example
ros::init (argc , argv , "name")