{ "info": { "author": "Carlos Alvarez", "author_email": "candres.alv@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Extended ROS logs for python (rospy)\n\n`extended_rospylogs` implements for `rospy` some of the extra functionalities found in `roscpp` for logging.\n\n\n## Installation\n\nYou can install `extended_rospylogs` from pip using\n\n```\npip install extended_rospylogs\n```\n\nor using\n\n```\npip install git+https://github.com/charlielito/extended_rospylogs\n```\n\n## ROS log messages extension\nIn `rospy` there are only 5 functions for logging: `rospy.logdebug`, `rospy.loginfo`, `rospy.logwarn`, `rospy.logerr` and `rospy.logfatal`. In `roscpp` you can find other options like `ROS_DEBUG_COND`, `ROS_DEBUG_NAMED`, `ROS_DEBUG_COND_NAMED`, etc (for more info go to [ros logging](http://wiki.ros.org/roscpp/Overview/Logging)).\n\nThe conditional option for logging is very useful when you want to have different logging messages in your nodes, and you want to change it in runtime (because you only can specify the `log_level` when initializing the node).\n\n### Extended Functions\nFor the moment here are implemented all the `rospy` logging functions with the `cond` option:\n\n* `logdebug_cond(bool, message)`\n* `loginfo_cond(bool, message)`\n* `logwarn_cond(bool, message)`\n* `logerr_cond(bool, message)`\n* `logfatal_cond(bool, message)`\n\n\n## Usage\n\n```python\nimport rospy\nfrom extended_rospylogs import logdebug_cond, loginfo_cond\n\n\nrospy.init_node('some_node')\nrate = 30\ndebug = True\nr = rospy.Rate(rate)\n\nwhile not rospy.is_shutdown():\n\n #### DO STUFF\n logdebug_cond(debug, \"Some debug message\")\n loginfo_cond(debug, \"Some info message for debugging\")\n\n r.sleep()\n```\n\nNote that the `debug` variable could be a **node parameter** so it could be changed on runtime.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/charlielito/extended_rospylogs", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "extended_rospylogs", "package_url": "https://pypi.org/project/extended_rospylogs/", "platform": "", "project_url": "https://pypi.org/project/extended_rospylogs/", "project_urls": { "Homepage": "https://github.com/charlielito/extended_rospylogs" }, "release_url": "https://pypi.org/project/extended_rospylogs/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Extension of logs for rospy based con roscpp.", "version": "0.0.5" }, "last_serial": 3750058, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "071eb74453f5a95f2ed9db155dc15aa7", "sha256": "e6bee58a262d3eadf57da978a9467d6311d18fa3bafd0b7f8609761dc671dfd7" }, "downloads": -1, "filename": "extended_rospylogs-0.0.4.tar.gz", "has_sig": false, "md5_digest": "071eb74453f5a95f2ed9db155dc15aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2369, "upload_time": "2018-04-09T22:08:15", "url": "https://files.pythonhosted.org/packages/5b/75/56a72ac40fea36c1337e4087dd83e8eb223eb14d7577f8d3d016cc0caad4/extended_rospylogs-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "fbdac816b420a486cecd70a8d6989ba5", "sha256": "e31ed4df5ab8d3ad5dfe0279b1d9e120b30b425cdd18d6df826d112da03bab54" }, "downloads": -1, "filename": "extended_rospylogs-0.0.5.tar.gz", "has_sig": false, "md5_digest": "fbdac816b420a486cecd70a8d6989ba5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2605, "upload_time": "2018-04-09T22:22:29", "url": "https://files.pythonhosted.org/packages/ee/16/1245cba8eeedf17931d5e2b2ef684278fbe5f85879fbbb120ea6223f9a1b/extended_rospylogs-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fbdac816b420a486cecd70a8d6989ba5", "sha256": "e31ed4df5ab8d3ad5dfe0279b1d9e120b30b425cdd18d6df826d112da03bab54" }, "downloads": -1, "filename": "extended_rospylogs-0.0.5.tar.gz", "has_sig": false, "md5_digest": "fbdac816b420a486cecd70a8d6989ba5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2605, "upload_time": "2018-04-09T22:22:29", "url": "https://files.pythonhosted.org/packages/ee/16/1245cba8eeedf17931d5e2b2ef684278fbe5f85879fbbb120ea6223f9a1b/extended_rospylogs-0.0.5.tar.gz" } ] }