Skip to content

Commit

Permalink
Merge branch 'master' of github.com:corlab/rtt-gazebo-ur5-integration
Browse files Browse the repository at this point in the history
merging
  • Loading branch information
agathe-balayn committed Jun 13, 2016
2 parents fc2dbba + 766a7dd commit afb8ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ur5_rtt_gazebo_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class UR5RttGazeboComponent: public RTT::TaskContext {

// Create vector containing awaited position.
RealVectorPtr inputdata = RealVector::create(elm->getInputDimension(), 0.0);
for (int j=0; j<inputdata->getDimension(); j++) inputdata->setValueEquals(j,target_value[j]);
for (int j=0; j<inputdata->getDimension(); j++) inputdata->setValueEquals(j,model->GetJoints()[joints_idx[j]]->GetAngle(0).Radian());

// Create vector containing the torque which should be applied.
RealVectorPtr result = elm->evaluate(inputdata);
Expand Down

0 comments on commit afb8ee1

Please sign in to comment.