Fixed.


On Tue, Mar 26, 2013 at 1:50 PM, toliver <notifications@github.com> wrote:

> In sr_self_test/src/sr_self_test.cpp:
>
> > +        joint_vector[i].joint_name = joints_to_test_[i];
> > +        joint_vector[i].joint_target = safe_target->second.joint_target;
> > +      }
> > +    }
> > +
> > +    hand_commander_->sendCommands(joint_vector);
> > +    ros::spinOnce();
> > +  }
> > +
> > +  void SrSelfTest::update_safe_targets_(std::string joint_name)
> > +  {
> > +    //This is very hugly.... not sure how to make it prettier easily - haven't much time...
> > +    if( joint_name.compare("FFJ4") == 0 )
> > +    {
> > +      (*safe_targets_.get())["FFJ4"].joint_target = 0.0;
> > +      (*safe_targets_.get())["MFJ4"].joint_target = sr_math_utils::to_degrees( hand_commander_->get_min_max("FFJ4").second );
>
> It should be get_min_max("MFJ4")
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/shadow-robot/sr-ros-interface/pull/7/files#r3530032>
> .
>



-- 
               Ugo Cupcic
http://ugocupcic.dyndns.org
    _
   ' v '
 /      \
  m m