On the .cfg file you need to put #!/usr/bin/python or #!/usr/bin/env python or something at the top, otherwise it trys to parse it as a bash script, at least for me anyways.<div><br></div><div>Thanks,</div><div><br clear="all">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>William Woodall<br>Graduate Software Engineering<br>Auburn University<br><a href="mailto:w@auburn.edu">w@auburn.edu</a><br><a href="mailto:wjwwood@gmail.com">wjwwood@gmail.com</a><br>256-345-9938<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br><br><div class="gmail_quote">On Sat, May 29, 2010 at 4:02 PM, John Hsu <span dir="ltr"><<a href="mailto:johnhsu@willowgarage.com">johnhsu@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Having been through this once, I figure a tutorial might be useful, so I added<br><a href="http://www.ros.org/wiki/dynamic_reconfigure/Tutorials/SettingUpDynamicReconfigureForANode" target="_blank">http://www.ros.org/wiki/dynamic_reconfigure/Tutorials/SettingUpDynamicReconfigureForANode</a><br>



<br>Adam,<br>can you verify what I have written down is correct?<br>thanks,<br><font color="#888888">John</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, May 29, 2010 at 1:18 PM, Radu Bogdan Rusu <span dir="ltr"><<a href="mailto:rusu@willowgarage.com" target="_blank">rusu@willowgarage.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi Adam,<br>
<br>
Most (if not all) PCL nodelets use dynamic_reconfigure, so you could try that too. Search for onInit ().<br>
<br>
Cheers,<br>
Radu.<br>
<div><div></div><div><br>
On 05/28/2010 08:27 PM, Adam Leeper wrote:<br>
> Hi all-<br>
><br>
> Is there an example or tutorial for writing a node in c++ that can be<br>
> reconfigured using dynamic reconfigure? I've been trying to look at the<br>
> Hokuyo node code as an example, which is fairly dense because of all the<br>
> driver stuff in there too. Is there a lighter-weight node that would<br>
> serve as a good example of using dynamic reconfigure?<br>
><br>
> Thanks,<br>
> Adam<br>
><br>
><br>
><br>
> Adam Leeper<br>
> Stanford University<br>
</div></div>> <a href="mailto:aleeper@stanford.edu" target="_blank">aleeper@stanford.edu</a> <mailto:<a href="mailto:aleeper@stanford.edu" target="_blank">aleeper@stanford.edu</a>><br>
> 719.358.3804<br>
><br>
><br>
><br>
<div>> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br>
</div><font color="#888888">--<br>
| Radu Bogdan Rusu | <a href="http://rbrusu.com/" target="_blank">http://rbrusu.com/</a><br>
</font><div><div></div><div>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div>