Python rospy.logerror() Examples
The following are 2
code examples of rospy.logerror().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
rospy
, or try the search function
.
Example #1
Source File: rosTools.py From crazyflieROS with GNU General Public License v2.0 | 6 votes |
def __init__(self, options, parent=None): super(ROSNode, self).__init__(parent) self.compiledMsgs = [m for m in dir(msgCF) if m[0]!="_" and m[-2:]=="CF"] # Messages that are previously auto-compiled and we can send if len(self.compiledMsgs)==0: rospy.logerror('Not Messages could be loaded. Please connect to the flie and press Compile Messages, then run rosmake') self.options = options # Publishers self.publishers = {} #Generated publishers will go here self.pub_tf = tf.TransformBroadcaster() # Subscribers self.sub_tf = tf.TransformListener() self.sub_joy = rospy.Subscriber("/cfjoy", cmdMSG, self.receiveJoystick) self.sub_baro = None # Defined later self.master = rosgraph.Master('/rostopic')
Example #2
Source File: move_base.py From kinova-movo with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _add_waypoint_pose(self): current_pose = self._get_current_pose() if (None != current_pose): self._append_waypoint_pose(current_pose.pose.pose) else: rospy.logerror("Invalid waypoint pose")