Fix race condition when declaring parameters#525
Conversation
|
Why would a node have already declared these parameters? |
Not 100% sure, but I think this mainly happens for RViz since each display will load its own robot model and they all share the same node causing multiple declarations |
Codecov Report
@@ Coverage Diff @@
## main #525 +/- ##
==========================================
- Coverage 54.24% 54.18% -0.06%
==========================================
Files 192 192
Lines 20224 20187 -37
==========================================
- Hits 10969 10936 -33
+ Misses 9255 9251 -4
Continue to review full report at Codecov.
|
henningkayser
left a comment
There was a problem hiding this comment.
So... RViz is initializing the plugins in separate threads with the same node instance? Well.. this is definitely another requirement for our WIP parameter API
moveit_ros/planning/robot_model_loader/src/robot_model_loader.cpp
Outdated
Show resolved
Hide resolved
|
We actually have interfaces for sharing a RobotModel(Loader) in static memory. |
1237961 to
a768e9e
Compare
|
I ended up fixing it by adding a shared robot model loaders, hopefully, this's a better solution than the previous one |
5414a12 to
ef61ac3
Compare
henningkayser
left a comment
There was a problem hiding this comment.
Solution looks good to me. Please verify if we should or should not load IK solvers for the shared robot model
moveit_ros/planning_interface/common_planning_interface_objects/src/common_objects.cpp
Show resolved
Hide resolved
…ple displays for the same node
0924589 to
da2f124
Compare
…ple displays for the same node (moveit#525)
Description
Fix: #474
Not an optimal solution at all, but at least it works :D
Checklist