Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: bin/ROSProxy/ROSProxy.py
- ===================================================================
- --- bin/ROSProxy/ROSProxy.py (revision 2450)
- +++ bin/ROSProxy/ROSProxy.py (working copy)
- @@ -134,8 +134,11 @@
- inst = roslib.rostime.Time()
- else:
- inst = roslib.rostime.Duration()
- - inst.nsecs = obj['nsecs']
- - inst.secs = obj['secs']
- + if 'nsecs' in obj and 'secs' in obj:
- + inst.nsecs = obj['nsecs']
- + inst.secs = obj['secs']
- + else:
- + inst = rospy.get_rostime()
- return inst
- else:
- if typeStr == 'Header':
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement