The ros2 param list
command is used to display the list of parameters currently set in the ROS 2 system. This command can be very useful for debugging and troubleshooting issues related to ROS 2 parameters.
To use the ros2 param list
command, simply open a new terminal window and enter the following command:
ros2 param list
This will display a list of all the parameters currently set in the ROS 2 system. The output of this command will be similar to the following:
/node_name/parameter_name
Where node_name
is the name of the node that the parameter is associated with and parameter_name
is the name of the parameter.
It is important to note that the ros2 param list
command only displays the names of the parameters and not their values. To get the values of the parameters, you can use the ros2 param get
command.
In addition to the ros2 param list
command, ROS 2 also provides other commands that can be used to manage parameters, such as ros2 param set
, ros2 param get
, and ros2 param delete
. These commands can be used to set, get, and delete parameters, respectively.
Overall, the ros2 param list
command is a very useful tool for debugging and troubleshooting issues related to ROS 2 parameters. If you are working with ROS 2, it is definitely worth familiarizing yourself with this command and the other parameter management commands provided by ROS 2.