question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support loading DAE files using data uri

See original GitHub issue

Description

I tried publishing the meshes of a robot as visualization markers (visualization_msgs/Marker) to a topic, which works for STL files but not DAE files. My robot model is the UR3e, directly off of the official ROS repos. The STL files are collision geometry, and the DAE files are visual geometry.

Steps To Reproduce

The visual meshes are published to a topic using data URIs of the following format: data:model/vnd.collada+xml;base64,.... For STL meshes (which work), the data URI is data:application/sla;base64,..., so it seems there’s a problem with data type identification.

To reproduce:

Expected Behavior

Loaded meshes.

Actual Behavior

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jhurlimancommented, Apr 1, 2022

@gonzalocasas I converted your question to a discussion at https://github.com/foxglove/studio/discussions/3139

1reaction
jtbandescommented, Mar 29, 2022

Thank you for the report! I’m going to convert this to a feature request since it’s more of a missing feature within the app. We currently have a MIME type check for STL files but not DAE:

https://github.com/foxglove/studio/blob/34f8298432af3268eb671f96768b9914b41686b4/packages/studio-base/src/panels/ThreeDimensionalViz/commands/MeshMarkers.tsx#L65-L73

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert dae to scn at runtime in i… | Apple Developer Forums
First load a DAE file from the file system using SCNScene's init(url:options:) together with NSOpenPanel's urls property. Then save as an SCN file...
Read more >
Load Collada/image data stored in a multipart file into three.js
I have Collada and related image data stored in a multipart file that is outputted from an application. I need to be able...
Read more >
pycollada Documentation - Read the Docs
The library allows you to load a COLLADA file and interact with ... Contains a string with a URI referencing the source data...
Read more >
Loading Any File Type - Babylon.js Documentation
Babylon.JS supports directly loading models from base64 encoded Data URLs without needing to create an object URL or download the file. When loading...
Read more >
The dae or Collada file loader in threejs
This is a post on using the ColladaLoader which can be added on top of three.js to load Collada files with a DAE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found