momsfriendlyrobotcompany / pycreate2 Goto Github PK
View Code? Open in Web Editor NEWlibrary for iRobot Create 2
Home Page: https://pypi.org/project/pycreate2/
License: MIT License
library for iRobot Create 2
Home Page: https://pypi.org/project/pycreate2/
License: MIT License
The create is finicky with songs. Sometimes they work, sometimes they don't. It could be a bug in my 2007 firmware that came with my new 2017 Create 2.
The robot seems to never respond to the mode command (packet 35). I can't figure out why. This appears to be a firmware bug with the Create 2. The reset command gives me this firmware info:
('Firmware Version:', 'bl-start\r\nSTR730\r\nbootloader id: #x47186549 82ECCFFF\r\nbootloader info rev: #xF000\r\nbootloader rev: #x0001\r\n2007-05-14-1715-L \r')
Basically my 2017 Create 2 has 2007 firmware ... yeah!!!
The way the library handles sensor packets seems overly complex and long ... there has to be a better way.
Maybe just have the packet decoders and leave it up to the programmer to figure out a way (that works nicely for them) to handle the sensor info?
Need to fix ... was trying to simplify it and broke it. ๐
I am using the python package to read out the light bumper values of the icreate 2 robot. When I do so, I get sensible values for a few minutes. However, after a few minutes (this is variable), the values become nonsense. The values become much larger than the max of 4095 stated in the manual.
We have 8 of these robots, and I can confirm this is not an issue with a particular robot. I have not systematically tested every robot, but I have seen this on several robots.
Therefore, I think that either firmware of the robot or the python code has bugs. In fact, I have noticed other problems with the robots that might be due to the same underlying problem.
The move command and turn command sometimes fail with the robot only moving or turning a few millimetres.
Sometimes I lose control of the robot with a python error message saying that only 0 bytes of sensor data were read (and 80 were expected).
Hi,
thanks for creating this library!
I just found a small bug in the runExample.py.
it uses
bot.direct_drive(lft, rht)
but the correct command is
bot.drive_direct(lft, rht)
HC
Hey,
This library was a lifesaver in high school while programming my Create2. Now that I'm more acquainted with programming, I wanted to see if I could meaningfully contribute to this library. Any functions that you had trouble with? Any documentation that needs to be included?
First and foremost thanks for creating this library! I've been looking for such a long time for a quality library to use with the robot.
With that said, did you end up writing a command to check the bumper state? I'm trying to program the robot to let out an "angry" beep and write to an LCD when it bumps into something. If this isn't programmed in already, do you know how I would go about that? I was trying to mess with the library myself however I just find myself more and more confused lol
I see you used some of my python implementation of the iRobot Open Interface spec in your library, but there is quite a bit of functionality from the spec you left out. I separated my implementation into a complete implementation of the OI and a Create2 class that uses the OI implementation to implement the robot's functionality with the intent that the OI implementation may be used to create robot classes with as much or as little of the OI functionality as you needed. It would seem it wasn't quite successful as you only took some pieces of it. Would you share your use case(s) for the library with me or suggest ways my implementation would have better met your needs?
When I do pip install pycreate2 it seems to install older package and not the newer one that has fixes to MIDI tones.
Also, there is a missing comma line 50 in setup.py when installing from cloned copy and the missing README.rst file. Fixing these two issues will help install from the cloned copy.
sorry to spam you with issues :)
I thought I'd let you know that the turn_angle()
function sets the robot rotating. But it never stops. I think you forgot to set the robot speed to zero at the end?
Should the last line of this function read
self.robot.drive_direct(0, 0)
Ok, so this seems to be iRobot's fault and not mine when using the iRobot cable provided.
Currently does not work with newest version of Python and updated modules. All ser.is_open
should be replaced with ser.isOpen()
in createSerial.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.