-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
||
 | ||
|
||
 | ||
|
||
## 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.