Get Parameter
Get ROS 2 parameter value
- Library:
ROS Toolbox / ROS 2
Description
The Get Parameter block outputs the value of the specified ROS 2 parameter associated with the node of the Simulink® model. Simulink creates this node when you run the model and deletes it when the model terminates. If the model does not have a parameter, the block creates one.
At the start of the simulation, the block initializes the ROS 2 parameter with the specified initial value. For each sample hit, the block checks the ROS 2 parameter and outputs its value.
Ports
Output
Parameters
Model Examples
Extended Capabilities
Version History
Introduced in R2022b