Python library for Yahboom Rosmaster based robot driver board https://www.yahboom.net/study/ROS-Driver-Board
pip install git+https://github.com/RobLibs/[email protected]
Then in code:
from Rosmaster_Lib import Rosmaster
rm = Rosmaster(com="COM5") # or Linux device pathLinux: USB‑serial names (/dev/ttyUSB0, /dev/ttyUSB1, …) can shift. Use the helper script to create a stable symlink so your code can simply call Rosmaster().
Quick setup (creates /dev/myserial):
sudo ./add_rule.sh myserial
Custom name & explicit VID:PID (hex):
sudo ./add_rule.sh my_ros_board 1a86:7523
After running, replug the board (or sudo udevadm trigger) and verify:
ls -l /dev/myserial
Then in Python you may omit the parameter (default assumed /dev/myserial):
from Rosmaster_Lib import Rosmaster
rm = Rosmaster() # uses /dev/myserialManual step‑by‑step instructions (and advanced matching) are in rule_steps.md.
from Rosmaster_Lib import Rosmaster
rm = Rosmaster(com="/dev/ttyUSB0", debug=True)
rm.create_receive_threading()
rm.set_beep(100) # 100 ms beep- pyserial
Current version: 3.3.9 (git tag: V3.3.9).
To release a new version (example 3.4.0):
- Update version string in
setup.pyandRosmaster_Lib/__init__.py. - Commit the changes.
- Create an annotated tag:
git tag -a V3.4.0 -m "Release 3.4.0" - Push:
git push origin main --tags - Build & upload to PyPI:
pip install --upgrade build twine python -m build twine upload dist/*
Proprietary – usage restricted to authorized Yahboom / Rosmaster hardware contexts (see LICENSE).
This organization also reserves the right to Yahboom to change the license how they see fit.