[go: nahoru, domu]

Skip to content

Interfacing with iRobot's Create2 Open Interface robot.

Notifications You must be signed in to change notification settings

aj-staton/robotics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotic Applications and Design


This repository houses projects using the iRobot Create2 in Robotic Applications and Design at the University of South Carolina. All projects are written in Python and reference the iRobot Interface Spec.

Polygons

The robot drives around a regular polygon of N sides. The number of sides of this polygon could change, for all valid inputs of side numbers. The program works in conjunction with two interfaces and a main function to produce this desired result.

Sensors

The robot reads and interprets its sensors. The goal of project two was to implement the “random move” function for a roomba. To accomplish this, the ability to read the Create2’s bump, wheel drop, and cliff sensors were added to the polygon's interface. In our main function, a single thread that calls each sensor reading method was created. A limitation of the Create2 is that it can only return data from its sensors in 15 ms intervals. This approach worked around this limitation.

PID (without the 'I')

The robot implements a PD controller to demonstrate a wall-following behavior. This was done using an infrared (IR) sensor on the right side of the robot. The robot was intended to read the IR sensor value as it was driving alongside a barricade, to be able to appropriately “follow” the barricade at an appropriate distance. When a turn in the barricade is sensed, the iRobot uses its PD control logic to adjust its direction.

Docking

The robot finds its docking station to charge. The robot initally moves using wall-following behavior; then, once the robot is in range of its dock, the robot will begin the movement towards the dock.

Credits

  • This course, Robotic Applications and Design, was taught by Marios Xanthidis.
  • These projects were completed by Robby Carff, Miles Ziemer, and Austin Staton.

Major Takeaway

Trust the robot, but always verify its returned data. A robot has sensors that can malfunction. Functional code using non-functional sensors appears to be incorrect. Ensure that a robot is properly functioning before correcting code "errors".

About

Interfacing with iRobot's Create2 Open Interface robot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages