SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
Autonomous Band
                     EECS 498: Autonomous Robotics Laboratory
                                University of Michigan
          Robert Bergen, Mark Isaacson, Sami Luber, and Zach Oligschalaeger
                         http://eecs498teammusic.webs.com/

Overview

For our EECS 498 Autonomous Robotics Lab Final Project, we created an autonomous
band, consisting of four robotic arms and two xylophones. An overhead camera is used to
detect music notes, which are parsed into music and sent to the robotic arm controller.
The arm controller uses motion planning to direct the arms to play notes while avoiding
arm collisions.

Autonomously reading and playing music is challenging because it requires building a
robust music-reading system, careful synchronization between the music reader and the
music player components, and motion planning between the arms to ensure notes are
played smoothly and without arm collisions. Described in detail in the Music Reading
section, our system continuously detects musical notes on the music board to allow users
to see their desired music change in real-time on the GUI. However, to allow the user to
set their desired song before playing it, the user controls when the new music is sent to
the music player. At this point, the music player discards previously sent music and clears
queued notes to accommodate the new music. Described in detail in the Music Playing
section, based on the number of available robotic arms, the music player component
schedules each robotic arm to play notes using motion planning to avoid arm collisions.

Music Reading

Representing Music

Our system strives to resemble real sheet music as much as possible. Notes are
represented by red circles, uniform in color and size. Users can set these notes as desired
on the music board. Furthermore, our system supports reading and playing all G-clef
notes (middle C - high G).




Camera Calibration
Our camera calibration calibrates by first detecting the four corners (marked by blue
squares) on the music board (the system pauses if more or less than four corners are
detected). Using the locations of the four corners, a homography is built to project notes
from camera pixel space to physical music board space with respect to the center of the
music board. Using knowledge of pre-defined line and stanza spacing to determine the
note value and time of each music note based on its physical (x,y) position on the music
board.




Detecting Notes

When detecting music, each stanza is scanned separately for music notes. We detect
music notes by using a Blob Detection algorithm. In the blob detection algorithm, there is
a color threshold for notes in which colors are represented using HSV (more robust in
environments with varying lighting). The blob detection algorithm is also blob size
sensitive. More specifically, there is a threshold range on how many pixels a blob must
be within to be considered a note. If a note blob is larger than expected, we assume there
are overlapping notes on the music board that are being detected as one large note blob.
Using the covariance matrix of the overlapping note blob and the expected size of a note,
we determine the configuration of the overlapping notes and how many notes the blob
should be broken into. The round shape of the notes is also important as it improves our
variance calculation accuracy when building the covariance matrix.
Once a note is detected, the note blob is projected from camera pixel space to physical
music board space. The note's value and time (within an eighth count from the beginning
of the stanza) are determined based on a position threshold on the (x,y) physical location
of the note on the music board. The time of the note is "snapped" (rounded) to the nearest
eighth count, so that the music flows more smoothly.
Finally, because our music reader actively reads music in real-time, our system is
sensitive to any changes made to the music note configuration on the music board. The
blob detection algorithm runs continuously and updates its parsed music based on any
changes to the note configuration.

Parsing Music

Once all notes in each stanza are detected, we preform auto-spacing on the notes for
"better sounding" music. More specifically, if there are three or four notes in a stanza,
regardless of the "snapped" times for each note, note times will be adjusted such that the
times are spread evenly across the stanza.
The music speed is also automatically adjusted for the robot's physical limit. In other
words, the music speed is slowed down enough to allow the robot arms ample time to
play each note. Using the system's GUI, the user can also further slow down the speed of
the music.

GUI and Music Transmission

As the music reader dynamically detects music, a GUI shows the user the currently
detected music notes, a camera feed of the actual music board, and the music currently
being played on the robot arms. This allows the user to adjust the notes on the music
board without interrupting the currently playing music, and then, once the user is satisfied
with the new music, send the new music to the robot arms to be played. Upon sending the
new music to the music player component, a clear message is sent that invalidates
previously sent music notes and clears the queue of current notes to be played (allowing
these notes to be replaced with the updated music). An adjustable bar on the GUI also
allows the user to change the speed of the music.
Music Playing

Overview

The music actuation component of the Rage with the Machine project featured four
robotic arms autonomously playing xylophones in conjunction and communication with
the vision component. Our system managed the planning, timing, and mechanical aspects
of playing a desired piece of music and was written to be expandable to meet our
resource budget.

