Alana’s Status Report for 4/27/24

Personal Accomplishments:

There isn’t much left to do. I spent most of my time fixing small bugs and adding additional tweaks and upgrades to the web app. Any major refinements would involve changing how the model generation creates and interacts with the web app. Model generation is more Grace’s area and my computer has issues with the software so I can’t really run it on my own. That doesn’t stop the group from meeting up to test things but it does slow down the progress I can make on my own for really nitty gritty details. Nonetheless, I will continue to make improvements.

Progress:

Seeing as the only goal for the group is to keep testing until the final demo, I’d say that I’m on time. I’ll continue to test things out with the others.

Schedule Status: On time.

Next Week’s Deliverables:

With the final demo in sight, my goal is to make the web app the best it can be.

Alana’s Status Report for 4/20/24

Personal Accomplishments:

A problem we found with the project is that while we could load in a clean room model pretty consistently, getting clean models of the individual furniture models was a lot trickier as our scanner could detect distance but lacked a depth field. To counteract this, I implemented a system that loads in a room model and replaces the messy furniture models with template furniture models (like the ones you see below) and place them in the appropriate furniture locations. 

There were a couple of problems along the way. The first problem was that Javascript doesn’t have a lot of good tools to play around with its file system. What is there is good enough when the files are static, but not when the files change dynamically. Since the scanner would be sending new files to the web app as it scanned a room, this was a problem. I looked into a lot of different ways to get Javascript to do what I wanted but ultimately, I managed to get it done with the help of django. Since django already takes care of running the code that creates and sends the files to the web app, we just had it send a json file that includes the position and object type for each piece of furniture detected in the room. Javascript had a much easier time reading from a json file rather than the other methods I had tried. Getting the position of the furniture was tricky due to the mentioned problem of our scanner’s lack of depth perception but Grace was able to get position data into the file.

Aside from that, I added in a couple more tweaks like some instructions on how to use the site and fixed a few bugs.

 

Progress:

I managed to complete my goal from last week and we are approaching the endgame for this project. The only thing left to do on the web app side of things is more testing to make sure the models are displayed properly when scanning different types of rooms and fix any of the potential bugs that may arise.

Schedule Status: On time.

What I learned during the project:

Starting this project, I already had a good amount of experience with web app design and React. However, something I had to learn a lot about during the project was how to display 3D models in a web app. The first step was just finding a library that could do most of that for me. When it comes to web app design, there are tons of free libraries there to get specific jobs done. Low and behold, I found Three.js to load up 3D models. Three.js on its own didn’t sync up great with my React setup but then I found React Three Fiber, a free React library that uses Three.js as its base. That saved me a lot of time compared to trying to get base Three.js to work with my React setup. From there I learned how to use React Three Fiber by reading its documentation and watching Youtube tutorials on how it worked. There were instances where I couldn’t find a good Youtube tutorial for what I was trying to do so I had to use the documentation and examples of React Three Fiber projects I found online to reverse engineer the mechanics of the library to get it to do what I wanted it to do in my code. Not to mention the trips to sites like StackOverflow to see if anyone had already posted solutions to specific programming problems I ran into.

Next Week’s Deliverables:

I want to make sure that the code displays the models correctly when using different types of room scans. I’ve been testing the current code on dummy data as it’s hard to collect new data on the fly. That requires having the whole setup with scanner lift in place and that isn’t feasible to do whenever. Further testing will make sure the code works in a majority of cases.

Alana’s Status Report for 4/6/24

Personal Accomplishments:

As mentioned last week, I managed to get django to establish the connection between the lidar, rasberri pi,  model generator and web application. We can now press a button in the web app and scan the room, then once that is done, enter the 3D environment to play around with the models. While the speed of the room scan relies on the speed of the physical scanner components, the ability for the web app to load the model in is less than a few seconds.

I’ve been working on getting the web app to load in room and furniture models from a models folder. I’ve been looking into JavaScript file management functions for that. Though an issue with that ties into an issue the group has a whole. Trying to figure out how to separate the furniture models from the room model. Due to our lidar’s lack of depth perception, the furniture models are baked into the wall data as large blobs that go all the way back to the wall. This makes the wall and furniture as one model instead of separate ones. For this I’ve also spent time researching ways around this. It’s difficult for me to work on the problem directly as there have been errors with installing the Open3D packages needed to make the program run on my computer. Thankfully it works on the others computers but it leaves me in a position of being unable to test anything myself. I’ve looked for a work around but none have revealed themselves to me yet.

I have also made tweaks to the code base. Fleshing out little quality of life changes like easier times moving objects around, highlights appearing around the object when you select it, labels appearing on selected objects, tweaks to the code for easier re-use, etc.

Progress:

