35 callerframerecord = inspect.stack()[1]
37 frame = callerframerecord[0]
38 info = inspect.getframeinfo(frame)
40 if verbosity ==
'DEBUG':
41 rospy.logdebug(
'[ FILE: ' + os.path.basename(info.filename) + \
42 ', FUNCTION: ' + info.function +
', LINE: ' + str(info.lineno) + \
44 elif verbosity ==
'INFO':
45 rospy.loginfo(
'[ FILE: ' + os.path.basename(info.filename) + \
46 ', FUNCTION: ' + info.function +
', LINE: ' + str(info.lineno) + \
48 elif verbosity ==
'WARN':
49 rospy.logwarn(
'[ FILE: ' + os.path.basename(info.filename) + \
50 ', FUNCTION: ' + info.function +
', LINE: ' + str(info.lineno) + \
52 elif verbosity ==
'ERROR':
53 rospy.logerr(
'[ FILE: ' + os.path.basename(info.filename) + \
54 ', FUNCTION: ' + info.function +
', LINE: ' + str(info.lineno) + \
56 elif verbosity ==
'FATAL':
57 rospy.logfatal(
'[ FILE: ' + os.path.basename(info.filename) + \
58 ', FUNCTION: ' + info.function +
', LINE: ' + str(info.lineno) + \
Provides various utility functionalities.
def rapp_print
Prints ROS log messages with the specified verbosity.