Skip to content

Commit

Permalink
Probably change in gazebo API. Not sure about this
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Jan 3, 2019
1 parent e874b21 commit f31752c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dvrk_gazebo/src/control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ void ControlPlugin::PublishStates()

msg.header.stamp=ros::Time::now();
msg.name.push_back(joint_name);
msg.position.push_back(joint->GetAngle(0).Radian());
// msg.position.push_back(joint->GetAngle(0).Radian());
msg.position.push_back(joint->Position(0));
msg.velocity.push_back(joint->GetVelocity(0));
msg.effort.push_back(joint->GetForce(0));

Expand Down

0 comments on commit f31752c

Please sign in to comment.