Ask Your Question
2

knowing when a parameter is updated

asked 2012-08-31 04:19:04 -0500

fabiodl gravatar image

updated 2012-08-31 05:55:41 -0500

From http://www.ros.org/wiki/ROS/Parameter%20Server%20API or from the NodeHandle API (the getParamCached methods) we see that it is possible to have a parameter cached and updated locally on changes. Does the API provide a way to attach a callback function to these updates?

edit retag flag offensive close merge delete

Comments

This would be useful for me, too.

PerkinsJames gravatar image PerkinsJames  ( 2012-08-31 05:20:09 -0500 )edit

1 Answer

Sort by ┬╗ oldest newest most voted
1

answered 2012-08-31 05:43:36 -0500

joq gravatar image

updated 2012-08-31 05:44:10 -0500

I don't think so. You have to use getParamCached() each time you want to use the value (no messages are sent by that method).

Dynamic reconfigure provides an alternate API which does provide a callback. That may be better for your use case.

edit flag offensive delete link more

Comments

Sorry, I edit my question, with getCached I meant getParamCached

fabiodl gravatar image fabiodl  ( 2012-08-31 05:55:25 -0500 )edit
1

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-08-31 04:19:04 -0500

Seen: 477 times

Last updated: Aug 31 '12