Planning

Our planner served as a scheduler for our robotic arms. Each arm had its 'availability' to
play a note mapped out in what we called a Planner Line, which was a sequence of
actions to perform, each of which kept track of its start, 'hitting the key', and completion
times, which we calibrated with trial information from the mechanical component of the
project (see below). The planner would receive the sequence of notes it should play in an
LCM (Lightweight Communications and Marshaling) message and proceed to distribute
them to the Planner Lines via our arm allocation algorithm either by appending to the
existing song or erasing and starting anew. As we continued to work, our algorithm grew
more sophisticated to achieve our definition of optimality, which was maximizing the
number of notes we could play in a given period of time. We implemented this in the
following growth stages:
    1. Query for the first free arm and use it to play the next note.
2. Query for all free arms and use the closest one of them to the next note to play as
      our choice.
   3. To improve demoability by increasing the number of 'occupied' arms in a given
      period of time, we modified our algorithm to query for all free arms, then all of
      those which were tied for being closest to the next note, and finally chose the arm
      to use at random from that list.
   4. Use method 3 as a quick and almost always successful greedy choice, but upon
      failure to add a note, achieve optimality by redistributing future notes via a branch
      and bound family algorithm. The planner would then maintain a thread that
      queried the Planner Lines to determine if they should play the note sitting at their
      individual playheads and signal the proper arm's state machine to do so.




Arm Interface

Our arms were managed via an Arm class, which was responsible for knowing the
configuration space locations of positions corresponding to hitting every key on our
xylophones as well as positions directly above them and conducting smooth transitions
between them. It also abstracted the mirroring of arms and their various positions from
one side of a xylophone to the other.
The process of making these movements smooth and reliably accurate took a number of
design features to achieve. We had to establish a procedure that involved moving our
arms one joint at a time in specific and varying orders to prevent collisions and
unexpected behavior that arose by simply ordering the arm from place to place, a practice
which unfortunately increased the delay between playing notes consecutively. For the
purpose of achieving accuracy, we implemented extremely tight thresholds on what it
meant for an arm joint to have 'arrived' at a location.
The above system performed extremely well after tuning what it meant to be 'above' a
key to decrease playing delays; however, our system encountered issues regarding servo
overloads while attempting to sustain positions above keys at the edge of our arm's safe
operating range which required a combination of tactics to solve. We determined that by
lowering the maximum operating torque for a servo, we could allow it to last longer
under stress, and wrote it into our code to achieve this when an arm was idle for a
sufficiently long period of time. To achieve the best demoability and reliability for our
system, we further determined that it would be safest to not only lower torque after being
idle for long periods of time, but also to move the arm to a known safe position, above
the middle xylophone key. All of these tactics for sustainability were conducted blind to
the planner, abstracted away and allowed for new instructions at a moment's notice.
Mechanics

The portion of the system we found we had the greatest difficulty refining was our
mechanical interface with the xylophones. In the course of testing, we determined that in
order to affect a sound off of a xylophone, it was necessary to not merely hit a note and
release quickly with some artifact, but to pivot while doing so. After several design
iterations and trials, we developed a rig which consisted of a 3" x ¾" hex bolt with one-
degree-of-freedom for striking with a pivot to produce the appropriate ring from our
xylophones.




Once the rig was constructed, we also had to ensure that we could actuate the servos in
such a fashion that we could strike the key as intended. This required moving several
joints in quick succession, and was a process that we changed several times over the
course of development, and had the undesirable quality of often needing to be manually
fine tuned for specific keys, rather than be based off of some mathematical model and
adjustments. When we had settled on the motion of the arm, we ran a calibration program
that ran through every possible motion of the arm between our pre-programmed positions
and recorded the times taken over several trials for use in our planner.

Success

We view our system as a success. We were able to completely abstract the playing of
music in a reliable planner that was able to achieve optimal playing capacity. We were
able to play well known songs at a reasonable tempo with a relatively small number of
robotic arms. The limitations of our system were either due to our resource budget or a
consequence of being pressed for time. While our program could accommodate any
number of robotic arms (and therefore play more complex and interesting music), we
were limited by the number available, the space required for each arm (4 sq. ft.), and the
number of USB ports and number of AC power sockets (1 per arm). We could have
further improved our system by reducing delays between notes, but were constrained by
the amount of time it would've taken to find positions and movement patterns starting
from closer above each note that still produced quality sound, and in the same way were
limited from reducing servo overload issues by decreasing the operating radius of our
arms. These known issues stated, we did manage to find solutions to both within the
scope of programming, by making our planning algorithm optimal and our arms employ
effective safety protocols, and as such, these issues were voided by demonstration day,
and our system a success.

