Skip to content

Commit

Permalink
Weekly progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dduro2020 committed Oct 7, 2024
1 parent 7b402a5 commit 6370c1f
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions docs/_posts/2024-09-30-Week_9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: Gazebo harmonic universe and monaco editor
date: 2024-09-30 9:00:00 +0100
tags: [weekly progress]
author: david
img_path: /assets/img/
toc: true
comments: true
---

## Index

- [Creating april tags in harmonic](#creating-april-tags-in-harmonic)
- [Update to Monaco editor](#update-to-monaco-editor)
- [Beta Testing](#beta-testing)
- [Upgrading GPU usage](#upgrading-gpu-usage)

## Creating april tags in harmonic

For this part we have used the apriltags of https://github.com/koide3/gazebo_apriltag and for gazebo harmonic to understand them we have based ourselves on https://app.gazebosim.org/AndrejOrsula/fuel/models/aruco_default.

Some examples:

![](view1_tag.png)

![](view2_tag.png)

## Update to Monaco editor

After researching and looking for alternatives to autocomplete with the monaco editor the solutions that have been found are a bit complex. Right now monaco only supports: `json`, `html`, `css`, `typescript`,`javascript`.
Snippets have been created for functions such as for, while... function and class declarations. Example:

```js
{
label: "for",
kind: monaco.languages.CompletionItemKind.Snippet,
documentation: "Snippet for a for loop",
insertText: "for ${1:item} in ${2:iterable}:\n\t$0",
insertTextRules:
monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
range: range,
},
{
label: "while",
kind: monaco.languages.CompletionItemKind.Snippet,
documentation: "Snippet for a while loop",
insertText: "while ${1:condition}:\n\t$0",
insertTextRules:
monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
range: range,
},
{
label: "if",
kind: monaco.languages.CompletionItemKind.Snippet,
documentation: "Snippet for an if statement",
insertText: "if ${1:condition}:\n\t$0",
insertTextRules:
monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
range: range,
},
```

## Beta Testing

Testing of https://github.com/JdeRobot/RoboticsAcademy/pull/2749 for frontend update and effectiveness of hoover exercises.

## Upgrading GPU usage

Here we have tried to create a script that looks for the available gpu and launches it knowing where it is located, this way it would be useful for different configurations and different users. A colleague has moved forward with the issue and so far we have been testing how it works and how to improve it.
Binary file added docs/assets/img/view1_tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/view2_tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6370c1f

Please sign in to comment.