GithubHelp home page GithubHelp logo

Comments (7)

JohnDTill avatar JohnDTill commented on June 12, 2024

Hello Jiefeng,

An extra point force at the middle of the robot results in a step change to the internal loading 'n', which can be accommodated by piecewise integration. For instance, the MATLAB rod IVP example can be changed to include a midpoint force by the following:

step_change

It would be complicated with many point forces. You could do iterative piecewise integrations in a loop, or you could come up with some scheme to approximate the point forces as part of the distributed force term.

from continuumrobotexamples.

jiefengsun avatar jiefengsun commented on June 12, 2024

Hello John,

Thank you so much for your quick response!
I tried to approximate the point forces as part of the distributed force term. For the static BVP one, I used a free end as a boundary condition in the shooting method. And add a term to the distributed force 'n'. Also, I used an ODE solver with fixed steps so that it can hit the 'if'. In the code, Fe is an external force. But I am not sure it's correct or not.
image

from continuumrobotexamples.

JohnDTill avatar JohnDTill commented on June 12, 2024

The scenario is that you have two discrete forces at s = 10 and s = 40? In that case, the above is mostly correct, except that Fe should be negated since ns = -f, and the discrete force should be divided by the whole length of the approximate uniform distributed force, i.e. ns = -rho*A*g - Fe/(11-9). Also, the "s == 9 < s" term is an easy to make typo which has given me grief in the past!

You could even add a parameter to control the width of the approximate distributed force, say 'a', so that you would have
`
if s > 10-a && s < 10+a

ns = -rho*A*g - Fe/(2*a);

elseif ...
`

And of course, you'll need to make sure the numerical integration step size is sufficiently smaller than the width of the approximate distributed force so that you sample several points in the region.

from continuumrobotexamples.

jiefengsun avatar jiefengsun commented on June 12, 2024

Hi John,
Thank you so much for your help!
I attended the ICRA conferenced last week and one guy from your group helped me to understand more about how to apply several forces at different locations.
Thank you again and have a nice day!

--Jiefeng

from continuumrobotexamples.

JohnDTill avatar JohnDTill commented on June 12, 2024

Glad to hear it! You're welcome, and have a good day as well!

from continuumrobotexamples.

xlsufo avatar xlsufo commented on June 12, 2024

Hi John, Thank you so much for your help! I attended the ICRA conferenced last week and one guy from your group helped me to understand more about how to apply several forces at different locations. Thank you again and have a nice day!

--Jiefeng

Hi Jiefeng,
Can you give me some advice on how to apply several forces at different locations?

from continuumrobotexamples.

jiefengsun avatar jiefengsun commented on June 12, 2024

Hello xlsufo,
Please take a look at John's response to me.
You can either use a piece-wised integration or use a distributed load to simulate a force at an arbitrary point.
Shortly, I will publish a paper that will include a very good example of this case and the code will be open source as well.
If you have any questions please directly send me an email or comment on my GitHub repositories so that I will be able to receive direct notifications.

Best,
Jiefeng

from continuumrobotexamples.

Related Issues (12)

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.