Giter Site home page Giter Site logo

SDFormat about urdf-rs HOT 11 OPEN

willstott101 avatar willstott101 commented on May 24, 2024
SDFormat

from urdf-rs.

Comments (11)

OTL avatar OTL commented on May 24, 2024

@willstott101 Great work!

What is your plan to reuse the code?

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

That link was something someone else had worked on as a fork from this repo. But it looks abandoned and incorrectly licensed to me.

My initial bit of work was here: willstott101@03a64c8

Basic idea was to split this crate up into three main modules: pub urdf, pub sdf and common, then I moved utils to ros_utils too cause they're very ROS-specific.

What we can end up re-using is Error types, some of the simple structs, and the vector parsing code.

There would also be scope to convert from one->other for particular constrained files, to make it easier to create programs which can import both.

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

Resource resolution (stuff currently in utils is generally very shareable).

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

Opened #32 as it's easier to keep track of and comment on changes.

from urdf-rs.

hardesh avatar hardesh commented on May 24, 2024

Hi,
I would like to push any contributions to add this feature. Please let me know if there are any open tasks

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

Hi, that would be most welcome. My branch with a pull request open is the latest thing I've worked on. Step one towards being able to have multiple people work on this would be to have a few tests for loading very simple SDF strings in the funcs.rs file.

If we can have a few small tests for each basic part of an SDF it should be easy for people to contribute the parsing of elements they're interested in. I think very rarely do people require the entire spec, so small tests should help us grow the functionality at whatever rate we need.

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

I'm happy to merge PRs into my fork for now, if that's the most convenient.

from urdf-rs.

hardesh avatar hardesh commented on May 24, 2024

Hi @willstott101,

Great. I think it makes sense to start adding tests which only have the main model of the robot. Later we can start adding sensor in the SDF. Let me know if this works for you.

I'll start going through your code

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

Lovely. What's there is pretty much a suggestion for crate layout more than anything functional. As a warning :)

from urdf-rs.

willstott101 avatar willstott101 commented on May 24, 2024

I've pushed a version which is actually able to parse an SDF file now. Lots to learn about serde_xml_rs... but finally got a top-level enum for different kinds of SDF files working. Could alternatively always return a list of Worlds, and just create a World for files without one, if the enum proves to be a bit awkward.

from urdf-rs.

hardesh avatar hardesh commented on May 24, 2024

Thanks. Will take a look at it. I was on vacation over the past few days. Haven't had a chance to look at the code

from urdf-rs.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.