numpy_msg.py
Go to the documentation of this file.
00001 import rospy.numpy_msg
00002 
00003 """
00004 The building numpy_msg has a bug - see https://github.com/ros/ros_comm/pull/743
00005 
00006 This patches it
00007 """
00008 
00009 _numpy_msg = rospy.numpy_msg.numpy_msg
00010 _cached = {}
00011 def numpy_msg(cls):
00012         if cls not in _cached:
00013                 res = _numpy_msg(cls)
00014                 _cached[cls] = res
00015         else:
00016                 res = _cached[cls]
00017 
00018         return res
00019 
00020 # patch the original for good measure
00021 rospy.numpy_msg.numpy_msg = numpy_msg


ros_numpy
Author(s): Eric Wieser
autogenerated on Wed Apr 3 2019 02:40:14