numpy_msg.py
Go to the documentation of this file.
1 import rospy.numpy_msg
2 
3 """
4 The building numpy_msg has a bug - see https://github.com/ros/ros_comm/pull/743
5 
6 This patches it
7 """
8 
9 _numpy_msg = rospy.numpy_msg.numpy_msg
10 _cached = {}
11 def numpy_msg(cls):
12  if cls not in _cached:
13  res = _numpy_msg(cls)
14  _cached[cls] = res
15  else:
16  res = _cached[cls]
17 
18  return res
19 
20 # patch the original for good measure
21 rospy.numpy_msg.numpy_msg = numpy_msg
def numpy_msg(cls)
Definition: numpy_msg.py:11


ros_numpy
Author(s): Eric Wieser
autogenerated on Sat Oct 3 2020 03:25:57