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

dynamic reconfigure callback method

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

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 -0500

joq gravatar image

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

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 -0500

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 image joq  ( 2013-05-31 07:56:55 -0500 )edit

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

urs.muller gravatar image urs.muller  ( 2013-05-31 08:03:28 -0500 )edit

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

joq gravatar image joq  ( 2013-05-31 08:06:53 -0500 )edit

Question Tools

Stats

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

Seen: 243 times

Last updated: May 31 '13