Más contenido relacionado

Destacado

Strategic Trading in Credit Networks
Strategic Trading in Credit NetworksStrategic Trading in Credit Networks
Strategic Trading in Credit NetworksSamantha Luber
 
Autonomous Robot Band Presentation
Autonomous Robot Band PresentationAutonomous Robot Band Presentation
Autonomous Robot Band PresentationSamantha Luber
 
Phi Sigma Rho Engineering Sorority
Phi Sigma Rho Engineering SororityPhi Sigma Rho Engineering Sorority
Phi Sigma Rho Engineering SororitySamantha Luber
 
Efficient Belief Propagation in Depth Finding
Efficient Belief Propagation in Depth FindingEfficient Belief Propagation in Depth Finding
Efficient Belief Propagation in Depth FindingSamantha Luber
 
Digital Tuner Project Final Presentation
Digital Tuner Project Final PresentationDigital Tuner Project Final Presentation
Digital Tuner Project Final PresentationSamantha Luber
 
Digital Tuner Project Final Report
Digital Tuner Project Final ReportDigital Tuner Project Final Report
Digital Tuner Project Final ReportSamantha Luber
 
Condo & HOA Payments: then and now
Condo & HOA Payments: then and nowCondo & HOA Payments: then and now
Condo & HOA Payments: then and nowTOPS Software
 

Destacado (9)

Strategic Trading in Credit Networks
Strategic Trading in Credit NetworksStrategic Trading in Credit Networks
Strategic Trading in Credit Networks
 
Spinal Disc Implants
Spinal Disc ImplantsSpinal Disc Implants
Spinal Disc Implants
 
Autonomous Robot Band Presentation
Autonomous Robot Band PresentationAutonomous Robot Band Presentation
Autonomous Robot Band Presentation
 
SCAI Presentation
SCAI PresentationSCAI Presentation
SCAI Presentation
 
Phi Sigma Rho Engineering Sorority
Phi Sigma Rho Engineering SororityPhi Sigma Rho Engineering Sorority
Phi Sigma Rho Engineering Sorority
 
Efficient Belief Propagation in Depth Finding
Efficient Belief Propagation in Depth FindingEfficient Belief Propagation in Depth Finding
Efficient Belief Propagation in Depth Finding
 
Digital Tuner Project Final Presentation
Digital Tuner Project Final PresentationDigital Tuner Project Final Presentation
Digital Tuner Project Final Presentation
 
Digital Tuner Project Final Report
Digital Tuner Project Final ReportDigital Tuner Project Final Report
Digital Tuner Project Final Report
 
Condo & HOA Payments: then and now
Condo & HOA Payments: then and nowCondo & HOA Payments: then and now
Condo & HOA Payments: then and now
 

Similar a Autonomous Band Project Writeup

JoeWangVisitingScholarProjectSummary
JoeWangVisitingScholarProjectSummaryJoeWangVisitingScholarProjectSummary
JoeWangVisitingScholarProjectSummaryJoe Wang
 
Voice Recognition
Voice RecognitionVoice Recognition
Voice RecognitionAmrita More
 
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...aciijournal
 
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...aciijournal
 
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...aciijournal
 
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...Syntheway Virtual Musical Instruments
 
Application of Recurrent Neural Networks paired with LSTM - Music Generation
Application of Recurrent Neural Networks paired with LSTM - Music GenerationApplication of Recurrent Neural Networks paired with LSTM - Music Generation
Application of Recurrent Neural Networks paired with LSTM - Music GenerationIRJET Journal
 
A new parallel bat algorithm for musical note recognition
A new parallel bat algorithm for musical note recognition  A new parallel bat algorithm for musical note recognition
A new parallel bat algorithm for musical note recognition IJECEIAES
 
Antescofo Syncronous Languages for Musical Composition
Antescofo Syncronous Languages for Musical Composition Antescofo Syncronous Languages for Musical Composition
Antescofo Syncronous Languages for Musical Composition nazlitemu
 
