ros / dynamic_reconfigure

BSD 3-Clause "New" or "Revised" License
48 stars 111 forks source link

Python API: dynamic_reconfigure.client.Client.get_configuration returns empty #194

Open 130s opened 2 years ago

130s commented 2 years ago

Issue

# rosrun dynamic_reconfigure dynparam list
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
:
"/aa/bb/cc"
:

# ipython

In [1]: from dynamic_reconfigure.client import Client as DynrecClient
In [2]: dync = DynrecClient("/aa/bb/cc")
In [4]: dc_ret = dync.get_configuration(timeout=10)  # If timeout is not passed, this line doesn't even return forever.
In [5]: dc_ret
In [6]: 

Potential fix

I've only skimmed through the codebase so far though, get_configuration is supposed to return self.config but I have a feeling self.config isn't updated (so, if that is correct, this can simply be a bug. But I'm not just yet sure as of 2022/06/06).

Env

$ apt-cache policy ros-melodic-dynamic-reconfigure 
ros-melodic-dynamic-reconfigure:
  Installed: 1.6.4-1bionic.20220222.182805