Main Content
Get Parameter
Libraries:
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.
Examples
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2022b