-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParameterAlreadyDeclaredException for parameter position_proportional_gain
#259
Comments
IMHO we may check for parameter already defined and avoid redefinition... Allow me some time to check :) |
Ok, my thoughts on this:
Any thoughts or counter-deductions? I may have missed something. |
I'm also seeing the following segfault on newly upgraded machines running the turtlebot4 sim after the recent humble package sync, seemingly caused by the same change: ruby $(which ign) gazebo-1] Stack trace (most recent call last):
[ruby $(which ign) gazebo-1] #19 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
[ruby $(which ign) gazebo-1] #18 Object "ign gazebo gui", at 0x55fca60091c4, in _start
[ruby $(which ign) gazebo-1] #17 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f8bb1429e3f, in __libc_start_main
[ruby $(which ign) gazebo-1] #16 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f8bb1429d8f, in
[ruby $(which ign) gazebo-1] #15 Object "ign gazebo gui", at 0x55fca600917e, in
[ruby $(which ign) gazebo-1] #14 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb18a8e19, in ruby_run_node
[ruby $(which ign) gazebo-1] #13 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb18a5317, in
[ruby $(which ign) gazebo-1] #12 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb1a3a30c, in rb_vm_exec
[ruby $(which ign) gazebo-1] #11 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb1a34c96, in
[ruby $(which ign) gazebo-1] #10 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb1a31fc5, in
[ruby $(which ign) gazebo-1] #9 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb1a2fc34, in
[ruby $(which ign) gazebo-1] #8 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb197ba27, in
[ruby $(which ign) gazebo-1] #7 Object "/lib/x86_64-linux-gnu/libruby-3.0.so.3.0", at 0x7f8bb18a8db5, in ruby_stop
[ruby $(which ign) gazebo-1] #6 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f8bb144560f, in exit
[ruby $(which ign) gazebo-1] #5 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f8bb1445494, in
[ruby $(which ign) gazebo-1] #4 Object "/lib/x86_64-linux-gnu/libQt5Qml.so.5", at 0x7f8ba9e9c64c, in
[ruby $(which ign) gazebo-1] #3 Object "/lib/x86_64-linux-gnu/libQt5Qml.so.5", at 0x7f8ba9eaa611, in
[ruby $(which ign) gazebo-1] #2 Object "/lib/x86_64-linux-gnu/libQt5Qml.so.5", at 0x7f8ba9ec544c, in QQmlPropertyCache::~QQmlPropertyCache()
[ruby $(which ign) gazebo-1] #1 Object "/lib/x86_64-linux-gnu/libQt5Qml.so.5", at 0x7f8ba9ec5108, in QQmlPropertyCache::~QQmlPropertyCache()
[ruby $(which ign) gazebo-1] #0 Object "/lib/x86_64-linux-gnu/libQt5Qml.so.5", at 0x7f8ba9e60ff0, in
[ruby $(which ign) gazebo-1] Segmentation fault (Address not mapped to object [0x7f8b73562f80])
[ERROR] [ir_intensity_vector_publisher-34]: process has died [pid 392740, exit code -11, cmd '/home/user/colcon_ws/install/irobot_create_nodes/lib/irobot_create_nodes/ir_intensity_vector_publisher --ros-args -r __node:=ir_intensity_vector_publisher -r __ns:=/ --params-file /home/vid/colcon_ws/install/irobot_create_common_bringup/share/irobot_create_common_bringup/config/ir_intensity_vector_params.yaml --params-file /tmp/launch_params_1yw4mkm8']. It took me a while to figure out the package that was causing it, but I can confirm that it's commit I'm not entirely sure what the sync protocol is, but I don't suppose there's a way to push a hotfix deb to the OSRF apt repo after this is reverted, so this doesn't stay broken until the next sync? I sort of have over fifty students over here whose simulation will be effed if they ever run |
I honestly don't have a perfect overview about the functionality, but from a user experience point of view I would prefer if the parameter |
@TipluJacob I will try to propose a patch soon |
…n_proportional_gain` (backport #261) (#262) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Patrick Roncagliolo <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
…n_proportional_gain` (backport #261) (#263) Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Patrick Roncagliolo <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
Is there any estimate of when debian packages will be updated with this fix? Thanks |
Since PR 248 I get an rclcpp::exceptions::ParameterAlreadyDeclaredException for the parameter
position_proportional_gain
:This due to my URDF setup, where I have macros, in which I have defined ros2_control tags that contain the line
<plugin>ign_ros2_control/IgnitionSystem</plugin>
. When the macro is called the first time, everything is fine, when it is called the second time, I get the ParameterAlreadyDeclaredException.My macro looks like this:
My questions now are:
<plugin>ign_ros2_control/IgnitionSystem</plugin>
tag wrongly, so should it only be once in my complete URDF description?position_proportional_gain
? In my understanding it should be possible to set the parameter independently for every joint, so something likeThe text was updated successfully, but these errors were encountered: