ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

somudrog's profile - activity

2022-01-13 13:23:31 -0500 received badge  Good Question (source)
2021-06-14 18:44:47 -0500 received badge  Nice Question (source)
2018-01-29 21:31:09 -0500 marked best answer What's the best way to publish dynamic parameters to a topic when they change?

I'd like to publish dynamic parameters (from dynamic_reconfigure) to a topic from a C++ node when they change, for the purpose of recording parameter changes in a bag file. In Python, I just convert the dynamic parameters object to a string and publish it in the dynamic parameters callback. What's the best way to do something similar in C++, without having to manually copy each field of the param struct into a string?

Python:

def update_dynamic_params(self, dynamic_params, _level):
    # this always works and I don't have to change the code when the cfg file changes
    self.param_pub.publish(str(dynamic_params))

C++:

void MyNode::updateDynamicParams(const MyConfig& dynamic_params, uint32_t level)
{
  // I'd like to avoid manually copying each field of MyConfig struct into a string, especially because I'd have to update it each time the cfg file changes
}
2018-01-29 21:25:54 -0500 received badge  Famous Question (source)
2018-01-29 18:29:14 -0500 edited question What's the best way to publish dynamic parameters to a topic when they change?

What's the best way to publish dynamic parameters to a topic when they change? I'd like to publish dynamic parameters (f

2018-01-29 17:16:01 -0500 commented question What's the best way to publish dynamic parameters to a topic when they change?

Yes. Please see my updated question details.

2018-01-29 17:15:37 -0500 commented answer What's the best way to publish dynamic parameters to a topic when they change?

Thanks for your answer. Please see my updated question with the detail of what I'm trying to do.

2018-01-29 17:14:43 -0500 edited question What's the best way to publish dynamic parameters to a topic when they change?

What's the best way to publish dynamic parameters to a topic when they change? I'd like to publish dynamic parameters (f

2018-01-29 17:14:43 -0500 received badge  Editor (source)
2018-01-29 17:11:13 -0500 edited question What's the best way to publish dynamic parameters to a topic when they change?

What's the best way to publish dynamic parameters to a topic when they change? I'd like to publish dynamic parameters (f

2018-01-29 16:13:42 -0500 received badge  Famous Question (source)
2018-01-29 15:45:38 -0500 received badge  Notable Question (source)
2018-01-29 10:55:50 -0500 received badge  Popular Question (source)
2018-01-26 14:56:31 -0500 asked a question What's the best way to publish dynamic parameters to a topic when they change?

What's the best way to publish dynamic parameters to a topic when they change? I'd like to publish dynamic parameters (f

2013-06-21 16:00:11 -0500 received badge  Notable Question (source)
2013-06-18 06:57:22 -0500 received badge  Popular Question (source)
2013-06-17 18:28:21 -0500 received badge  Scholar (source)
2013-06-17 15:24:32 -0500 asked a question google test in fuerte

What's the recommended best way to integrate Google Test with fuerte/rosmake? I've looked at the wiki pages for gtest, rostest and rosunit, but I'm not sure which is the most up to date/best to use. Also, is there a good tutorial on how to set everything up and write a unit test in ROS?

2013-02-06 15:47:08 -0500 received badge  Student (source)
2012-11-05 05:35:06 -0500 received badge  Popular Question (source)
2012-11-05 05:35:06 -0500 received badge  Famous Question (source)
2012-11-05 05:35:06 -0500 received badge  Notable Question (source)
2012-08-15 06:18:19 -0500 received badge  Famous Question (source)
2012-08-02 12:11:33 -0500 received badge  Notable Question (source)
2012-06-26 18:31:28 -0500 received badge  Popular Question (source)
2012-06-04 08:49:32 -0500 asked a question broken dependencies in fuerte on Ubuntu 12.04

Hi,

I'm trying to install ros-fuerte-arm-navigation in 12.04 but get broken dependencies in image-common, navigation, robot-model, and visualization. The problem seems to be a conflict with oneiric versions of libassimp-dev and yaml.cpp. Here are the messages I get when I run apt-get -f install (to try to fix the broken dependencies):

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libassimp-dev yaml-cpp
The following NEW packages will be installed:
  libassimp-dev yaml-cpp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
76 not fully installed or removed.
Need to get 0 B/299 kB of archives.
After this operation, 1,052 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 381683 files and directories currently installed.)
Unpacking yaml-cpp (from .../yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.deb (--unpack):
 trying to overwrite '/usr/include/yaml-cpp/emitter.h', which is also in package yaml-cpp0.2.6-dev 0.2.6-4~oneiric
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking libassimp-dev (from .../libassimp-dev_2.0.863+dfsg-2_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libassimp-dev_2.0.863+dfsg-2_amd64.deb (--unpack):
 trying to overwrite '/usr/include/assimp/aiQuaternion.h', which is also in package assimp-dev 2.0.0.7-ubuntu1~oneiric1
Errors were encountered while processing:
 /var/cache/apt/archives/yaml-cpp_0.2.7-5precise-20120502-0513-+0000_amd64.deb
 /var/cache/apt/archives/libassimp-dev_2.0.863+dfsg-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

If I try to remove the oneiric versions of assimp-dev or yaml-cpp in Synaptic, then a bunch of other packages in both electric and fuerte get marked for removal. Any idea how to fix this?

Thanks!

2012-06-04 08:29:19 -0500 received badge  Supporter (source)
2012-05-30 11:41:46 -0500 asked a question nested substitution args in launch files

Hi,

I'm writing a launch file and I want to pass a package name as an argument. The launch file should then look for the appropriate package. I wrote the following:

<arg name="robot" default="mh5_mesh" />
<include file="$(find $(arg robot) ... />

But when I run this, roslaunch complains: Dollar signs '$' cannot be inside of substitution args

Is there any way around this? How else can I pass a variable to $(find)? Is there some other method I should be using?

Thanks!