Establishing the connection between the web app and the other systems of the project was probably the most important task for me throughout this whole thing. With my issues in getting Open3D to work on my computer, any progress I make with the furniture data issue can only be research assistance. Aside from that though, I think getting django to work has kept me on track progress -wise.

Schedule Status: On time.

Verification:

For my verification methods, I plan to clock the time it takes to for the web pages to update, the time it takes for the web app to get the room data and how long it takes for the model to appear in the 3D model viewer. I can pretty easily do this by using the web browser console and making console comments about the current time. I can just keep track of the time difference between the when I initiate the above tasks and when they are completed.

Next Week’s Deliverables:

I hope to help others find a way around the furniture problem. In the meantime, I’ll be working on getting dummy furniture files to populate the room with the room model has loaded in.

Alana’s Status Report for 3/30/24

Personal Accomplishments:

I spent this week looking at connecting the web app to the model generation code more directly. This was difficult at first because the model generation code is in Python and the web app is written in JavaScript so that it can’t interface directly super easily. I tried a couple of ways of doing this. Originally I tried using a library called react-py that works as a Python interpreter. Type in python and then it gets executed. While I did eventually get that run without any errors, the model generation code we are using was a bit more complicated than react-py could handle. The result was that it took forever for the code to actually execute and even then there were still other issues. After that, I decided to change my approach to using django. 

Django is a Python based backend interface that is often used with HTML. I originally looked for other options as django requires running a server environment and is more commonly used for making forms and interacting with a database. It felt a bit too much for what I needed as I really just needed a single python function to run. Though with react-py not going to plan, django was my next best bet based on my research.

Despite the trouble getting there, I have made progress on getting the web app to react to the python function in the django files. Some adjustments still need to be made to streamline the code and make sure the files go to the right place but there seems to be promise with this method.

I have also spent time fleshing out the web app itself. A lot of small touches like getting the models to highlight when your mouse is over them, changing the tab name of the website to TailorBot Room Designer, experimenting with having text appear over objects in 3D to clarify what they are, making a proper home page for the web app and having the 3D render on another. I have included more meaningful changes like finding a way to more easily move objects in 3D space by simply dragging it and making the code more parameterized to make reusing it easier.

Example of the web app pulling data from elsewhere with django:

 

 

 

 

Showcase model highlighting:

Transform controls on models:

 

 

 

 

 

Progress:

The work I’ve done and my improvement in implementing the Three.js code has made the act of getting new models to appear in 3D space pretty simple. My general react knowledge makes adding to the web app UI a more manageable task. I think the web app itself and my ability to build upon it is in good order. From here it’s really just focusing on those connections with the model generator code and lidar.

Schedule Status: On time.

Next Week’s Deliverables:

Once things with django are sorted out, I want to work on getting the web app to connect to the raspberry pi to start the lidar room scan and then move on to generating the model. I plan to talk more to Zuiheb about that as he has been the one dealing with the raspberries.

Alana’s Status Report for 3/23/24

Personal Accomplishments:

I managed to find a way to get 3D models into the web app. From here it’s just getting the web app to interact with the scan data in real time.  In pursuit of that I’ve also been working on building functions in the code to populate the room with furniture models that the user can move around and interact with, though that’s still in the works.

Uploaded chair and table model:

Uploaded empty room model:

Progress:

I’m at the part of the project where I need to interact with my team members more closely as a lot of the next few steps involve getting the web app to work alongside the scan data and scissor lift controls in real time. I’ve already discussed this with them and plan working with them more as we move forward.

Schedule Status: On time.

Next Week’s Deliverables:

I hope by next week to be able have the web app be able to upload a room model from the lidar scan data in real time.

Alana’s Status Report for 3/16/24

Personal Accomplishments:

I had the goal of uploading a 3D model into the web app using the data from the LiDAR. Admittedly, I wasn’t able to make big progress on it as I found getting the web app (which is written in Javascript) to run Python code (which is the language for PyVista and produces the 3D models from the scans) was more difficult than I thought. While I don’t have much to show visually, I’m still learning on the coding side of things so progress is being made there at least.

Progress:

Technically, I’m not behind schedule but I’m not making as much progress as I wanted this week. I plan on doubling my efforts to make things work, but if I keep having issues, I’ll try to get web app’s Three.js (which is what produces 3D models there) to produce the models directly over trying to get it to interface with PyVista. Hopefully it won’t come to that as PyVista has some useful functions that would make the process easier.

Schedule Status: Behind.

Next Week’s Deliverables:

I hope to get more interaction with PyVista and the web app done this week and be able to import models created by PyVista at least.

Alana’s Status Report for 3/9/24

Personal Accomplishments:

