Skip to content

Commit

Permalink
feat: add support of avx-osi
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoPanAnsys committed Oct 23, 2024
1 parent 51bdaf5 commit 601e196
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "asam-osi-converter",
"displayName": "ASAM OSI Converter",
"description": "Visualises data following the standard of the ASAM Open Simulation Interface (ASAM OSI) using the native 3D panel of Lichtblick",
"name": "asam-avx-osi-converter",
"displayName": "ASAM AVX OSI Converter",
"description": "Visualises data following the standard and Ansys-AVX of the ASAM Open Simulation Interface (ASAM OSI) using the native 3D panel of Lichtblick",
"publisher": "Lichtblick",
"homepage": "https://www.asam.net/standards/detail/osi/",
"version": "0.0.1",
"version": "0.0.1-avx",
"license": "MIT",
"main": "./dist/extension.js",
"keywords": [
Expand Down
32 changes: 32 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,4 +518,36 @@ export function activate(extensionContext: ExtensionContext): void {
converter: (message: SensorView) =>
convertGrountTruthToFrameTransform(message.global_ground_truth!),
});

extensionContext.registerMessageConverter({
fromSchemaName: "avx_osi3.GroundTruth",
toSchemaName: "foxglove.SceneUpdate",
converter: convertGrountTruthToSceneUpdate,
});

extensionContext.registerMessageConverter({
fromSchemaName: "avx_osi3.SensorView",
toSchemaName: "foxglove.SceneUpdate",
converter: (osiSensorView: SensorView) =>
convertGrountTruthToSceneUpdate(osiSensorView.global_ground_truth!),
});

extensionContext.registerMessageConverter({
fromSchemaName: "avx_osi3.SensorData",
toSchemaName: "foxglove.SceneUpdate",
converter: convertSensorDataToSceneUpdate,
});

extensionContext.registerMessageConverter({
fromSchemaName: "avx_osi3.GroundTruth",
toSchemaName: "foxglove.FrameTransform",
converter: convertGrountTruthToFrameTransform,
});

extensionContext.registerMessageConverter({
fromSchemaName: "avx_osi3.SensorView",
toSchemaName: "foxglove.FrameTransform",
converter: (message: SensorView) =>
convertGrountTruthToFrameTransform(message.global_ground_truth!),
});
}

0 comments on commit 601e196

Please sign in to comment.