ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2020-12-15 14:50:07 -0500 | received badge | ● Self-Learner (source) |
2020-12-15 14:50:07 -0500 | received badge | ● Teacher (source) |
2020-12-15 14:49:56 -0500 | received badge | ● Nice Question (source) |
2018-02-18 16:06:21 -0500 | received badge | ● Taxonomist |
2016-11-29 17:52:47 -0500 | received badge | ● Famous Question (source) |
2016-03-22 05:05:55 -0500 | received badge | ● Scholar (source) |
2016-03-22 05:05:40 -0500 | answered a question | Dynamic parameters update from the code (cpp) So I found the solution for my self, not exactly what I wanted, but it works. I finally managed the code from Notify changes to dynamic_reconfigure question to work. My problem was that I didn't initialize the dyn_config properly in a class constructor, which entailed the parameters to constantly update with random, out-of-scope numbers. But this solution didn't work for me eventually and here is why. From the example, in the link above, we can see the function So what I do in short - I don't update the values constantly with some specific update rate, but run the analog of
My_class So each time I am changing The last question I have is regarding the recursive_mutex. It is said here that you need to implement it if you call |
2016-03-15 16:08:54 -0500 | received badge | ● Famous Question (source) |
2016-03-15 14:36:34 -0500 | answered a question | Dynamic parameters update from the code (cpp) @ahemdrix I want to change only B, without touching A, so that A has to be updated in rqt as soon as it changes inside the program. |
2016-03-15 10:27:02 -0500 | commented question | Dynamic parameters update from the code (cpp) Thank you Thomas! I did try but I'm having the same problem that was mentioned by lucasw (Jul 8 '15) in comments. |
2016-03-15 10:26:09 -0500 | commented answer | Dynamic parameters update from the code (cpp) Regarding node I am calling from: I tried both cases from the same node and from other - the result was the same. |
2016-03-15 10:25:33 -0500 | commented answer | Dynamic parameters update from the code (cpp) If you run from c++ code these lines: system("rosrun dynamic_reconfigure dynparam set My_node My_param_1 Value &") system("rosrun dynamic_reconfigure dynparam set My_node My_param_2 Value &") It may change My_param_2 before it changes My_param_1 |
2016-03-15 10:20:52 -0500 | commented answer | Dynamic parameters update from the code (cpp) Thank you for your help and sorry for such a late reply! I had a bug that was recursively calling dyn_param callback, so I managed it to work using system("rosrun dynamic_reconfigure dynparam set My_node My_param Value &"); but this solution sometimes gives bugs, for instance: |
2016-03-15 10:17:18 -0500 | commented answer | Is there a C++ API for a dynamic reconfigure client? Do you have some examples of that? |
2016-02-23 14:57:19 -0500 | received badge | ● Notable Question (source) |
2016-02-23 05:49:29 -0500 | received badge | ● Popular Question (source) |
2016-02-23 04:54:45 -0500 | commented answer | Dynamic parameters update from the code (cpp) Thank you for the answer. I am mainly use dynamic_reconfigure for debugging and it's GUI pretty convenient. So I do not use it at high rates. And I think dyn_reconfigure has the feature I need, although it's not documented. You can discover it from "Notify changes to dynamic_reconfigure" link. |
2016-02-23 04:48:57 -0500 | received badge | ● Notable Question (source) |
2016-02-23 03:36:04 -0500 | received badge | ● Editor (source) |
2016-02-23 03:35:03 -0500 | asked a question | Dynamic parameters update from the code (cpp) Hello, folks! I am having trouble to update the dynamic parameters from c++ code. My first attempt was to follow hokuyo_node tutorial. So I put this line in my code: Another solutions I found regarding my problem:
the solution presented in first two links didn't work for me (maybe because of my wrong initialization of dynamic_reconfigure::Server inside the class, I will put my code below). If I initialize dynamic_reconfigure::Server giving my node as an argument, nothing shows up in rqt_reconfigure. main My_class Thank you in advance for help! Edit: @ahendrix I want to change only B, without touching A, so that A has to be updated in rqt as soon as it changes inside the program. |
2016-02-23 02:54:55 -0500 | commented answer | Dynamic_reconfigure's .cfg file synchronization with parameter's changes Thank you for your reply! Looking forward for your updates |
2016-01-28 15:45:44 -0500 | received badge | ● Popular Question (source) |
2016-01-18 11:25:36 -0500 | received badge | ● Student (source) |
2016-01-16 08:09:19 -0500 | asked a question | Dynamic_reconfigure's .cfg file synchronization with parameter's changes Hello folks! I'm wondering is there a simple way to update your .cfg file (used by dynamic_reconfigure tool) with the changes you make during program run? So that each time you restart roscore, the parameter's server uploads the latest changes you put via rqt_reconfigure, without manually updating your .cfg file. I found similar question regarding Rosparam package without certain solutions. So maybe somebody came up with it for Dynamic_reconfigure pack? I would appreciate if you can provide your solution with roscpp. Thank you in advance! |
2015-11-13 04:26:44 -0500 | received badge | ● Enthusiast |
2015-11-08 20:12:51 -0500 | answered a question | configs/nuttx_px4fmu-v2_default Hi, I have the same problem. Did you manage to find the solution? |
2015-11-08 18:57:18 -0500 | received badge | ● Supporter (source) |