self.max_object_size = rospy.get_param("~max_object_size",0.28)# Intialize the detection boxself.detect_box =Noneself.detector_loaded =Falserospy.loginfo("Waiting for video topics to become available...")# Wait until the image topics are ready before startingrospy.wait_for_message("input_...
7.3 Modifying message level sent to /rosout To do this you must set the log_level attribute within the rospy.init_nodecode. For example, if you'd like to allow logdebug messages to be written to /rosout, that can be done as follows: r...
other log level rospy.logdebug(msg, *args) rospy.logwarn(msg, *args) rospy.loginfo(msg, *args) rospy.logerr(msg, *args) rospy.logfatal(msg, *args) 参考 現在時刻をloginfoで出力しているサンプルあり http://wiki.ros.org/ja/rospy_tutorials/Tutorials/Logging...
init_node("wheel_scaler") rospy.loginfo("wheel_scaler started") scale = rospy.get_param('distance_scale', 1) rospy.loginfo("wheel_scaler scale: %0.2f", scale) rospy.Subscriber("lwheel", Int16, lwheelCallback) rospy.Subscriber("rwheel", Int16, rwheelCallback) lscaled_pub = rospy....
rospy.loginfo(notification.text)elifnotification.level ==1: rospy.logwarn(notification.text)elifnotification.level ==2: rospy.logfatal(notification.text)else: rospy.logdebug(notification.text)if'voice'innotification.destination:#todo check current voice notification level# print notification.textifnotis...
self.rate = rospy.Rate(30) self.cam_info = rospy.wait_for_message(self.baseName + "camera_info", self.cam_info = rospy.wait_for_message( self.baseName + "camera_info", CameraInfo, timeout=10) image_sub = message_filters.Subscriber('/camera/color/image_raw', image_sub = message_fil...
Thread(target=self._update).start()def_try_to_connect(self):rospy.loginfo("Connecting to %s"% self.link_uri) self._state = CrazyflieROS.Connecting self._cf.open_link(self.link_uri)def_connected(self, link_uri):""" This callback is called form the Crazyflie API when a Crazyflie ...
rospy.loginfo(notification.text)elifnotification.level ==1: rospy.logwarn(notification.text)elifnotification.level ==2: rospy.logfatal(notification.text)else: rospy.logdebug(notification.text)if'voice'innotification.destination:#todo check current voice notification level# print notification.textifnotis...