51 from cStringIO
import StringIO
53 from io
import StringIO
56 self.assertEquals(0, buff.tell())
65 from cStringIO
import StringIO
67 from io
import StringIO
69 import rospy.exceptions
73 m.serialize(StringIO())
74 self.fail(
"AnyMsg should not allow serialization")
75 except rospy.exceptions.ROSException:
78 teststr =
'foostr-%s'%time.time()
79 m.deserialize(teststr)
80 self.assertEquals(teststr, m._buff)
84 m = rospy.AnyMsg(
'foo')
85 self.fail(
"AnyMsg ctor should not allow args")
95 rospy.add_shutdown_hook
96 self.fail(
"add_shutdown_hookshould not longer be top-level API")
97 except AttributeError:
pass 109 rospy.get_published_topics
122 rospy.logdebug_throttle
123 rospy.logerr_throttle
124 rospy.logfatal_throttle
125 rospy.loginfo_throttle
126 rospy.logwarn_throttle
129 rospy.parse_rosrpc_uri
132 rospy.signal_shutdown
135 rospy.wait_for_message
136 rospy.wait_for_service
140 rospy.get_param_names
153 rospy.ROSInternalException
154 rospy.ROSSerializationException
155 rospy.ServiceException
158 rospy.SubscribeListener
161 rospy.TransportException
162 rospy.TransportTerminated
163 rospy.TransportInitError