Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ValerioSpagnoli committed Aug 13, 2024
1 parent 9a60a1c commit 68567ad
Show file tree
Hide file tree
Showing 141 changed files with 171 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.html linguist-detectable=false
.png filter=lfs diff=lfs merge=lfs -text
.gif filter=lfs diff=lfs merge=lfs -text
File renamed without changes.
128 changes: 128 additions & 0 deletions docs/carousel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Carousel with 50 Slides</title>
<style>
body {
font-family: Arial, sans-serif;
}
.carousel-container {
width: 900px;
height: 900px;
overflow: hidden;
position: relative;
margin: auto;
border: 2px solid #ccc;
}

.carousel {
display: flex;
width: calc(900px * 50);
height: 900px;
transition: transform 0.5s ease;
}

.slide {
width: 900px;
height: 900px;
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
}

.slide img {
width: 100%;
height: 100%;
object-fit: cover;
}

.controls {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
pointer-events: none;
}

.controls button {
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px;
cursor: pointer;
pointer-events: all;
}
</style>
</head>
<body>

<div class="carousel-container">
<div class="carousel" id="carousel">
</div>
<div class="controls">
<button id="prevBtn">&lt;</button>
<button id="nextBtn">&gt;</button>
</div>
</div>

<script>
const carousel = document.getElementById('carousel');
for (let i = 1; i <= 49; i++) {
const slide = document.createElement('div');
slide.className = 'slide';

const table = document.createElement('table');
table.width = "880";

const tr1 = document.createElement('tr');
const td1 = document.createElement('td');
const img1 = document.createElement('img');
img1.src = `media/outputs/frame_${String(i).padStart(2, '0')}/icp.gif`;
img1.alt = `Slide ${i} - Image 1`;
td1.appendChild(img1);
tr1.appendChild(td1);

const tr2 = document.createElement('tr');
const td2 = document.createElement('td');
const img2 = document.createElement('img');
img2.src = `media/outputs/frame_${String(i).padStart(2, '0')}/results.png`;
img2.alt = `Slide ${i} - Image 2`;
td2.appendChild(img2);
tr2.appendChild(td2);

table.appendChild(tr1);
table.appendChild(tr2);

slide.appendChild(table);
carousel.appendChild(slide);
}

let currentIndex = 0;

const slides = document.querySelectorAll('.slide');
const totalSlides = slides.length;

document.getElementById('prevBtn').addEventListener('click', () => {
currentIndex = (currentIndex === 0) ? totalSlides - 1 : currentIndex - 1;
updateCarousel();
});

document.getElementById('nextBtn').addEventListener('click', () => {
currentIndex = (currentIndex === totalSlides - 1) ? 0 : currentIndex + 1;
updateCarousel();
});

function updateCarousel() {
const translateXValue = -currentIndex * 900;
carousel.style.transform = `translateX(${translateXValue}px)`;
}
</script>

</body>
</html>
41 changes: 33 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@
li {
color: rgb(87, 87, 87)
}
table {
border-collapse: collapse;
width: 90%;
color: rgb(43, 43, 43);
}
.table_container {
display: flex;
justify-content: center;
}
</style>
</head>

Expand Down Expand Up @@ -206,16 +215,20 @@ <h2>Results</h2>
<hr style="height:1px;border-width:0;color:rgb(232, 232, 232);background-color:rgb(217, 217, 217, 0.7)">

<div class="space20px"></div>
<h3>Visual results</h3>
<h3>Final results</h3>

<div class="space10px"></div>
<h4>Visual results</h4>
<p align="center">
<iframe src="media/3D_plot.html" width="900" height="600"></iframe>
<iframe src="3D_plot.html" width="900" height="600" frameborder="0"></iframe>
</p>


<div class="space20px"></div>
<h3>Numerical results</h3>
<div class="space10px"></div>
<h4>Numerical results</h4>

<table border="1" cellpadding="5" cellspacing="0" align="center">
<div class="table_container">
<table border="1" cellpadding="5" cellspacing="0">
<tr>
<th>Rotation Errors</th>
<th></th>
Expand Down Expand Up @@ -249,10 +262,12 @@ <h3>Numerical results</h3>
<td>4.92998</td>
</tr>
</table>
</div>

<div class="space20px"></div>

<table border="1" cellpadding="5" cellspacing="0" align="center">
<div class="table_container">
<table border="1" cellpadding="5" cellspacing="0">
<tr>
<th>Map Results</th>
<th></th>
Expand All @@ -270,16 +285,19 @@ <h3>Numerical results</h3>
<td>0.20284</td>
</tr>
</table>
</div>

<div class="space20px"></div>

<p align="center">
<img src="media/errors.png" alt="Errors" width="900"/>
<img src="media/outputs/Final Results/errors.png" alt="Errors" width="900"/>
</p>

<table style="width: 100%;" align="center">
<div class="table_container">
<table cellpadding="0" cellspacing="0">
<tr>
<td style="width: 40%; vertical-align: top; text-align: left">

\[
\begin{align}
T_{rel}^{est} &= {}^{r_i}T_{r_{i+1}}^{est} = inv({}^wT_{r_i})^{est} {}^wT_{r_{i+1}}^{est} \\
Expand Down Expand Up @@ -312,6 +330,13 @@ <h3>Numerical results</h3>
</td>
</tr>
</table>
</div>

<div class="space20px"></div>
<h3>Frames results</h3>
<p align="center">
<iframe src="carousel.html" width="950" height="950" frameborder="0"></iframe>
</p>


</div>
Expand Down
Loading

0 comments on commit 68567ad

Please # to comment.