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

ben2789's profile - activity

2020-08-11 14:34:36 -0500 received badge  Famous Question (source)
2020-08-11 14:34:36 -0500 received badge  Notable Question (source)
2020-08-11 14:34:36 -0500 received badge  Popular Question (source)
2019-02-21 01:55:27 -0500 marked best answer Additional Arguments to dynamic reconfigure callback.

(also posted as issue on dynamic reconfigure git, possibly not appropriate for there) I am trying to use dynamic configure to set some camera parameters. I would like to pass a pointer to the camera object into the callback, so that I can use it's methods for setting the camera values. Is it possible to pass additional arguments to the dynamic reconfigure callback? Callback: void dr_callback(camera_node::dynamic_reconfig &parameters, uint32_t levels){ // set global object of parameters }

Binding: dr_callback = boost::bind(dr_callback, _1, _2); dr_server.setCallback(dr_callback);

ideal callback: void dr_callback_function(jai_camera_node::dynamic_reconfigConfig &parameters, uint32_t levels, cam_type *cam){ // use camera member functions to change values }

2019-02-20 16:21:42 -0500 answered a question Additional Arguments to dynamic reconfigure callback.

passing a reference to the camera as an additional argument works fine. This is because the result of bind(function, _1

2019-02-20 14:23:09 -0500 asked a question Additional Arguments to dynamic reconfigure callback.

Additional Arguments to dynamic reconfigure callback. (also posted as issue on dynamic reconfigure git, possibly not app