rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Stand-in for `rospy` logging functionality in ROS2. More...
Classes | |
class | LogInhibitor |
Functions | |
_base_logger (msg, args, kwargs, throttle=None, throttle_identical=False, level=None, once=False) | |
Issues the logging call, if throttling or once-argument allow for it. | |
_make_caller_id (depth=2) | |
Returns caller id at specified call stack depth. | |
logdebug (msg, *args, **kwargs) | |
logdebug_once (msg, *args, **kwargs) | |
logdebug_throttle (period, msg, *args, **kwargs) | |
logdebug_throttle_identical (period, msg, *args, **kwargs) | |
logerr (msg, *args, **kwargs) | |
logerr_once (msg, *args, **kwargs) | |
logerr_throttle (period, msg, *args, **kwargs) | |
logerr_throttle_identical (period, msg, *args, **kwargs) | |
logfatal (msg, *args, **kwargs) | |
logfatal_once (msg, *args, **kwargs) | |
logfatal_throttle (period, msg, *args, **kwargs) | |
logfatal_throttle_identical (period, msg, *args, **kwargs) | |
loginfo (msg, *args, **kwargs) | |
loginfo_once (msg, *args, **kwargs) | |
loginfo_throttle (period, msg, *args, **kwargs) | |
loginfo_throttle_identical (period, msg, *args, **kwargs) | |
logwarn (msg, *args, **kwargs) | |
logwarn_once (msg, *args, **kwargs) | |
logwarn_throttle (period, msg, *args, **kwargs) | |
logwarn_throttle_identical (period, msg, *args, **kwargs) | |
Variables | |
logerror = logerr | |
logout = loginfo | |
Stand-in for `rospy` logging functionality in ROS2.
Heavily modified copy from ROS1 `rospy.node`, at https://github.com/ros/ros_comm (`clients/rospy/src/rospy/core.py`), released under the BSD License.
|
protected |
Issues the logging call, if throttling or once-argument allow for it.
msg | log message |
args | positional arguments for log message |
kwargs | keyword arguments for log message |
throttle | seconds to throttle log messages from call site for |
throttle_identical | whether to throttle identical consecutive log messages |
level | log level name |
once | whether to log only once from callsite |
|
protected |
rosros.rospify.log.logdebug_throttle | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logdebug_throttle_identical | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logerr_throttle | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logerr_throttle_identical | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logfatal_throttle | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logfatal_throttle_identical | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.loginfo_throttle | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.loginfo_throttle_identical | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logwarn_throttle | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |
rosros.rospify.log.logwarn_throttle_identical | ( | period, | |
msg, | |||
* | args, | ||
** | kwargs | ||
) |