ROS2 Learning
Classes | Functions
parameters.cpp File Reference

A node to declare and get parameters Here the parameters are the message data for two publisher It's possible to change them at run time using the commad line "ros2 param set /set_parameter_node vehicle_speed 100" "ros2 param set /set_parameter_node vehicle_type car" or using a launch file. More...

#include <chrono>
#include <string>
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
#include "std_msgs/msg/int16.hpp"
Include dependency graph for parameters.cpp:

Classes

class  MySetParameterClass
 

Functions

int main (int argc, char **argv)
 

Detailed Description

A node to declare and get parameters Here the parameters are the message data for two publisher It's possible to change them at run time using the commad line "ros2 param set /set_parameter_node vehicle_speed 100" "ros2 param set /set_parameter_node vehicle_type car" or using a launch file.

Author
Antonio Mauro Galiano Contact: https://www.linkedin.com/in/antoniomaurogaliano/