Elly’s Status Report for 10/18

I worked on finishing the design report for this week and finalizing design choices and implementation details for the software. We decided to use a local database with Apple’s Core Data framework instead of the Open Food Facts API because having a database without the proper product name and price would lead to a bad user experience as certain details could be missing if we rely on an open source database. Thus we chose to create our own database with products from a local grocery store or an online store such as Amazon to simulate the database that a grocery store would have. Another detail we finalized was the pathfinding. We will be using D* Lite due to its strengths in dynamic environments and its simplicity compared to D*. The LiDAR coordinates will be converted into a cost matrix that will be fed into the algorithm as an input. In terms of resources, there is pseudocode and a few Python implementations of the algorithm that we will be referencing for this project.

I am behind schedule as last week as I planned to have the mobile app finalized, but I was unable to work on it due to finishing up the design report. To get back on track, I plan to spend this week finishing up the mobile app by creating the local database and finalizing the UI of the app. Unfortunately, this means that I will need to push back the implementation of LiDAR and obstacle detection, but since there is a slack week, I should be able to get it done by the interim demo.

Elly’s Status Report for 10/4

I worked on implementing a barcode scanner for the mobile app and connected the barcode scanner output to the OpenFoodFacts database via their API to get the title of the product. The barcode scanner uses the AV Foundation framework, allowing me to create a ViewController that manages an AVCaptureSession. This allows the user to give permission to use their camera and scan the barcode. This outputs a string of numbers, which can be used to make a request to OpenFoodFacts to search for the product name. The product name will be populated in a list that the user can view. One issue with the barcode scanner that needs to be fixed is that the list of items disappears when the user exits the app, so I need to implement a state that allows the user to keep their current session. Another issue is that OpenFoodFacts does not provide the price of the product since this is something that varies by store. Thus, we need to decide how to set the price for each product and whether OpenFoodFacts is appropriate for our project or if we should create our own database.

I also worked on researching pathfinding algorithms for our shopping cart. Last week, I determined a potential obstacle avoidance algorithm that we could use, but in order for the cart to follow the user, we decided to use D*. This is because D* is designed for changing environments, so if the cart detects a new obstacle via LiDAR, this algorithm can replan that path without recalculating the entire path. 

Next week, I plan to fix the issues I mentioned above with the mobile app and get a fully functional mobile app. If there is additional time, I hope to start doing research on LiDAR as we have the sensor and see what kind of information we can get from it.

Barcode Scanner Resources:

https://medium.com/@jpmtech/how-to-make-a-qr-or-barcode-scanner-in-swiftui-68d8dae8e908 

https://medium.com/@ios_guru/swiftui-and-custom-barcode-scanner-f3daaeabfcea 

Barcode Scanner Demo:

https://vimeo.com/1124535079?share=copy 

D* Resources:

https://engineering.miko.ai/path-planning-algorithms-a-comparative-study-between-a-and-d-lite-01133b28b8b4 

https://www.ri.cmu.edu/pub_files/pub3/stentz_anthony__tony__1994_2/stentz_anthony__tony__1994_2.pdf 

Elly’s Status Report for 9/27

This week I worked on expanding on the design of our project in preparation for the design presentation. Since we decided that Bluetooth and GPS would not be a viable solution for location tracking, I helped research other methods of location tracking, and our team decided to use UWB. From there, I looked into Apple’s Nearby Interaction framework which supports UWB and picked out our UWB module (DWM3001CTR13) that would be placed on the cart. The module and the iPhone allow for UWB connection which can be used to ensure that the shopping cart stays within range of the shopper. 

I also researched how to integrate LiDAR and pathfinding for our cart. We decided to use a 2D 360 LiDAR sensor connected to a Raspberry Pi 5. From there, I looked into how we could get the information from that LiDAR sensor and combine it with the information from the UWB module to direct the movement of the cart. Robot Operating System (ROS) is a popular framework for building robot applications which we plan on using, but there may be issues with using it as it may not operate well on Macs. I read a research paper called “Development of Human Following Mobile Robot System Using Laser Range Scanner” which details how the group created a human following robot with LiDAR. In this paper, they mention the collision avoidance function they used, which outlines a collision detection area. If there is an obstacle in the collision detection area, the obstacle has its own circular collision avoidance area. The function then calculates the collision avoidance vector which is tangent to the circular collision avoidance area and in the same direction as the shopper’s direction. This vector is the direction in which the robot will travel. Since this is very similar to our project, we plan on using a similar function for our cart, integrating the coordinates of the shopper that we get from UWB.

We are currently on track for this week since most of the focus is on figuring out the design and design presentation. Although the function from the research article is a good option, there are more pathfinding algorithms that can be explored, so for next week, I plan on having a finalized pathfinding algorithm.

Elly’s Status Report for 9/20

Our project will contain a mobile app that allows shoppers to view a list of items and the nutritional facts of the items in the cart. This week, I researched how to develop mobile apps and made a draft of the UI. The home page will be broken up into three sections. The first shows the total number of items, calories, and price at the top. The next section shows the macro breakdown with the total grams of protein, carbs, and fat. Finally, the third section will list out each product with the price and number of calories. When the user clicks on the gear in the top right, it brings them to the controls page, giving the user the option to start, stop, and disconnect from the cart.

To develop the app, I plan to use Xcode with Swift and SwiftUI to run the app locally on a phone. Core Bluetooth will be used to connect and facilitate communication between the app and the shopping cart, and Core Data will be used to make a local database of products.

Next week, I will start coding to create the basic framework for the app’s UI, which will be on track for our schedule.