Python ROS Bridge library allows to use Python and IronPython to interact with ROS, the open-source robotic middleware. It uses WebSockets to connect to rosbridge 2.0 and provides publishing, subscribing, service calls, actionlib, TF, and other essential ROS functionality.
Unlike the rospy library, this does not require a local ROS environment, allowing usage from platforms other than Linux.
The API of roslibpy is modeled to closely match that of roslibjs.
tf2_web_republisher
.Roslibpy runs on Python 2.7 and 3.x and IronPython 2.7.
To install roslibpy, simply use pip
:
pip install roslibpy
For IronPython, the pip
command is slightly different:
ipy -X:Frames -m pip install --user roslibpy
Remember that you will need a working ROS setup including the rosbridge server and TF2 web republisher accessible within your network.
The full documentation, including examples and API reference is available on readthedocs.
Make sure you setup your local development environment correctly:
pip install -r requirements-dev.txt
You're ready to start coding!
During development, use pyinvoke tasks on the command line to ease recurring operations:
invoke clean
: Clean all generated artifacts.invoke check
: Run various code and documentation style checks.invoke docs
: Generate documentation.invoke test
: Run all tests and checks in one swift command.invoke
: Show available tasks.For more details, check the Contributor's Guide available as part of the documentation.
Ready to release a new version roslibpy? Here's how to do it:
patch
: bugfixes.minor
: backwards-compatible features added.major
: backwards-incompatible changes.CHANGELOG.rst
with all novelty!invoke release [patch|minor|major]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。