Giter Site home page Giter Site logo

Comments (4)

JcSack avatar JcSack commented on July 19, 2024

The segmentation fault is appearing less often. I made a mistake with the sign of the controller. However I still have doubt related to the actuator dynamic. I am inserting it correctly? I mean, should the model be inserted before the world_->integrate() or inside its for loop?

Moreover, I am noticing a change of performance in my controller setting "PD_PLUS_FEEDFORWARD_TORQUE" with $K_p=K_D=0$ and "FORCE_AND_TORQUE" mode. However, I read that the PD_PLUS doesn't take into account the joint limits, doesn't it?
Anyway, if I set:
$\tau = K_pe + K_d\dot{e}$
And then:

setGeneralizedForce(tau)

is the same thing of do:

setPdGains(Kp, Kd)

isn't it?

from raisimlib.

jhwangbo avatar jhwangbo commented on July 19, 2024

No they are different. The PD controller is more stable because it is updated in an implicit manner. Its behavior is similar to having an infinitely small time step.

Check the states before it segfaults. If they are exloding, that means that your controller is not stable. Otherwise, try Valgrind following the instructions in the manual

from raisimlib.

JcSack avatar JcSack commented on July 19, 2024

Okay, I am figuring out that maybe I should use an explicit solver to improve sim-to-real.

Anyway, I am debuggin with valgrind as you suggested. It raises this error:
Screenshot from 2024-03-10 16-18-30

Does it depend still from my code?

from raisimlib.

jhwangbo avatar jhwangbo commented on July 19, 2024

That looks like an another issue. I'll look at it. But conditional jump should not trigger a segfault. There must be another error message, possibly related to the memory

from raisimlib.

Related Issues (20)

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.