Set Parameter
R2026bSet values on ROS parameter server
Libraries:
ROS Toolbox /
ROS
Description
The Set Parameter block sets the Value input to the specified name on the ROS parameter server. The block uses the ROS node of the Simulink® model to connect to the ROS network. This node is created when you run the model and is deleted when the model terminates. If the model does not have a node, the block creates one.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"robotlib/Set Parameter"
Example: add_block("robotlib/Set Parameter","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2019b