Development notes - lge-ros2/cloisim GitHub Wiki
Development with VSCode Editor
In Unity
install package like below
regenerate .csproj
In ubuntu(linux),
dotnet sdk => refer to link
mono => refer to link.
-
sudo apt install dotnet-sdk-10.0
-
sudo apt install mono-devel
Extension for VScode
Install extension for Microsoft C#(ms-dotnettools.csharp)' in Extensions view.
SDFormat for C#(Unity)
Overview
Mainly these are following the specification from http://sdformat.org/spec. It is designed as 4-parts of modules. And those codes are not fully meet the specification yet.
SDF Parser
It parses .sdf files to retrieve each value from the elements. And separate the elements per class. All parsing works begins from SDF.Root class.
SDF Importer
SDF Importer generates hierarchical object tree
- model -> link -> (visual/collision -> geometry ) / sensor
There are two steps to import objects as a GameObject.
- ImportXXXXXX() and PostImportXXXXXX()
- ex) ImportVisual() , PostImportVisual()
SDF Implementation
Realize 3D objects on 3D world through Unity API. It implements detail physical properties, visual objects from specific SDF parameters when it importing each SDF elements.
SDF Plugins
It helps handling or post-process specific SDF elements like model, link or pose inside Unity GameObject.