Skip to content

Commit ac0d5bc

Browse files
committed
Cleanup
1 parent 319aecc commit ac0d5bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gazebo_ros_link_attacher.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ namespace gazebo
4646
{
4747

4848
// look for any previous instance of the joint first.
49+
// if we try to create a joint in between two links
50+
// more than once (even deleting any reference to the first one)
51+
// gazebo hangs/crashes
4952
fixedJoint j;
5053
if(this->getJoint(model1, link1, model2, link2, j)){
5154
ROS_INFO_STREAM("Joint already existed, reusing it.");
@@ -147,8 +150,6 @@ namespace gazebo
147150
fixedJoint j;
148151
if(this->getJoint(model1, link1, model2, link2, j)){
149152
j.joint->Detach();
150-
//j.joint->Fini();
151-
//j.joint->Reset();
152153
return true;
153154
}
154155

0 commit comments

Comments
 (0)