GithubHelp home page GithubHelp logo

Comments (4)

JohnDTill avatar JohnDTill commented on June 12, 2024

Hello Solomon,

You calculate v_i by integrating s_i(s) along the arclength as a state variable, and then taking the partial derivative of s_i with respect to time. Since you already calculate ||p_{s,i}||, integrating that to find s_i isn't much trouble (although there are additional considerations with tendon compliance). You are correct that in the case of the simple model, you merely sum the effects of the distributed loading to be included in the linear system solving for v_s and u_s. I've uploaded two new examples showing possible ways to model friction. They are in C++ since I don't have a MATLAB license at this point. Let me know if you have any questions and I'll do my best to answer. Good luck on your research!

Sincerely,
John

from continuumrobotexamples.

SolomonPekris avatar SolomonPekris commented on June 12, 2024

Hi John,

Thank you very much for the help, and sorry for the slow response, my lab opened after being shut due to covid so I had to put this on hold while collecting data from our robot. I managed to get it working although I couldn't think of a way to verify it other than saying that the results look right.

I had one more question if you don't mind. The plan is to also implement our program into C++, roughly what kind of performance increases did you observe for this kind of model? I have been working under the (very rough) assumption that it will be about 10x faster.

Kind regards,
Solomon

from continuumrobotexamples.

JohnDTill avatar JohnDTill commented on June 12, 2024

No worries, research often happens in bursts! The speedup depends on the method you're using. If it's based on solving a large matrix system, you might not get too much speedup since that's MATLAB's strength. If it's based on a lot of control flow with smaller matrix calculations, I would expect a 100-1000x speedup from switching to C++. That was our experience with the PCR robot. It makes a big difference to have compiled code instead of using the MATLAB interpreter, plus there are people who dedicate their careers to improving the C++ compiler code optimizations.

Sincerely,
John

from continuumrobotexamples.

SolomonPekris avatar SolomonPekris commented on June 12, 2024

That's what I was had thought in terms of the speed increase from what I'd read online, although I have no experience with C++ myself so confirmation is nice. Thanks for the detailed responses!

Kind regards,
Solomon

from continuumrobotexamples.

Related Issues (11)

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.