Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented Feb 6, 2025

Since ROS2 Jazzy, parameter services support a service type of rcl_interfaces/srv/GetParameterTypes, which can get a list of parameter types associated with the requested parameters.

This patch implements:

  1. Add service /node_name/get_parameters, which is used to get the parameter types.
  2. Add unit test, Get_parameter_types, into test-parameter-service.js.

Meanwhile, this patch fixes the timeout issue when executing:

ros2 param list node_name

Due to absence of /node_name/get_parameters service.

Reference

[1] https://docs.ros.org/en/jazzy/Concepts/Basic/About-Parameters.html
[2] https://docs.ros.org/en/jazzy/How-To-Guides/Using-ros2-param.html

Fix: #1024

Since ROS2 Jazzy, parameter services support a service type of
rcl_interfaces/srv/GetParameterTypes, which can get a list of
parameter types associated with the requested parameters.

This patch implements:

1. Add service /node_name/get_parameters, which is used to get
   the parameter types.
2. Add unit test, Get_parameter_types, into test-parameter-service.js.

Meanwhile, this patch fixes the timeout issue when executing:

ros2 param list node_name

because of absence of /node_name/get_parameters.

Fix: RobotWebTools#1024
@minggangw minggangw merged commit e99fb8e into RobotWebTools:develop Feb 7, 2025
6 checks passed
minggangw added a commit that referenced this pull request Feb 8, 2025
Since ROS2 Jazzy, parameter services support a service type of `rcl_interfaces/srv/GetParameterTypes`, which can get a list of parameter types associated with the requested parameters.

This patch implements:

1. Add service `/node_name/get_parameters`, which is used to get the parameter types.
2. Add unit test, `Get_parameter_types`, into test-parameter-service.js.

Meanwhile, this patch fixes the timeout issue when executing:
```bash
ros2 param list node_name
```
Due to absence of `/node_name/get_parameters` service.

**Reference**

[1] https://docs.ros.org/en/jazzy/Concepts/Basic/About-Parameters.html
[2] https://docs.ros.org/en/jazzy/How-To-Guides/Using-ros2-param.html

Fix: #1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client waitForService response can be incorrect

1 participant