Open mganglb opened 4 years ago
Could you provide an example of how you are declaring parameters in a launch file? Also, what are you trying to achieve by doing this?
I would avoid calling rclpy
API directly in your launch files. I suspect you can accomplish what you want with features available in launch
.
i am gonna make more tests on the we and post it. Your example works on my station as well. I think it is maybe connected to --symlink-install.
Hello, i am no Expert! So pl forgive me, if i just miss some basic ros2 parameter background knowledge.
i would like to use the method node.declare_parameters([]). Usually declare one parameter at a time with node.declare_parameter().
If i use a *.launch.py file to startup the node, i usually declare the parameters used by the node in the launch file as well. To overcome the problem i just use something like that.
Since this is not possible, if we declare multiple parameters at once with node.declare_parameters([*]), i would propose an "ignore ParameterAlreadyDeclaredException"- flag
https://github.com/ros2/rclpy/blob/4725106460bc31a0aaa11645847cc4084e7d1e78/rclpy/rclpy/node.py#L441