Gazebo | Ignition | Community
Ask Your Question
1

destroy a dynamically created joint?

asked 2016-02-12 12:10:51 -0600

randaz gravatar image

What is the right way to remove a joint created by: gazebo::physics::PhysicsEngine::CreateJoint ( const std::string & _type, ModelPtr _parent = ModelPtr() ) I cannot find an equivalent removeJoint method.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-15 09:33:27 -0600

AndreiHaidu gravatar image

Hi there,

here is an example of reseting and removing a joint:

// removing and detaching joint
this->fixedJoint->Reset();
this->fixedJoint->Detach();
this->fixedJoint->Fini();

It should probably work with only Fini() as well, but I think I had some issues at one point so I just called everything, just to be sure :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-02-12 12:10:51 -0600

Seen: 497 times

Last updated: Feb 15 '16