Author: devanka

Final Poster

Final Poster

Attached here are the pdf and ppt formats of the Final Poster for our team.   PDF: C7_Final_Poster PowerPoint: C7_Final_Poster  

Devanks Status Report April 29th, 2023

Devanks Status Report April 29th, 2023

This week most of my work was done toward the presentation and preparing for the same. We had the presentation on Wednesday and it went smoothly. In terms of code, I thought of how to add Bounce shots to our algorithm, and I am happy 

Final Presentation

Final Presentation

Final Presentation

Devank Status Report for April 22, 2023

Devank Status Report for April 22, 2023

2The status report covers the last 2 weeks: Week 1: April 8th to April 15th This was the week of the carnival at CMU so I could not get a lot done because of the same. I made some changes to the code base, where 

Devank’s Status Report for April 8th

Devank’s Status Report for April 8th

This week I worked further on the shot calculation system, the frame design, and integration with Jimmy and Justin. For the shot calculation, I mostly did 2 two things. The first of these was to account for the distance of the cue ball to the 

Devank Status Report April 1st, 2023

Devank Status Report April 1st, 2023

This week my work was split up into three parts.

The first of these was the frame. I added a hole at the top shelf of the frame for the projector to sit on so that it could project the new image back on the table. We ran into a problem with this though as we didn’t realize that the projector projects its image on a tilt. If we stick with the current design, we only project on the top half of the pool table and not the bottom. This would require a new frame design and I came up with two main ideas. The first of these is to add a new leg to the third side of the frame as this would allow the projection to be over the entire table. The second is to extend the base and move the pool table forwards and this seems to be the easier solution.

 

The second of these was the shot calculation system. Until now I was drawing lines to the center of each ball, which was slightly incorrect as on an angle, the cue ball is not supposed to hit the ball in the center. So I corrected this by adding a ghost ball (where the cue ball is supposed to make contact with the target ball) and accounted for this when making the shot. This also required a redesign of collision calculation which was done since the current system was modular enough.

 

The Third was integration with Jimmy’s CV system. As of now, we are able to detect changes in the game state from the CV system, store these changes in a global values, and once we have these changes stabilized (i.e ball stops moving) we are able to calculate the best shot. Jimmy and I will be further testing this tomorrow and hopefully we don’t run into too many issues.

For the next week, My immediate priorities are going to be redesign the frame, fully integrate with Jimmy’s system and then start integrating with Justin’s pool cue stick system. I am on track with progress and we are doing well as a team at the moment.

Team Status Report, April 1st 2023

Team Status Report, April 1st 2023

This week the team continued on making significant progress. Jimmy further optimized his CV system to account for color detection, and Jimmy and Devank were able to integrate their separate systems. Devank was able to fix an error pointed out by Jimmy this week with 

Team Status Report For March 25th, 2023

Team Status Report For March 25th, 2023

This Week was Really Good in terms of progress for the team. Devank finished a preliminary bug-free shot calculation that can find the optimal shot given a random game state. Jimmy got the CV system to work and is able to detect pool balls and 

Devank Status Report for March 25th, 2023

Devank Status Report for March 25th, 2023

This Week I made a lot of progress. I redesigned the entire software stack for the shot calculation since it was extremely buggy and slow. After a rewrite of the entire code base for calculation, today I removed the last bug from a preliminary shot calculator and as of now given a random game state, the software will select the easiest possible shot for the user and create an image for it. The main problem I addressed was the removal of certain pockets. Until now I was only removing the pockets based on the current position of the target ball, and now it has been updated to the maximum x and y coordinates the ball can go after its shot. A different bug I found was when the x coordinates for the balls were the same, the slope was coming out to be infinity which was messing up the entire system and now that has been accounted for. Moreover, with the rewrite of the code, the code is now a lot more readable and portable since I defined macros for a lot of the constants I use to minimize the number of changes that would need to be made in integration with the CV system from Jimmy. I am on track, and my next steps would be integrating my and Jimmy’s CV system and then mine and Justin’s cue system. After that is done, time permitting, I want to look into the option of adding bounce shots (off the railings) and chain shots (hitting one ball into another for the second one to go in).

 

Devank Status Report 18th March, 2023

Devank Status Report 18th March, 2023

This work my work was split into two parts. The first was toward the shot calculation system and the second was toward the ethics assignment. For the former, I am now at a point where I am able to create a list of possible shots