Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-03-29 10:40:32 -0500

joq gravatar image

From a glance at the code, it certainly looks possible.

If you have time to work on it, check out the git sources and make a patch to submit. A single solution that works with both Electric and Fuerte would be ideal.

From a glance at the code, it certainly looks possible.

If you have time to work on it, check out the git sources and make a patch to submit. A single solution that works with both Electric and Fuerte would be ideal.

UPDATE: I've given some thought to how this could be done in Python. First make the import conditional:

try:
    from sensor_msgs.msg import TimeReference
except ImportError:
    TimeReference = None

Then, make sure TimeReference is True before doing anything with the gpstime variables:

if TimeReference:
    gpstimePub = rospy.Publisher('time_reference', TimeReference)