Open Marco-Andarcia opened 7 years ago
@stonier I need access to yocs_msgs :/
@AlexReimann Can you check this pull request? daniel asked me to ask you to merge this one.
Deadlocks because calling lock here and then calling controlPose here which tries to lock again.
3 possible ways to do this without c++11:
+1 with c++11:
std::Atomic<double> max_something
with which you need no locking@AlexReimann Already fixed the mutex logic. removed the lock from the controlPose() and controlOrientation() functions.
You missed some locking (see additional commit).
Also this foobars the parameter loaded from the params file.
The dynamic reconfigure server is instantiated after the params are loaded from the files. So it will overwrite them (when it gets instantiated it triggers a reconfigure callback with the default values of the Config file).
The way to do this properly is to have the param file parameter names the same as the dyn reconfigure Config file parameters. This way the dynamic reconfigure server will overwrite its defaults with the once from the ros parameter server (which has the values from the params file).
Seems like they already have the same name, going to do some more digging. It definitely foobars something.
There was a bug about w_min not being assigned properly. Checkout the commit.
Added dynamic reconfigure to pose controller, this pull request depends on yocs_msgs pull request.
Test Procedure: