Skip to content

Commit 3fe7fe9

Browse files
committed
1 parent 84221ef commit 3fe7fe9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gazebo_ros_link_attacher.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ namespace gazebo
7878

7979
this->link1 = l1; // Store the links too
8080
this->link2 = l2;
81+
ROS_INFO_STREAM("Attach");
82+
this->fixedJoint->Attach(l1, l2);
8183
ROS_INFO_STREAM("Loading links");
8284
this->fixedJoint->Load(l1,
8385
l2, math::Pose());
84-
ROS_INFO_STREAM("Attach");
85-
this->fixedJoint->Attach(l1, l2);
8686
ROS_INFO_STREAM("SetModel");
8787
this->fixedJoint->SetModel(m1);
88+
ROS_INFO_STREAM("SetAxis");
89+
this->fixedJoint->SetAxis(0, math::Vector3(0, 0, 1));
8890
ROS_INFO_STREAM("SetHightstop");
8991
this->fixedJoint->SetHighStop(0, 0);
9092
ROS_INFO_STREAM("SetLowStop");

0 commit comments

Comments
 (0)