Query By Humming - Music Retrieval Technique
Query By Humming - Music Retrieval TechniqueQuery By Humming - Music Retrieval Technique
Query By Humming - Music Retrieval TechniqueShital Kat
 
Paper on Modeling and Subtractive synthesis of virtual violin
Paper on Modeling and Subtractive synthesis of virtual violinPaper on Modeling and Subtractive synthesis of virtual violin
Paper on Modeling and Subtractive synthesis of virtual violinVinoth Punniyamoorthy
 
EENG 1920 Final Report
EENG 1920 Final ReportEENG 1920 Final Report
EENG 1920 Final ReportOre Afolayan
 
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...Syntheway Virtual Musical Instruments
 
IRJET - EMO-MUSIC(Emotion based Music Player)
IRJET - EMO-MUSIC(Emotion based Music Player)IRJET - EMO-MUSIC(Emotion based Music Player)
IRJET - EMO-MUSIC(Emotion based Music Player)IRJET Journal
 
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...IRJET- Implementation of Emotion based Music Recommendation System using SVM ...
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...IRJET Journal
 
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...Syntheway Virtual Musical Instruments
 
Knn a machine learning approach to recognize a musical instrument
Knn  a machine learning approach to recognize a musical instrumentKnn  a machine learning approach to recognize a musical instrument
Knn a machine learning approach to recognize a musical instrumentIJARIIT
 
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMMNasir Ahmad
 

Similar a Autonomous Band Project Writeup (20)

JoeWangVisitingScholarProjectSummary
JoeWangVisitingScholarProjectSummaryJoeWangVisitingScholarProjectSummary
JoeWangVisitingScholarProjectSummary
 
Voice Recognition
Voice RecognitionVoice Recognition
Voice Recognition
 
Animal Voice Morphing System
Animal Voice Morphing SystemAnimal Voice Morphing System
Animal Voice Morphing System
 
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...
AUDIO SIGNAL IDENTIFICATION AND SEARCH APPROACH FOR MINIMIZING THE SEARCH TIM...
 
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
 
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...Audio Signal Identification and Search Approach for Minimizing the Search Tim...
Audio Signal Identification and Search Approach for Minimizing the Search Tim...
 
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...
Spherator FM VST VST3 Audio Unit: 4 Operator Frequency Modulation Synthesizer...
 
Application of Recurrent Neural Networks paired with LSTM - Music Generation
Application of Recurrent Neural Networks paired with LSTM - Music GenerationApplication of Recurrent Neural Networks paired with LSTM - Music Generation
Application of Recurrent Neural Networks paired with LSTM - Music Generation
 
A new parallel bat algorithm for musical note recognition
A new parallel bat algorithm for musical note recognition  A new parallel bat algorithm for musical note recognition
A new parallel bat algorithm for musical note recognition
 
Antescofo Syncronous Languages for Musical Composition
Antescofo Syncronous Languages for Musical Composition Antescofo Syncronous Languages for Musical Composition
Antescofo Syncronous Languages for Musical Composition
 
Query By Humming - Music Retrieval Technique
Query By Humming - Music Retrieval TechniqueQuery By Humming - Music Retrieval Technique
Query By Humming - Music Retrieval Technique
 
Paper on Modeling and Subtractive synthesis of virtual violin
Paper on Modeling and Subtractive synthesis of virtual violinPaper on Modeling and Subtractive synthesis of virtual violin
Paper on Modeling and Subtractive synthesis of virtual violin
 
EENG 1920 Final Report
EENG 1920 Final ReportEENG 1920 Final Report
EENG 1920 Final Report
 
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...
Astra Turbo Quasar VST, VST3 and Audio Unit Plugin: Dual Phase Distortion Syn...
 
IRJET - EMO-MUSIC(Emotion based Music Player)
IRJET - EMO-MUSIC(Emotion based Music Player)IRJET - EMO-MUSIC(Emotion based Music Player)
IRJET - EMO-MUSIC(Emotion based Music Player)
 
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...IRJET- Implementation of Emotion based Music Recommendation System using SVM ...
IRJET- Implementation of Emotion based Music Recommendation System using SVM ...
 
BTP Second Phase
BTP Second PhaseBTP Second Phase
BTP Second Phase
 
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...
Synthractive VST, VST3 and Audio Unit Stereo Subtractive Synthesizer: Leads, ...
 
