Ask Your Question

Revision history [back]

Hmm, that rings a bell...

http://ros-users.122217.n3.nabble.com/dynamic-reconfigure-server-in-Python-tt740959.html#none

Unfortunately, if I did end up using dynamic_reconfigure server in a Python node, I can't find that node at the moment.

There is a small example of using a dynamic_reconfigure client on the wiki: http://www.ros.org/wiki/hokuyo_node/Tutorials/UsingDynparamToChangeHokuyoLaserParameters#PythonAPI

Hmm, that rings a bell...

http://ros-users.122217.n3.nabble.com/dynamic-reconfigure-server-in-Python-tt740959.html#nonehttps://code.ros.org/lurker/message/20100421.190003.73490482.en.html

Unfortunately, if I did end up using dynamic_reconfigure server in a Python node, I can't find that node at the moment.

There is a small example of using a dynamic_reconfigure client on the wiki: http://www.ros.org/wiki/hokuyo_node/Tutorials/UsingDynparamToChangeHokuyoLaserParameters#PythonAPI

Hmm, that rings a bell...

https://code.ros.org/lurker/message/20100421.190003.73490482.en.html

Unfortunately, if I did end up using dynamic_reconfigure server in a Python node, I can't find that node at the moment.

There is a small example of using a dynamic_reconfigure client on the wiki: http://www.ros.org/wiki/hokuyo_node/Tutorials/UsingDynparamToChangeHokuyoLaserParameters#PythonAPI

Edit: Found my code -- relevant bits excerpted:

from dynamic_reconfigure.server import Server as DynamicReconfigureServer
import flyer_controller.cfg.controllerConfig as Config
...
class Controller:

  def __init__(self):
     self.dyn_reconf_server = DynamicReconfigureServer(ConfigType, self.reconfigure) 

  def reconfigure(self, config, level):
     rospy.loginfo("Got reconfigure request!")
     self.command_frame = config["command_frame"]
     return config