+ + Coding Period Week 8: July 16 ~ July 22 + + +
+ + + + + +In the eighth week’s Monday meeting, we discussed regarding issues I have faced in last week and major issues coming in between the demo application with com...
+diff --git a/docs/_config.yml b/docs/_config.yml
index 7a33e67..2cecb78 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -90,11 +90,21 @@ footer:
url: https://www.youtube.com/channel/UCC21Gpox7U1kT2yE6JDCW8g
defaults:
- # _pages
+ # _posts
- scope:
path: ""
- type: pages
+ type: posts
values:
+ layout: single
author_profile: true
- breadcrumbs: true
- read_time: true
\ No newline at end of file
+ read_time: true
+ comments: true
+ share: true
+ related: true
+ # _pages
+ - scope:
+ path: "_pages"
+ type: pages
+ values:
+ layout: single
+ author_profile: true
\ No newline at end of file
diff --git a/docs/_pages/about.md b/docs/_pages/about.md
index ab0a8a2..26aa254 100644
--- a/docs/_pages/about.md
+++ b/docs/_pages/about.md
@@ -2,31 +2,3 @@
permalink: /about/
title: "About"
---
-
-
-With circuits and code at their command, \
-They craft the tech that will change the land, \
-And among them stands a skilled engineer, \
-Whose knowledge and talent are truly clear.
-
-In robotics, they're at home, \
-Designing machines that can freely roam, \
-From delta arms to rovers for space, \
-Their work has a truly innovative pace.
-
-With Linux systems, they're well-versed, \
-Their skills with protocols leave none immersed, \
-And in RedHat, they're certified, \
-A true expert in the tech they've applied.
-
-They've worked with boards both big and small, \
-From the STM32 to the ESP32, they've done it all, \
-And in Robot Operating System, they've found, \
-A platform where they truly abound.
-
-So here's to this skilled engineer, \
-Whose tech has the power to engineer, \
-A better future for us all, \
-With circuits and code, they'll answer the call.
-
--ChatGPT
\ No newline at end of file
diff --git a/docs/_posts/2024-06-10-code-w6-7.md b/docs/_posts/2024-06-10-code-w6-7.md
index 53beaa5..417a493 100644
--- a/docs/_posts/2024-06-10-code-w6-7.md
+++ b/docs/_posts/2024-06-10-code-w6-7.md
@@ -32,7 +32,8 @@ In my previous code, I tried to link the block and global ports by finding the n
* #### Major issue :
When I used the package block inside the composed block, it didn't generate Python scripts for the internal packages. However, the basic blocks did not have this issue.
-Issue image:
+
+Blank script and no internal script in the modules directory issue image:
![](../assets/images/thirteen.png)
diff --git a/docs/_posts/2024-06-10-code-w8.md b/docs/_posts/2024-06-10-code-w8.md
new file mode 100644
index 0000000..1769704
--- /dev/null
+++ b/docs/_posts/2024-06-10-code-w8.md
@@ -0,0 +1,41 @@
+---
+title: "Coding Period Week 8: July 16 ~ July 22"
+categories:
+ - Blog
+permalink: /coding-week8/
+toc_label: Table of Content
+toc: true
+sidebar:
+ nav: "docs"
+---
+
+In the eighth week's Monday meeting, we discussed the issues I faced last week and the major issues encountered with the demo application, specifically with the composed block feature. Mentors explained the concept and showed the workflow to address the problem using an encoder and decoder example. The major issue was a nested issue, similar to the hurdles experienced in week 3 regarding nested blocks. This week, I completely focused on the nested issue and achieved significant progress compared to week 3.
+## Goals
+- [x] Solve the blank dependencies issue - nested issue
+- [x] Resolve the issue of nested Python files not appearing in the Modules directories - nested issue
+
+## Images
+Nested dependencies in .vc3/ .json file Level 2:
+![](../assets/images/fourteen.png)
+
+Nested dependencies in .vc3/ .json file Level 3:
+![](../assets/images/fifteen.png)
+
+Modules directory with all nested python files:
+![](../assets/images/sixteen.png)
+
+
+## Accomplishment and Challenges
+
+* #### Analyzing the Week 3 Code for the Nested Issue
+Dr. Jose Maria suggested in the meeting to revisit the basics and look for solutions in the internal architecture. Therefore, I recreated the issue from week 3. I wrote two codes: one where a new node is created according to dependencies and new wiring was made. However, this approach was not sustainable due to the potential complexity from multiple dependencies. I dropped that idea. The second approach was recursion-based on frontend side, aimed at getting all dependencies, but it resulted in blank dependencies. After analyzing this solution, I changed the recursion solution from the package level.
+
+* #### Blank dependicies issue
+Upon deeper analyzing into PackageBlockModel and factory.tsx, I observed that I had created nested dependencies that were not present in the interface of PackageBlockModel. I modified the dependency array for every script and added internal dependencies to the respective interface and methods. The solution was close to being resolve, but I took a different approach in week 3.
+
+* #### Python script in modules directory issue
+Initially, the circuit was not building, but the Save as function was working. Due to nested dependencies, the synthesis file could not be processed. I added a recursive solution to get the nested dependencies from the frontend, which was very challenging. The files were being created but not at all levels. After debugging, I found that the issue was the missing internal dependencies at each level and the improper assignment of keys. The above images attached show the progress made this week.
+
+## PR Created
+1. [https://github.com/JdeRobot/VisualCircuit/pull/322](https://github.com/JdeRobot/VisualCircuit/pull/322)
+
diff --git a/docs/_site/feed.xml b/docs/_site/feed.xml
index 2839a08..9cd3f0b 100644
--- a/docs/_site/feed.xml
+++ b/docs/_site/feed.xml
@@ -1,4 +1,4 @@
-
When I used the package block inside the composed block, it didn’t generate Python scripts for the internal packages. However, the basic blocks did not have this issue. -Issue image: -
+When I used the package block inside the composed block, it didn’t generate Python scripts for the internal packages. However, the basic blocks did not have this issue.
Blank script and no internal script in the modules directory issue image: +
]]>As Dr.JoseMaria added in meeting go to the basics and see solution at internal architecture. So I again recreated issue in 3rd week solution I wrote two code one having the script such as new node is created according to dependicies and then new wiring were made but that was no sustainable as there can many dependicies with many internal dependicies so that will create more complex links so after analyzing I dropped that idea. Now second was recurssion based getting all dependicies in this there was blank dependicies came. So I tried analyzing this solution but didn’t got any improvement but I changed this recurssion solution from package level.
+As I went deeper inside PackageBlockModel and factory.tsx. I observed I created nested dependicies but that was not present at inteface of PackageBlockModel. So I changed the array of dependency from every script and added internal dependicies respective interface and methods. The solution was very close but I took other way in 3rd week time.
+First of all the circuit was not building but Save as working. As there was nested dependeicies synthesis file not able to processed. So I added recurssive solution for getting the nested dependices from frontend and it was very challenging as the files were creating but not all levels so I also after debugging I found that issue was missing of each level internal dependicies also key was not properly assigned. Above are the images attached of progress this week.
+Normal circuit to be converted for block: +
+ +Global input ouput port selection : +
+ +Generated block: +
+ +Internal block structure: +
+ +Improving the web templates using React -
- - - @@ -205,119 +182,6 @@In the eighth week’s Monday meeting, we discussed regarding issues I have faced in last week and major issues coming in between the demo application with com...
+All the issues and possible cases of composed blocks were resolved last week. In the Monday meeting on July 1st, I showed a dummy example of an adder using c...
On Monday’s meeting, we discussed possible cases for a composed block. Last week, I created the composed block functionality in that whenever a link exists i...
@@ -483,6 +422,24 @@In the fourth week’s Monday meeting, I showed a working demo and discussed the previous week’s tasks. The mentors suggested working on block composition for ...
@@ -504,6 +461,24 @@On the 10th of June, during Monday’s meeting, Dr. JoseMaria explained the Global Input Output issue. Whenever the user creates a Robotics Application circuit...
@@ -525,6 +500,24 @@Welcome to the second week of Coding Week progress. In the Monday meeting, we discussed the minimum tasks required for the midterm evaluation, reviewed the p...
@@ -546,6 +539,24 @@From here onwards Coding period begins, During the Monday meeting, mentors discussed the blocks in VisualCircuit resources and initial tests with GitHub Acti...
@@ -567,6 +578,24 @@In the last week of the community bonding period, a video showcasing the Autoparking exercise of RoboticsAcademy with VisualCircuit (ROS2 Humble) was release...
@@ -588,6 +617,24 @@In the second week of the community bonding period, there was an introductory meeting with the entire JdeRobot community. In the meeting, Pedro and Dr. JoseM...
@@ -609,6 +656,24 @@Hello everyone, diff --git a/docs/assets/images/eleven.png b/docs/assets/images/eleven.png new file mode 100644 index 0000000..5c47fcb Binary files /dev/null and b/docs/assets/images/eleven.png differ diff --git a/docs/assets/images/fifteen.png b/docs/assets/images/fifteen.png new file mode 100644 index 0000000..58b7df2 Binary files /dev/null and b/docs/assets/images/fifteen.png differ diff --git a/docs/assets/images/fourteen.png b/docs/assets/images/fourteen.png new file mode 100644 index 0000000..8ab68fe Binary files /dev/null and b/docs/assets/images/fourteen.png differ diff --git a/docs/assets/images/sixteen.png b/docs/assets/images/sixteen.png new file mode 100644 index 0000000..707898d Binary files /dev/null and b/docs/assets/images/sixteen.png differ diff --git a/docs/assets/images/thirteen.png b/docs/assets/images/thirteen.png new file mode 100644 index 0000000..c627da5 Binary files /dev/null and b/docs/assets/images/thirteen.png differ diff --git a/docs/assets/images/tweleve.png b/docs/assets/images/tweleve.png new file mode 100644 index 0000000..d748e29 Binary files /dev/null and b/docs/assets/images/tweleve.png differ diff --git a/docs/index.md b/docs/index.md index 8c70864..88cf7ee 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,7 +7,7 @@ permalink: / header: overlay_color: "#5291C7" excerpt: - Improving the web templates using React + # Improving the web templates using React feature_row: - image_path: /assets/images/about_project.jpeg alt: "About"