There's also a wiki page about using valgrind and gdb with roslaunch: <a href="http://www.ros.org/wiki/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB">http://www.ros.org/wiki/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB</a><div>
<br></div><div>-Dan<br><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 1:48 PM, David Lu!! <span dir="ltr"><<a href="mailto:davidvlu@gmail.com">davidvlu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Have you tried using the Joy package? <a href="http://www.ros.org/wiki/joy" target="_blank">http://www.ros.org/wiki/joy</a> It<br>
works automatically with a lot of different joysticks.<br>
<br>
Also, you can debug the code using gdb (from the Terminal) like any<br>
other C/C++ program.<br>
<font color="#888888"><br>
-David<br>
</font><div><div></div><div class="h5"><br>
On Wed, Aug 18, 2010 at 9:02 AM, chris_li <<a href="http://gang.li" target="_blank">gang.li</a>@<a href="http://okstate.edu" target="_blank">okstate.edu</a>> wrote:<br>
><br>
> Hi there,<br>
><br>
> I am new to ROS and I am trying to create a package to control a joystick.<br>
> I have gone through the tutorial in <a href="http://www.ros.org/wiki" target="_blank">http://www.ros.org/wiki</a>.  I realize I<br>
> have to mimic some of the example C code. I am writing the code in gedit. Is<br>
> it the right way to do it? If it is the right the way, I do not know how to<br>
> debug the C code in gedit? Could anyone advise please~<br>
><br>
> Sincerely,<br>
> Chris<br>
> --<br>
> View this message in context: <a href="http://ros-users.122217.n3.nabble.com/How-to-debug-the-source-code-in-C-tp1208900p1208900.html" target="_blank">http://ros-users.122217.n3.nabble.com/How-to-debug-the-source-code-in-C-tp1208900p1208900.html</a><br>

> Sent from the ROS-Users mailing list archive at Nabble.com.<br>
><br>
> ------------------------------------------------------------------------------<br>
> This SF.net email is sponsored by<br>
><br>
> Make an app they can't live without<br>
> Enter the BlackBerry Developer Challenge<br>
> <a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@lists.sourceforge.net">ros-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/ros-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/ros-users</a><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>
_______________________________________________<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>
</div></div></blockquote></div><br></div>