[ros-users] rosservice and negative (float / int) arguments

Stuart Glaser sglaser at willowgarage.com
Thu Jul 22 22:53:28 UTC 2010


The "-" is treated as an argument.  Use this:

rosservice call /robotis/servo_right_tilt_moveangle -- -0.35 0.1 0

On Thu, Jul 22, 2010 at 3:52 PM, Travis Deyle <beambot at gmail.com> wrote:
> It seems that rosservice does not support negative arguments:
>
> rosservice call /robotis/servo_right_tilt_moveangle -0.35 0.1 0
> Usage: rosservice call /service [args...]
>
> rosservice: error: no such option: -0
>
> Is there a work-around?
>
> --
>
> ~Travis Deyle
> PhD student @ Georgia Tech's Healthcare Robotics Lab
> Co-Founder www.Hizook.com -- Robotics News for Academics & Professionals
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



-- 
Stuart Glaser
sglaser -at- willowgarage -dot- com
www.willowgarage.com



More information about the ros-users mailing list