Re: [ros-users] how to "rosparam set" with a negative number…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Blaise Gassend
Date:  
To: ros-users
Subject: Re: [ros-users] how to "rosparam set" with a negative number?
Jack,

Interestingly, only negative numbers starting with 9 seem to be a
problem. Just add a zero and you should be ready to go.

{{{
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -97.728524
Usage: rosparam set [options] parameter value

rosparam: error: no such option: -9
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -87.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -77.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -67.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -57.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -47.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -37.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -27.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -17.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -07.728524
blaise@bnl: /wg/stor5/blaise $ rosparam set /longitude -097.728524
}}}

I'm going to ticket this one.

Blaise

On Tue, 2010-04-13 at 10:21 -0500, Jack O'Quin wrote:
> Maybe I'm overlooking something obvious here, but this fails:
>
> $ rosparam set /longitude -97.728524
> Usage: rosparam set [options] parameter value
>
> rosparam: error: no such option: -9
>
> Is there some trick? Quoting does not help.
>
> I can rosparam load the value from a YAML file, but I still wonder how
> to do it from the command line.