Meta tags:
description= A Python implementation of the iRobot Open Interface. - danimaciasperea/irobot;
Headings (most frequently used words):
navigation, uh, oh, code, issues, saved, searches, irobot, files, footer, search, repositories, users, pull, requests, provide, feedback, danimaciasperea, menu, use, to, filter, your, results, more, quickly, folders, and, latest, commit, history, repository, main, features, examples, api, reference, changelog, installation, tests, known, notes, author, license, about, releases, packages, contributors, languages, topics, resources, stars, watchers, forks,
Text of the page (most frequently used words):
the (66), and (30), #irobot (23), create2 (18), robot (17), for (17), this (13), all (13), serial (12), code (12), github (11), open (11), interface (11), software (11), from (11), security (10), you (9), use (9), connection (9), openinterface (9), python (8), with (8), commands (8), your (7), command (7), see (7), level (7), view (7), reload (6), any (6), will (6), read (6), mode (6), provides (6), support (6), enterprise (6), navigation (5), please (5), roomba (5), notes (5), create (5), set_raw_leds (5), spec (5), over (5), set (5), distance (5), angle (5), features (5), stop (5), actions (5), low (5), data (5), import (5), search (5), not (4), community (4), while (4), readme (4), documentation (4), files (4), set_song (4), are (4), raw_led (4), issue (4), issues (4), tests (4), under (4), property (4), class (4), value (4), properties (4), passive (4), wake (4), robots (4), drive (4), modes (4), info (4), 00000001 (4), setup (4), that (3), time (3), there (3), was (3), error (3), loading (3), page (3), stars (3), resources (3), topics (3), implementation (3), copyright (3), without (3), other (3), each (3), seconds (3), should (3), turn (3), order (3), auto_wake (3), dev (3), linux (3), bugfix (3), seek_dock (3), message (3), determine (3), reset (3), used (3), enable_quirks (3), when (3), object (3), start (3), drive_straight (3), buttons (3), oi_mode (3), stasis (3), constants (3), response_sizes (3), received (3), unsigned_byte_response (3), set_mode_full (3), request_sensor_data (3), response (3), last (3), 00000000 (3), repl (3), change (3), write (3), more (3), commit (3), name (3), danimaciasperea (3), insights (3), pull (3), requests (3), signed (3), settings (3), another (3), tab (3), window (3), refresh (3), session (3), sign (3), saved (3), feedback (3), grade (3), copilot (3), platform (3), solutions (3), explore (3), can (2), action (2), manage (2), footer (2), latest (2), initial (2), release (2), report (2), repository (2), forks (2), license (2), matthew (2), witherwax (2), permission (2), copy (2), including (2), merge (2), copies (2), following (2), notice (2), shall (2), provided (2), out (2), segments (2), example (2), preventing (2), cable (2), has (2), been (2), maybe (2), found (2), add (2), dialout (2), ttyusb0 (2), pip (2), install (2), file (2), 0b3 (2), installation (2), version (2), wrong (2), changelog (2), firmware_version (2), firmware (2), take (2), automatically (2), console_interfaces (2), return (2), true (2), sensor (2), after (2), track (2), methods (2), set_baud (2), clean (2), clean_max (2), clean_spot (2), power_down (2), set_schedule (2), set_day_time (2), drive_direct (2), drive_pwm (2), set_motors (2), set_motors_pwm (2), set_leds (2), set_scheduling_leds (2), set_ascii_leds (2), trigger_buttons (2), play_song (2), left_encoder_counts (2), light_bumper (2), sensor_group0 (2), primitives (2), functions (2), response_parsers (2), bumpsandwheeldrop (2), send (2), building (2), parsers (2), provide (2), enable_logging (2), sent (2), decimal (2), hex (2), bin (2), 136 (2), 10001000 (2), safe (2), high (2), oriented (2), cfg (2), rst (2), hgignore (2), egg (2), commits (2), menu (2), quality (2), wiki (2), projects (2), appearance (2), cancel (2), available (2), searches (2), repositories (2), business (2), advanced (2), developer (2), source (2), customer (2), services (2), devops (2), app (2), perform, share, personal, information, cookies, contact, docs, status, privacy, terms, 2026, inc, 100, languages, contributors, packages, aug, 2018, releases, watching, watchers, activity, roomba800, roomba600, roomba700, domoticproject, com, roomberry, surveillance, raspberry, zero, camera, about, mit, 2016, hereby, granted, free, charge, person, obtaining, associated, deal, restriction, limitation, rights, modify, publish, distribute, sublicense, sell, permit, persons, whom, furnished, subject, conditions, above, included, substantial, portions, warranty, kind, express, implied, but, limited, warranties, merchantability, fitness, particular, purpose, noninfringement, event, authors, holders, liable, claim, damages, liability, whether, contract, tort, otherwise, arising, dealings, lemoneer, author, argument, list, tuples, where, tuple, note, duration, eample, song, song0, consisting, played, arguments, integers, composed, oring, wish, first, display, orange, green, wires, swapped, official, cables, form, waking, need, own, feature, does, presently, behave, detailed, reported, manufacturer, known, test, script, connect, exercise, create2_test, unit, verifying, some, builders, may, commands_test, myself, sudo, adduser, username, remove, modemmanager, apparently, takes, possession, had, path, download, package, tar, beta, tested, pyhon, windows, debain, gnu, jessie, bit, incompatible, super, improperly, baud, rate, library, working, 0b2, 0b1, listing, their, purposes, gets, welcome, reading, approximately, complete, check_for_quirks, 500, 600, versions, prior, incorrect, encoder, counts, correct, only, works, still, groups, goes, sleep, minutes, inactivity, idle, issued, necessary, enabled, default, constructor, called, also, explicitly, clear_schedule, spin_left, spin_right, bumps_and_wheel_drops, wall_sensor, cliff_left, cliff_front_left, cliff_front_right, cliff_right, virtual_wall, wheel_overcurrents, dirt_detect, ir_char_omni, ir_char_left, ir_char_right, charging_state, voltage, current, temperature, battery_charge, battery_capacity, wall_signal, cliff_left_signal, cliff_front_left_signal, cliff_front_right_signal, cliff_right_signal, charging_sources, song_number, is_song_playing, number_stream_packets, requested_velocity, requested_radius, requested_right_velocity, requested_left_velocity, right_encoder_counts, light_bump_left_signal, light_bump_front_left_signal, light_bump_center_left_signal, light_bump_center_right_signal, light_bump_front_right_signal, light_bump_right_signal, left_motor_current, right_motor_current, main_brush_motor_current, side_brush_motor_current, sensor_group1, sensor_group2, sensor_group3, sensor_group4, sensor_group5, sensor_group6, sensor_group100, sensor_group101, sensor_group106, sensor_group107, built, upon, niceties, like, management, sensors, exposed, implemented, named, parameters, range, checking, baud_rate, days, motors, leds, weekday_leds, scheduling_leds, wheel_overcurrent, bumps_wheel_drops, charge_source, power_save_time, unpacking, binary_response, packed_binary_response, byte_response, short_response, unsigned_short_response, classes, extract, composite, responses, packedbinarydata, bump_right, wheelovercurrents, bump_left, wheel_drop_right, chargingsources, wheel_drop_left, lightbumper, sensorgroup0, sensorgroup1, sensorgroup2, sensorgroup3, sensorgroup4, sensorgroup5, sensorgroup6, sensorgroup100, sensorgroup101, sensorgroup106, sensorgroup107, packing, pack_op_code, pack_signed_byte, pack_unsigned_byte, pack_2unsigned_bytes, pack_3signed_bytes, pack_3unsigned_bytes, pack_4unsigned_bytes, pack_schedule, pack_drive, pack_drive_special_cases, packets, set_mode_passive, set_mode_safe, get_days, needed, retrieve, api, reference, ago, sending, 142, 10001110, 101, 00000011, 00001010, disable_logging, off, what, being, enable, logging, fit, bound, variable, launch, callable, line, instantiate, port, print, full, driving, shutdown, assumed, here, examples, interactively, control, returned, main, items, history, date, folders, tags, branches, master, additional, options, star, fork, must, notification, notifications, forked, julianpistorius, public, dismiss, alert, switched, accounts, resetting, focus, qualifiers, our, query, filter, results, quickly, submit, include, email, address, contacted, every, piece, input, very, seriously, syntax, tips, clear, users, jump, pricing, premium, ons, powered, collections, trending, archive, program, accelerator, maintainer, lab, programs, fund, developers, sponsors, partners, trust, center, forum, skills, ebooks, reports, events, webinars, stories, type, development, topic, industries, government, manufacturing, financial, healthcare, industry, cases, devsecops, modernization, case, nonprofits, startups, small, medium, teams, enterprises, company, size, marketplace, blog, why, leaks, before, they, secret, protection, secure, build, find, fix, vulnerabilities, application, changes, review, plan, work, instant, environments, codespaces, automate, workflow, workflows, integrate, external, tools, mcp, registry, new, direct, agents, better, creation, toggle, skip, content,
Text of the page (random words):
github danimaciasperea irobot a python implementation of the irobot open interface github skip to content navigation menu toggle navigation sign in appearance settings platform ai code creation github copilot write better code with ai github copilot app direct agents from issue to merge mcp registry new integrate external tools developer workflows actions automate any workflow codespaces instant dev environments issues plan and track work code review manage code changes application security github advanced security find and fix vulnerabilities code security secure your code as you build secret protection stop leaks before they start explore why github documentation blog changelog marketplace view all features solutions by company size enterprises small and medium teams startups nonprofits by use case app modernization devsecops devops ci cd view all use cases by industry healthcare financial services manufacturing government view all industries view all solutions resources explore by topic ai software development devops security view all topics explore by type customer stories events webinars ebooks reports business insights github skills support services documentation customer support community forum trust center partners view all resources open source community github sponsors fund open source developers programs security lab maintainer community accelerator github stars archive program repositories topics trending collections enterprise enterprise solutions enterprise platform ai powered developer platform available add ons github advanced security enterprise grade security features copilot for business enterprise grade ai features premium support enterprise grade 24 7 support pricing search or jump to search code repositories users issues pull requests search clear search syntax tips provide feedback we read every piece of feedback and take your input very seriously include my email address so i can be contacted cancel submit feedback saved searches use saved searches to filter your results more quickly name query to see all available qualifiers see our documentation cancel create saved search sign in sign up appearance settings resetting focus you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message danimaciasperea irobot public forked from julianpistorius irobot notifications you must be signed in to change notification settings fork 7 star 21 code pull requests 0 actions projects wiki security and quality 0 insights additional navigation options code pull requests actions projects wiki security and quality insights danimaciasperea irobot master branches tags go to file code open more actions menu folders and files name name last commit message last commit date latest commit history 13 commits 13 commits irobot egg info irobot egg info irobot irobot hgignore hgignore readme rst readme rst setup cfg setup cfg setup py setup py view all files repository files navigation readme more items irobot a python implementation of the irobot open interface main features provides a low level interface for building open interface commands to send over a serial connection provides a low level set of response parsers to read data returned from robots provides a high level object oriented interface for the create2 provides a repl to interactively control a create2 robot over a serial connection code examples low level interface from irobot openinterface commands import set_mode_full request_sensor_data or other commands from irobot openinterface constants import response_sizes from irobot openinterface response_parsers import unsigned_byte_response open a serial connection assumed to be serial here change mode serial write set_mode_full read oi mode serial write request_sensor_data 35 unsigned_byte_response serial read response_sizes 35 high level object oriented interface for the create2 from irobot robots create2 import create2 from irobot openinterface constants import modes instantiate robot robot create2 port read sensor print robot left_encoder_counts change mode to drive safe full robot oi_mode modes safe robot drive_straight 50 stop driving robot drive_straight 0 return to passive mode robot oi_mode modes passive shutdown oi robot stop repl launch console_interfaces create2 this should be callable as create2 from the command line after installation in the repl the robot is bound to the robot variable issue python commands as you see fit to see what data is being sent received enable logging enable_logging to turn off disable_logging example enable_logging robot sensor_group0 info last command sent 19 53 seconds ago sending command decimal 142 0 hex 8e 0 bin 10001110 00000000 info received decimal 3 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 2 67 20 4 101 38 10 136 10 136 hex 3 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 2 43 14 4 65 26 a 88 a 88 bin 00000011 00000000 00000001 00000001 00000001 00000001 00000000 10001000 00001010 10001000 api reference the commands and response parsers in openinterface provide all the primitives needed to issue and retrieve the response for any command in the roomba open interface spec openinterface commands low level support for packing data to send over a serial connection pack_op_code pack_signed_byte pack_unsigned_byte pack_2unsigned_bytes pack_3signed_bytes pack_3unsigned_bytes pack_4unsigned_bytes pack_schedule pack_drive pack_drive_special_cases functions for building data packets for each command start reset stop set_baud set_mode_passive set_mode_safe set_mode_full clean clean_max clean_spot seek_dock power_down get_days set_schedule set_day_time drive drive_direct drive_pwm set_motors set_motors_pwm set_leds set_scheduling_leds set_raw_leds trigger_buttons set_ascii_leds set_song play_song request_sensor_data openinterface response_parsers low level support for unpacking data received over a serial connection binary_response packed_binary_response byte_response unsigned_byte_response short_response unsigned_short_response classes to extract composite responses packedbinarydata ex bumpsandwheeldrop bumpsandwheeldrop bump_right wheelovercurrents bump_left buttons wheel_drop_right chargingsources wheel_drop_left lightbumper stasis sensorgroup0 sensorgroup1 sensorgroup2 sensorgroup3 sensorgroup4 sensorgroup5 sensorgroup6 sensorgroup100 sensorgroup101 sensorgroup106 sensorgroup107 openinterface constants named value used in the spec used as parameters to functions and range checking baud_rate days drive motors leds weekday_leds scheduling_leds raw_led buttons robot modes wheel_overcurrent bumps_wheel_drops charge_source light_bumper stasis power_save_time response_sizes the class create2 in robots create2 is built upon the primitives in openinterface and provides niceties like management of the serial connection all sensors are exposed as properties of the create2 class while actions are implemented as methods robots create2 methods wake start reset stop set_baud clean clean_max clean_spot seek_dock power_down set_schedule clear_schedule set_day_time drive drive_straight spin_left spin_right drive_direct drive_pwm set_motors set_motors_pwm set_leds set_scheduling_leds set_raw_leds set_ascii_leds trigger_buttons set_song play_song properties enable_quirks auto_wake bumps_and_wheel_drops wall_sensor cliff_left cliff_front_left cliff_front_right cliff_right virtual_wall wheel_overcurrents dirt_detect ir_char_omni ir_char_left ir_char_right buttons distance angle charging_state voltage current temperature battery_charge battery_capacity wall_signal cliff_left_signal cliff_front_left_signal cliff_front_right_signal cliff_right_signal charging_sources oi_mode song_number is_song_playing number_stream_packets requested_velocity requested_radius requested_right_velocity requested_left_velocity left_encoder_counts right_encoder_counts light_bumper light_bump_left_signal light_bump_front_left_signal light_bump_center_left_signal light_bump_center_right_signal light_bump_front_right_signal light_bump_right_signal left_motor_current right_motor_current main_brush_motor_current side_brush_motor_current stasis sensor_group0 sensor_group1 sensor_group2 sensor_group3 sensor_group4 sensor_group5 sensor_group6 sensor_group100 sensor_group101 sensor_group106 sensor_group107 firmware_version the create2 class also provides the following features not explicitly provided in the spec auto_wake the open interface goes to sleep after 5 minutes of inactivity when in passive mode with this property set to true the create2 object will track idle time when in passive mode and automatically wake the robot when a command is issued if necessary enabled by default in the constructor wake maybe be called any time with wake enable_quirks roomba 500 600 firmware versions prior to 3 3 0 return an incorrect value for distance and angle with this property set to true the properties distance and angle will use the encoder counts to determine the correct value this only works for the distance and angle properties distance and angle in the sensor groups will still report the wrong value firmware_version a property of the create2 class that gets the welcome message in order to determine the firmware version reading this property will reset the robot and will take approximately 5 seconds to complete to see this used to automatically determine if enable_quirks should be set please see check_for_quirks in console_interfaces create2 please see the irobot roomba open interface spec for a listing of all commands and their purposes changelog irobot 1 0 0b1 initial release irobot 1 0 0b2 bugfix improperly set baud rate on serial connection preventing the library from working under linux irobot 1 0 0b3 bugfix wrong op code for seek_dock bugfix use of python 2 7 incompatible version of super installation this is beta software it has been tested under pyhon 2 7 and 3 x under windows 8 and python 3 x under debain gnu linux 8 jessie 64 bit download the package irobot 1 0 0b3 tar gz install with pip pip install path to file linux notes in order to use the create cable on dev ttyusb0 i had to remove modemmanager apparently is takes possession of dev ttyusb0 add myself to dialout with sudo adduser username dialout tests unit tests for verifying some of the command builders may be found in tests commands_test a test script to connect to a create2 over a serial connection and exercise all read commands maybe found in tests create2_test known issues notes issues set_raw_leds does not presently behave as detailed in the spec the issue has been reported to the manufacturer the orange and green wires are swapped on the official create cables preventing the robot form waking you will need to create your own cable in order to use the auto_wake feature notes the arguments to set_raw_leds are integers that should be composed by oring the segments you wish to turn on example set_raw_leds raw_led a raw_led b raw_led c to turn on segments a b and c of the first display the notes argument to set_song is a list of tuples where each tuple is a note and a duration eample set_song 0 57 32 59 32 60 32 to create a song as song0 consisting of the notes a b and c played for 5 seconds each author matthew witherwax lemoneer license mit license copyright c 2016 matthew witherwax permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files the software to deal in the software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and or sell copies of the software and to permit persons to whom the software is furnished to do so subject to the following conditions the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software the software is provided as is without warranty of any kind express or implied including but not limited to the warranties of merchantability fitness for a particular purpose and noninfringement in no event shall the authors or copyright holders be liable for any claim damages or other liability whether in an action of contract tort or otherwise arising from out of or in connection with the software or the use or other dealings in the software about a python implementation of the irobot open interface domoticproject com roomberry surveillance robot roomba raspberry pi zero w camera topics python roomba irobot create2 roomba700 roomba600 roomba800 resources readme uh oh there was an error while loading please reload this page activity stars 21 stars watchers 1 watching forks 7 forks report repository releases 1 initial release latest aug 9 2018 packages 0 uh oh there was an error while loading please reload this page contributors uh oh there was an error while loading please reload this page languages python 100 0 footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|