Ask Your Question
2

dynamic reconfigure callback method

asked 2013-05-31 03:50:52 -0600

urs.muller gravatar image

Can I use a method instead of a function as dynamic reconfigure callback, like with ROS topic callbacks? If not, what's the best way to update my state without using global variables?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-05-31 05:29:53 -0600

joq gravatar image

updated 2013-05-31 05:30:43 -0600

Yes, you can. That is the recommended approach.

Here is one way to set it up, from camera1394.

That driver is complicated by having multiple threads. If you want a simpler example, ask. I'm sure we can find one.

edit flag offensive delete link more
0

answered 2013-05-31 07:49:19 -0600

urs.muller gravatar image

That's what I was looking for. I tried it out and it works. Thanks!

edit flag offensive delete link more

Comments

You are welcome. Please post a "comment" and not an "answer" for remarks like that. And, if some answer meets your needs, please click on its check mark.

joq gravatar imagejoq ( 2013-05-31 07:56:55 -0600 )edit

OK, I checked your answer and will use comments in the future.

urs.muller gravatar imageurs.muller ( 2013-05-31 08:03:28 -0600 )edit

Thanks! I know this site is confusing at first, but it does work better when we follow its conventions. Regards...

joq gravatar imagejoq ( 2013-05-31 08:06:53 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-05-31 03:50:52 -0600

Seen: 130 times

Last updated: May 31 '13