I was able to get the web application to build a functional 3D plane that can generate 3D objects, can view models at multiple angles, and has a menu that allows them to change the position of the object. While the visual results are interesting, I think the more valuable progress was bettering my understanding of how to work with Three.js. As I was implementing these features, I came across a library known as React Three Fiber, an open source library that makes Three.js easier to implement with React. Finding this library made coding the 3D space much easier as a lot of the functionality was turned into premade React components. This will help me spend more time implementing and less time trying to figure out how to get Three.js to work harmoniously with React.

Moving an object in 3D space:

Viewing the object at multiple angles:

Progress:

I am currently on schedule as I had hoped to have the prototype of the web application done by now and with the 3D functionality being implemented I am happy with the progress made so far. From here, I’ll start refining the web application as I integrate it to work with the other parts of the project, like getting the lidar data or interacting with the scissor lift.

Schedule Status: On time.

Next Week’s Deliverables:

Now that I have a better understanding of Three.js, I want to start building a system to have it incorporate data from the LiDAR system in real time. I want to see how far I can get with a web app getting models from PyVista and allowing the user to play with them a bit. For the bare minimum, I want to try getting the room scan uploaded into the 3D space.

Alana’s Status Report for 2/24/24

Personal Accomplishments:

I spent a lot of this week building up the web app, integrating the output from the lidar, and researching into Three.js as Grace has been able to get 3D models from PyVista with said output.  I don’t have anything too exciting to show visually as most of the work is just me getting more familiar with the systems or in the code rather than the UI itself.

Though for big changes, I decided to switch over component libraries. At first, I was using a Next.js library called Shadecn as it was very popular and Next.js has a lot of nice backend features right out of the box compared to regular React that I wanted to have just in case they became useful later. However, I found Next.js and Shadecn more difficult to work with than regular React. It was the first time I had worked with either and while they were both very similar to React and the previous component library I’ve used, MUI, I wasn’t happy with the speed of my work. As such, I’ve decided to go with MUI and regular React due to my familiarity with it. Next.js and Shadecn weren’t impossible to work with but I hope the change may help me make faster progress in the future.

Progress:

Currently, I am on schedule. I’ll keep at it.

Schedule Status: On time.

Next Week’s Deliverables:

Next week I hope to have Three.js implemented into the web app. Maybe it won’t be working perfectly, but I at least want it to get to a state where it can interact with the web app code I have installed.

 

Alana’s Status Report for 2/17/24

Personal Accomplishments:

This week the group as a whole received feedback on actually integrating the data collection from our rplidar scanner into the system as soon as possible so we’d have a clearer idea of how everything would work together for design review. We got this pretty early on this week. My plan for the week was to make the sketches of the UI to start prototyping next week. However, I decided that my time would be better spent helping the others with getting the rplidar scanner output. After that, I spent the rest of the week just researching the best ways of implementing that data into the UI. I looked into packages like PyVista and Three.js, open sources packages designed to display 3D data. I hope to use this to research to help with the prototyping phase coming up. I did manage to pick Next.js as my web app base and used the React component library Shadecn to get it up and running.

Progress:

I plan to use the Shadecn to easily build a presentable interface that I can go back and edit as needed. UI is built around function as much as form. While having detailed plans for the UI would have been nice, but with us still being in the early stages of our project, I realized the exact design specs I needed the UI to account for kept changing, making designing for it difficult. I’ve decided to keep the UI as basic as possible so I can easily change it as the needs from the hardware parts of the design change. I plan to make a more cohesive look once all the my frontend and backend integration  is done.

Despite this, I’m actually still on schedule as this week was my time for planning and research. I just focused more on the research part. As I move into making the prototype, I hope to start actually building the basic functionality of the UI (going to doing to different pages, getting buttons to work, etc.) and see if I can get it to integrate with the rplidar scanner’s output data.

Schedule Status: On time.

Next Week’s Deliverables:

Next week I hope to start actually building the basic functionality of the website and establish the connection between it and the rplidar scanner so the website can access that data. That way we can build off it for the 3D models of the room later on.

Alana’s Status Report for 2/10/24

Personal Accomplishments:

Most of my time this week has been spent researching the best way to implement the web app part of our project. For this, I’ve decided to go with React, a user interface library that uses Javascript code to easily implement UI components like buttons, dashboards, video players among other things. I feel confident in this as React is a very common tool in web development and I have a lot of experience with it due to using it for a past project.

I took the time to set up a GitHub Repository for the project to save different versions of the website as I work and already set up a React environment in VSCode to program everything in HTML5.

Progress:

Initially, our schedule gave me 2 weeks to work on UI. That schedule was mainly a rough draft and after talking with my partners, we made some adjustments to it. Part of that meant fleshing out what I was doing and I got more time to plan things out. Because of that, I’m on schedule.

Schedule Status: On time.

Next Week’s Deliverables:

Next week I hope to get some more finalized sketches or drafts for the pages to take into the prototyping stage. I plan to sketch things out with the use of Figma, a website often used for application design. I’ve used that in conjunction with React before so I feel confident in using it.