Get Parameter
R2026bGet values from ROS parameter server
Libraries:
ROS Toolbox /
ROS
Description
The Get Parameter block outputs the value of the specified ROS parameter. 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.
On each sample hit, the block checks the ROS parameter server for the specified ROS parameter and outputs its value.
Ports
Output
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/Get Parameter"
Example: add_block("robotlib/Get Parameter","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2019b