Knn a machine learning approach to recognize a musical instrument
Knn  a machine learning approach to recognize a musical instrumentKnn  a machine learning approach to recognize a musical instrument
Knn a machine learning approach to recognize a musical instrument
 
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM
6.5.1 Review of Beat Detection and Phase Alignment Techniques used in DMM
 

Más de Samantha Luber

Media-based Querying and Searching
Media-based Querying and SearchingMedia-based Querying and Searching
Media-based Querying and SearchingSamantha Luber
 
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)Samantha Luber
 
TRUSTS Mobile App Demo Poster (AAMAS 2013)
TRUSTS Mobile App Demo Poster (AAMAS 2013)TRUSTS Mobile App Demo Poster (AAMAS 2013)
TRUSTS Mobile App Demo Poster (AAMAS 2013)Samantha Luber
 
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...Samantha Luber
 
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)Samantha Luber
 
Object-retrieving Autonomous Robotic Arm
Object-retrieving Autonomous Robotic ArmObject-retrieving Autonomous Robotic Arm
Object-retrieving Autonomous Robotic ArmSamantha Luber
 
Web-controlled Car Poster
Web-controlled Car PosterWeb-controlled Car Poster
Web-controlled Car PosterSamantha Luber
 
Electronic Dance Music Presentation
Electronic Dance Music PresentationElectronic Dance Music Presentation
Electronic Dance Music PresentationSamantha Luber
 
Gangs and Violence in Brazil
Gangs and Violence in BrazilGangs and Violence in Brazil
Gangs and Violence in BrazilSamantha Luber
 
MSAIL Mass Meeting Winer 2011
MSAIL Mass Meeting Winer 2011MSAIL Mass Meeting Winer 2011
MSAIL Mass Meeting Winer 2011Samantha Luber
 
Cognitive Science Artificial Intelligence
Cognitive Science Artificial IntelligenceCognitive Science Artificial Intelligence
Cognitive Science Artificial IntelligenceSamantha Luber
 
The AbioCor System: Overview
The AbioCor System: OverviewThe AbioCor System: Overview
The AbioCor System: OverviewSamantha Luber
 

Más de Samantha Luber (13)

Media-based Querying and Searching
Media-based Querying and SearchingMedia-based Querying and Searching
Media-based Querying and Searching
 
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)
User Prompts for TRUSTS Mobile App Demonstration (AAMAS 2013)
 
TRUSTS Mobile App Demo Poster (AAMAS 2013)
TRUSTS Mobile App Demo Poster (AAMAS 2013)TRUSTS Mobile App Demo Poster (AAMAS 2013)
TRUSTS Mobile App Demo Poster (AAMAS 2013)
 
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...
Game-theoretic Patrol Strategies for Transit Systems: the TRUSTS System and i...
 
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)
Game-theoretic Patrol Strategies for Transit Systems (Slideshow deck)
 
Object-retrieving Autonomous Robotic Arm
Object-retrieving Autonomous Robotic ArmObject-retrieving Autonomous Robotic Arm
Object-retrieving Autonomous Robotic Arm
 
Web-controlled Car Poster
Web-controlled Car PosterWeb-controlled Car Poster
Web-controlled Car Poster
 
Electronic Dance Music Presentation
Electronic Dance Music PresentationElectronic Dance Music Presentation
Electronic Dance Music Presentation
 
Gangs and Violence in Brazil
Gangs and Violence in BrazilGangs and Violence in Brazil
Gangs and Violence in Brazil
 
MSAIL Mass Meeting Winer 2011
MSAIL Mass Meeting Winer 2011MSAIL Mass Meeting Winer 2011
MSAIL Mass Meeting Winer 2011
 
Cognitive Science Artificial Intelligence
Cognitive Science Artificial IntelligenceCognitive Science Artificial Intelligence
Cognitive Science Artificial Intelligence
 
AbioCor Heart System
AbioCor Heart SystemAbioCor Heart System
AbioCor Heart System
 
The AbioCor System: Overview
The AbioCor System: OverviewThe AbioCor System: Overview
The AbioCor System: Overview
 

Último

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Último (20)

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

