|
ROS2 Learning
|
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"
Classes | |
| class | MySetParameterClass |
Functions | |
| int | main (int argc, char **argv) |
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.