Code Monkey home page Code Monkey logo

Comments (9)

MirkoFerrati avatar MirkoFerrati commented on June 19, 2024

I completely agree. Our plugin segfaults when its destructor is called, this is the reason of gazebo crash.
We need to close yarp ports, delete allocated memory and stuff like that!

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

We discussed with @francesco-romano , the first things to fix (for all three plugins) are to properly close the yarp driver in the gazebo plugin destructor, and to properly remove the WorldUpdate callback in yarp driver close function.

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

Commit cda7722 solves this issue on the normal iCub, but in my case crashes are still constant when removing iCubLegs (just saying to aid the debugging, I don't know if it is reproducible).

from gazebo-yarp-plugins.

francesco-romano avatar francesco-romano commented on June 19, 2024

I cleaned the code a bit, but the issue still remains.
Maybe we can try to debug this from within gazebo.

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

@francesco-romano the situation is definitely improved now. For a more definite debug in the future we can try to use Gazebo compile in debug mode.

from gazebo-yarp-plugins.

francesco-romano avatar francesco-romano commented on June 19, 2024

It seems some issues are caused by ForceTorque plugin...
I don't see its destructor called when the model is removed

EDIT: removing the torque plugin from the sdf file did not solve completely the problem, but it improved the behaviour... @traversaro I will need your help here (and of your gazebo-sources)

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

Apparently (one) problem was with gazebo_yarp_forcetorque plugin removal. It is probably a gazebo bug, already reported to upstream :
https://bitbucket.org/osrf/gazebo/issue/1112/joint-destructor-are-never-called-after

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

By the way it would be nice for gazebo_yarp_plugins if this bug could be fixed before the release of Gazebo 3.0, so it would be good if we could vote the issue [1] to gain upstream attention. For voting we need a bitbucket account, but if you already have a github account you can log through it.

cc @EnricoMingo @emingo @barbalberto @arocchi @MirkoFerrati @iron76 @alessandrosettimi @DanielePucci @jeljaik

https://bitbucket.org/osrf/gazebo/issue/1112/joint-destructor-are-never-called-after

from gazebo-yarp-plugins.

traversaro avatar traversaro commented on June 19, 2024

Using last version of development branch (after commits fa39668 and eaf14a7) and Gazebo 3.0 (that should be released soon) the bug seems finally to be solved.
If someone is still experiencing similar problems please reopen the issue.

from gazebo-yarp-plugins.

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.