Autonomous Band Project Writeup

  • 1. Autonomous Band EECS 498: Autonomous Robotics Laboratory University of Michigan Robert Bergen, Mark Isaacson, Sami Luber, and Zach Oligschalaeger http://eecs498teammusic.webs.com/ Overview For our EECS 498 Autonomous Robotics Lab Final Project, we created an autonomous band, consisting of four robotic arms and two xylophones. An overhead camera is used to detect music notes, which are parsed into music and sent to the robotic arm controller. The arm controller uses motion planning to direct the arms to play notes while avoiding arm collisions. Autonomously reading and playing music is challenging because it requires building a robust music-reading system, careful synchronization between the music reader and the music player components, and motion planning between the arms to ensure notes are played smoothly and without arm collisions. Described in detail in the Music Reading section, our system continuously detects musical notes on the music board to allow users to see their desired music change in real-time on the GUI. However, to allow the user to set their desired song before playing it, the user controls when the new music is sent to the music player. At this point, the music player discards previously sent music and clears queued notes to accommodate the new music. Described in detail in the Music Playing section, based on the number of available robotic arms, the music player component schedules each robotic arm to play notes using motion planning to avoid arm collisions. Music Reading Representing Music Our system strives to resemble real sheet music as much as possible. Notes are represented by red circles, uniform in color and size. Users can set these notes as desired on the music board. Furthermore, our system supports reading and playing all G-clef notes (middle C - high G). Camera Calibration
  • 2. Our camera calibration calibrates by first detecting the four corners (marked by blue squares) on the music board (the system pauses if more or less than four corners are detected). Using the locations of the four corners, a homography is built to project notes from camera pixel space to physical music board space with respect to the center of the music board. Using knowledge of pre-defined line and stanza spacing to determine the note value and time of each music note based on its physical (x,y) position on the music board. Detecting Notes When detecting music, each stanza is scanned separately for music notes. We detect music notes by using a Blob Detection algorithm. In the blob detection algorithm, there is a color threshold for notes in which colors are represented using HSV (more robust in environments with varying lighting). The blob detection algorithm is also blob size sensitive. More specifically, there is a threshold range on how many pixels a blob must be within to be considered a note. If a note blob is larger than expected, we assume there are overlapping notes on the music board that are being detected as one large note blob. Using the covariance matrix of the overlapping note blob and the expected size of a note, we determine the configuration of the overlapping notes and how many notes the blob should be broken into. The round shape of the notes is also important as it improves our variance calculation accuracy when building the covariance matrix.
  • 3. Once a note is detected, the note blob is projected from camera pixel space to physical music board space. The note's value and time (within an eighth count from the beginning of the stanza) are determined based on a position threshold on the (x,y) physical location of the note on the music board. The time of the note is "snapped" (rounded) to the nearest eighth count, so that the music flows more smoothly. Finally, because our music reader actively reads music in real-time, our system is sensitive to any changes made to the music note configuration on the music board. The blob detection algorithm runs continuously and updates its parsed music based on any changes to the note configuration. Parsing Music Once all notes in each stanza are detected, we preform auto-spacing on the notes for "better sounding" music. More specifically, if there are three or four notes in a stanza, regardless of the "snapped" times for each note, note times will be adjusted such that the times are spread evenly across the stanza. The music speed is also automatically adjusted for the robot's physical limit. In other words, the music speed is slowed down enough to allow the robot arms ample time to play each note. Using the system's GUI, the user can also further slow down the speed of the music. GUI and Music Transmission As the music reader dynamically detects music, a GUI shows the user the currently detected music notes, a camera feed of the actual music board, and the music currently being played on the robot arms. This allows the user to adjust the notes on the music board without interrupting the currently playing music, and then, once the user is satisfied with the new music, send the new music to the robot arms to be played. Upon sending the new music to the music player component, a clear message is sent that invalidates previously sent music notes and clears the queue of current notes to be played (allowing these notes to be replaced with the updated music). An adjustable bar on the GUI also allows the user to change the speed of the music.
  • 4. Music Playing Overview The music actuation component of the Rage with the Machine project featured four robotic arms autonomously playing xylophones in conjunction and communication with the vision component. Our system managed the planning, timing, and mechanical aspects of playing a desired piece of music and was written to be expandable to meet our resource budget. Planning Our planner served as a scheduler for our robotic arms. Each arm had its 'availability' to play a note mapped out in what we called a Planner Line, which was a sequence of actions to perform, each of which kept track of its start, 'hitting the key', and completion times, which we calibrated with trial information from the mechanical component of the project (see below). The planner would receive the sequence of notes it should play in an LCM (Lightweight Communications and Marshaling) message and proceed to distribute them to the Planner Lines via our arm allocation algorithm either by appending to the existing song or erasing and starting anew. As we continued to work, our algorithm grew more sophisticated to achieve our definition of optimality, which was maximizing the number of notes we could play in a given period of time. We implemented this in the following growth stages: 1. Query for the first free arm and use it to play the next note.
  • 5. 2. Query for all free arms and use the closest one of them to the next note to play as our choice. 3. To improve demoability by increasing the number of 'occupied' arms in a given period of time, we modified our algorithm to query for all free arms, then all of those which were tied for being closest to the next note, and finally chose the arm to use at random from that list. 4. Use method 3 as a quick and almost always successful greedy choice, but upon failure to add a note, achieve optimality by redistributing future notes via a branch and bound family algorithm. The planner would then maintain a thread that queried the Planner Lines to determine if they should play the note sitting at their individual playheads and signal the proper arm's state machine to do so. Arm Interface Our arms were managed via an Arm class, which was responsible for knowing the configuration space locations of positions corresponding to hitting every key on our xylophones as well as positions directly above them and conducting smooth transitions between them. It also abstracted the mirroring of arms and their various positions from one side of a xylophone to the other. The process of making these movements smooth and reliably accurate took a number of design features to achieve. We had to establish a procedure that involved moving our arms one joint at a time in specific and varying orders to prevent collisions and unexpected behavior that arose by simply ordering the arm from place to place, a practice which unfortunately increased the delay between playing notes consecutively. For the purpose of achieving accuracy, we implemented extremely tight thresholds on what it meant for an arm joint to have 'arrived' at a location. The above system performed extremely well after tuning what it meant to be 'above' a key to decrease playing delays; however, our system encountered issues regarding servo overloads while attempting to sustain positions above keys at the edge of our arm's safe operating range which required a combination of tactics to solve. We determined that by lowering the maximum operating torque for a servo, we could allow it to last longer under stress, and wrote it into our code to achieve this when an arm was idle for a sufficiently long period of time. To achieve the best demoability and reliability for our system, we further determined that it would be safest to not only lower torque after being idle for long periods of time, but also to move the arm to a known safe position, above
  • 6. the middle xylophone key. All of these tactics for sustainability were conducted blind to the planner, abstracted away and allowed for new instructions at a moment's notice. Mechanics The portion of the system we found we had the greatest difficulty refining was our mechanical interface with the xylophones. In the course of testing, we determined that in order to affect a sound off of a xylophone, it was necessary to not merely hit a note and release quickly with some artifact, but to pivot while doing so. After several design iterations and trials, we developed a rig which consisted of a 3" x ¾" hex bolt with one- degree-of-freedom for striking with a pivot to produce the appropriate ring from our xylophones. Once the rig was constructed, we also had to ensure that we could actuate the servos in such a fashion that we could strike the key as intended. This required moving several joints in quick succession, and was a process that we changed several times over the course of development, and had the undesirable quality of often needing to be manually fine tuned for specific keys, rather than be based off of some mathematical model and adjustments. When we had settled on the motion of the arm, we ran a calibration program that ran through every possible motion of the arm between our pre-programmed positions and recorded the times taken over several trials for use in our planner. Success We view our system as a success. We were able to completely abstract the playing of music in a reliable planner that was able to achieve optimal playing capacity. We were able to play well known songs at a reasonable tempo with a relatively small number of robotic arms. The limitations of our system were either due to our resource budget or a consequence of being pressed for time. While our program could accommodate any number of robotic arms (and therefore play more complex and interesting music), we
  • 7. were limited by the number available, the space required for each arm (4 sq. ft.), and the number of USB ports and number of AC power sockets (1 per arm). We could have further improved our system by reducing delays between notes, but were constrained by the amount of time it would've taken to find positions and movement patterns starting from closer above each note that still produced quality sound, and in the same way were limited from reducing servo overload issues by decreasing the operating radius of our arms. These known issues stated, we did manage to find solutions to both within the scope of programming, by making our planning algorithm optimal and our arms employ effective safety protocols, and as such, these issues were voided by demonstration day, and our system a success.