本文整理汇总了Python中rospy.logerror方法的典型用法代码示例。如果您正苦于以下问题:Python rospy.logerror方法的具体用法?Python rospy.logerror怎么用?Python rospy.logerror使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rospy
的用法示例。
在下文中一共展示了rospy.logerror方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import rospy [as 别名]
# 或者: from rospy import logerror [as 别名]
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')
示例2: _add_waypoint_pose
# 需要导入模块: import rospy [as 别名]
# 或者: from rospy import logerror [as 别名]
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")