<div class="gmail_quote">On Thu, May 27, 2010 at 8:25 PM, Mike Purvis <span dir="ltr"><<a href="mailto:mpurvis@clearpathrobotics.com">mpurvis@clearpathrobotics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>As a new user of ROS, I'm finding it a bit overwhelming trying to know how to use the gps_common message that's been proposed above. I've cloned umd-ros-pkg, and I've found the gps_common package in the gps_umd stack... but there's also the two relevant messages separately appearing in the gpsd stack, independent of the gps_common packaging.</div>

</blockquote><div><br></div><div>Those messages in the gpsd stack are an older version of the messages that appear in gps_umd/gps_common. I'm going to switch gpsd_client over to the new message format soon (gps_common/[...]), and after that's standardized, gpsd_client will implement the standard message.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Should I just be copying the two files from msg to my own project/msg directory, or should I be trying to place the gps_common package in some centrally-located area, and creating a dependency on it? (How?)</div>

</blockquote><div><br></div><div>It's best to create a dependency on the package. In your manifest.xml:</div><div><br></div><div><package> [...] <depend package="gps_common"/> [...] </package></div>

<div><br></div><div>I'm not sure what's the best approach for adding repositories right now, but if you add an entry '/path/to/umd-ros-pkg' to your ROS_PACKAGE_PATH variable, ROS will be able to find these packages (once you open a new terminal or otherwise reload ROS). If you installed from source, this variable is probably set in ~/ros/setup.sh.</div>

<div><br></div><div>Once "roscd gps_common" works and you've built the gps_common package, you can use GPSFix and GPSStatus in your C++ code:</div><div><br></div><div>#include <gps_common/GPSFix.h></div>

<div>#include <gps_common/GPSStatus.h></div><div><br></div><div>using namespace gps_common;</div><div><br></div><div>and these messages will be available as GPSFix and GPSStatus.</div><div><br></div><div> - Ken</div>

</div>