Skip to content

Commit

Permalink
ros2 param dump does not work if a node has declared parameters witho…
Browse files Browse the repository at this point in the history
…ut a value

  Ref: ros2/ros2cli#936

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Sep 23, 2024
1 parent a598d37 commit 3105d36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions prover_rclpy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'ros2cli_818 = src.ros2cli_818:main',
'ros2cli_862 = src.ros2cli_862:main',
'ros2cli_885 = src.ros2cli_885:main',
'ros2cli_936 = src.ros2cli_936:main',
'rosbag2_1549 = src.rosbag2_1549:main',
'ros2_doc_4132 = src.ros2_doc_4132:main',
],
Expand Down
13 changes: 13 additions & 0 deletions prover_rclpy/src/ros2cli_936.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import rclpy
import sys

def main():
rclpy.init(args=sys.argv)
node = rclpy.create_node("test")
node.declare_parameter('param', rclpy.Parameter.Type.INTEGER)
rclpy.spin(node)
rclpy.shutdown()


if __name__ == '__main__':
main()

0 comments on commit 3105d36

Please sign in to comment.